@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Policy extends Object implements Serializable, Cloneable, StructuredPojo
An AWS Firewall Manager policy.
| Constructor and Description |
|---|
Policy() |
| Modifier and Type | Method and Description |
|---|---|
Policy |
addExcludeMapEntry(String key,
List<String> value) |
Policy |
addIncludeMapEntry(String key,
List<String> value) |
Policy |
clearExcludeMapEntries()
Removes all the entries added into ExcludeMap.
|
Policy |
clearIncludeMapEntries()
Removes all the entries added into IncludeMap.
|
Policy |
clone() |
boolean |
equals(Object obj) |
Map<String,List<String>> |
getExcludeMap()
Specifies the AWS account IDs to exclude from the policy.
|
Boolean |
getExcludeResourceTags()
If set to
True, resources with the tags that are specified in the ResourceTag array are
not protected by the policy. |
Map<String,List<String>> |
getIncludeMap()
Specifies the AWS account IDs to include in the policy.
|
String |
getPolicyId()
The ID of the AWS Firewall Manager policy.
|
String |
getPolicyName()
The friendly name of the AWS Firewall Manager policy.
|
String |
getPolicyUpdateToken()
A unique identifier for each update to the policy.
|
Boolean |
getRemediationEnabled()
Indicates if the policy should be automatically applied to new resources.
|
List<ResourceTag> |
getResourceTags()
An array of
ResourceTag objects. |
String |
getResourceType()
The type of resource to protect with the policy.
|
List<String> |
getResourceTypeList()
An array of
ResourceType. |
SecurityServicePolicyData |
getSecurityServicePolicyData()
Details about the security service that is being used to protect the resources.
|
int |
hashCode() |
Boolean |
isExcludeResourceTags()
If set to
True, resources with the tags that are specified in the ResourceTag array are
not protected by the policy. |
Boolean |
isRemediationEnabled()
Indicates if the policy should be automatically applied to new resources.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setExcludeMap(Map<String,List<String>> excludeMap)
Specifies the AWS account IDs to exclude from the policy.
|
void |
setExcludeResourceTags(Boolean excludeResourceTags)
If set to
True, resources with the tags that are specified in the ResourceTag array are
not protected by the policy. |
void |
setIncludeMap(Map<String,List<String>> includeMap)
Specifies the AWS account IDs to include in the policy.
|
void |
setPolicyId(String policyId)
The ID of the AWS Firewall Manager policy.
|
void |
setPolicyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
|
void |
setPolicyUpdateToken(String policyUpdateToken)
A unique identifier for each update to the policy.
|
void |
setRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
|
void |
setResourceTags(Collection<ResourceTag> resourceTags)
An array of
ResourceTag objects. |
void |
setResourceType(String resourceType)
The type of resource to protect with the policy.
|
void |
setResourceTypeList(Collection<String> resourceTypeList)
An array of
ResourceType. |
void |
setSecurityServicePolicyData(SecurityServicePolicyData securityServicePolicyData)
Details about the security service that is being used to protect the resources.
|
String |
toString()
Returns a string representation of this object.
|
Policy |
withExcludeMap(Map<String,List<String>> excludeMap)
Specifies the AWS account IDs to exclude from the policy.
|
Policy |
withExcludeResourceTags(Boolean excludeResourceTags)
If set to
True, resources with the tags that are specified in the ResourceTag array are
not protected by the policy. |
Policy |
withIncludeMap(Map<String,List<String>> includeMap)
Specifies the AWS account IDs to include in the policy.
|
Policy |
withPolicyId(String policyId)
The ID of the AWS Firewall Manager policy.
|
Policy |
withPolicyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
|
Policy |
withPolicyUpdateToken(String policyUpdateToken)
A unique identifier for each update to the policy.
|
Policy |
withRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
|
Policy |
withResourceTags(Collection<ResourceTag> resourceTags)
An array of
ResourceTag objects. |
Policy |
withResourceTags(ResourceTag... resourceTags)
An array of
ResourceTag objects. |
Policy |
withResourceType(String resourceType)
The type of resource to protect with the policy.
|
Policy |
withResourceTypeList(Collection<String> resourceTypeList)
An array of
ResourceType. |
Policy |
withResourceTypeList(String... resourceTypeList)
An array of
ResourceType. |
Policy |
withSecurityServicePolicyData(SecurityServicePolicyData securityServicePolicyData)
Details about the security service that is being used to protect the resources.
|
public void setPolicyId(String policyId)
The ID of the AWS Firewall Manager policy.
policyId - The ID of the AWS Firewall Manager policy.public String getPolicyId()
The ID of the AWS Firewall Manager policy.
public Policy withPolicyId(String policyId)
The ID of the AWS Firewall Manager policy.
policyId - The ID of the AWS Firewall Manager policy.public void setPolicyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
policyName - The friendly name of the AWS Firewall Manager policy.public String getPolicyName()
The friendly name of the AWS Firewall Manager policy.
public Policy withPolicyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
policyName - The friendly name of the AWS Firewall Manager policy.public void setPolicyUpdateToken(String policyUpdateToken)
A unique identifier for each update to the policy. When issuing a PutPolicy request, the
PolicyUpdateToken in the request must match the PolicyUpdateToken of the current policy
version. To get the PolicyUpdateToken of the current policy version, use a GetPolicy
request.
policyUpdateToken - A unique identifier for each update to the policy. When issuing a PutPolicy request, the
PolicyUpdateToken in the request must match the PolicyUpdateToken of the current
policy version. To get the PolicyUpdateToken of the current policy version, use a
GetPolicy request.public String getPolicyUpdateToken()
A unique identifier for each update to the policy. When issuing a PutPolicy request, the
PolicyUpdateToken in the request must match the PolicyUpdateToken of the current policy
version. To get the PolicyUpdateToken of the current policy version, use a GetPolicy
request.
PutPolicy request, the
PolicyUpdateToken in the request must match the PolicyUpdateToken of the
current policy version. To get the PolicyUpdateToken of the current policy version, use a
GetPolicy request.public Policy withPolicyUpdateToken(String policyUpdateToken)
A unique identifier for each update to the policy. When issuing a PutPolicy request, the
PolicyUpdateToken in the request must match the PolicyUpdateToken of the current policy
version. To get the PolicyUpdateToken of the current policy version, use a GetPolicy
request.
policyUpdateToken - A unique identifier for each update to the policy. When issuing a PutPolicy request, the
PolicyUpdateToken in the request must match the PolicyUpdateToken of the current
policy version. To get the PolicyUpdateToken of the current policy version, use a
GetPolicy request.public void setSecurityServicePolicyData(SecurityServicePolicyData securityServicePolicyData)
Details about the security service that is being used to protect the resources.
securityServicePolicyData - Details about the security service that is being used to protect the resources.public SecurityServicePolicyData getSecurityServicePolicyData()
Details about the security service that is being used to protect the resources.
public Policy withSecurityServicePolicyData(SecurityServicePolicyData securityServicePolicyData)
Details about the security service that is being used to protect the resources.
securityServicePolicyData - Details about the security service that is being used to protect the resources.public void setResourceType(String resourceType)
The type of resource to protect with the policy. This is in the format shown in AWS
Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer or
AWS::CloudFront::Distribution.
resourceType - The type of resource to protect with the policy. This is in the format shown in AWS
Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer or
AWS::CloudFront::Distribution.public String getResourceType()
The type of resource to protect with the policy. This is in the format shown in AWS
Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer or
AWS::CloudFront::Distribution.
AWS::ElasticLoadBalancingV2::LoadBalancer or
AWS::CloudFront::Distribution.public Policy withResourceType(String resourceType)
The type of resource to protect with the policy. This is in the format shown in AWS
Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer or
AWS::CloudFront::Distribution.
resourceType - The type of resource to protect with the policy. This is in the format shown in AWS
Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer or
AWS::CloudFront::Distribution.public List<String> getResourceTypeList()
An array of ResourceType.
ResourceType.public void setResourceTypeList(Collection<String> resourceTypeList)
An array of ResourceType.
resourceTypeList - An array of ResourceType.public Policy withResourceTypeList(String... resourceTypeList)
An array of ResourceType.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTypeList(java.util.Collection) or withResourceTypeList(java.util.Collection) if you
want to override the existing values.
resourceTypeList - An array of ResourceType.public Policy withResourceTypeList(Collection<String> resourceTypeList)
An array of ResourceType.
resourceTypeList - An array of ResourceType.public List<ResourceTag> getResourceTags()
An array of ResourceTag objects.
ResourceTag objects.public void setResourceTags(Collection<ResourceTag> resourceTags)
An array of ResourceTag objects.
resourceTags - An array of ResourceTag objects.public Policy withResourceTags(ResourceTag... resourceTags)
An array of ResourceTag objects.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTags(java.util.Collection) or withResourceTags(java.util.Collection) if you want to
override the existing values.
resourceTags - An array of ResourceTag objects.public Policy withResourceTags(Collection<ResourceTag> resourceTags)
An array of ResourceTag objects.
resourceTags - An array of ResourceTag objects.public void setExcludeResourceTags(Boolean excludeResourceTags)
If set to True, resources with the tags that are specified in the ResourceTag array are
not protected by the policy. If set to False, and the ResourceTag array is not null,
only resources with the specified tags are associated with the policy.
excludeResourceTags - If set to True, resources with the tags that are specified in the ResourceTag
array are not protected by the policy. If set to False, and the ResourceTag
array is not null, only resources with the specified tags are associated with the policy.public Boolean getExcludeResourceTags()
If set to True, resources with the tags that are specified in the ResourceTag array are
not protected by the policy. If set to False, and the ResourceTag array is not null,
only resources with the specified tags are associated with the policy.
True, resources with the tags that are specified in the ResourceTag
array are not protected by the policy. If set to False, and the ResourceTag
array is not null, only resources with the specified tags are associated with the policy.public Policy withExcludeResourceTags(Boolean excludeResourceTags)
If set to True, resources with the tags that are specified in the ResourceTag array are
not protected by the policy. If set to False, and the ResourceTag array is not null,
only resources with the specified tags are associated with the policy.
excludeResourceTags - If set to True, resources with the tags that are specified in the ResourceTag
array are not protected by the policy. If set to False, and the ResourceTag
array is not null, only resources with the specified tags are associated with the policy.public Boolean isExcludeResourceTags()
If set to True, resources with the tags that are specified in the ResourceTag array are
not protected by the policy. If set to False, and the ResourceTag array is not null,
only resources with the specified tags are associated with the policy.
True, resources with the tags that are specified in the ResourceTag
array are not protected by the policy. If set to False, and the ResourceTag
array is not null, only resources with the specified tags are associated with the policy.public void setRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
remediationEnabled - Indicates if the policy should be automatically applied to new resources.public Boolean getRemediationEnabled()
Indicates if the policy should be automatically applied to new resources.
public Policy withRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
remediationEnabled - Indicates if the policy should be automatically applied to new resources.public Boolean isRemediationEnabled()
Indicates if the policy should be automatically applied to new resources.
public Map<String,List<String>> getIncludeMap()
Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the
organization in AWS Organizations are included in the policy. If IncludeMap is not null, only values
listed in IncludeMap are included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
IncludeMap is null, all accounts
in the organization in AWS Organizations are included in the policy. If IncludeMap is not
null, only values listed in IncludeMap are included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
public void setIncludeMap(Map<String,List<String>> includeMap)
Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the
organization in AWS Organizations are included in the policy. If IncludeMap is not null, only values
listed in IncludeMap are included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
includeMap - Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts
in the organization in AWS Organizations are included in the policy. If IncludeMap is not
null, only values listed in IncludeMap are included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
public Policy withIncludeMap(Map<String,List<String>> includeMap)
Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the
organization in AWS Organizations are included in the policy. If IncludeMap is not null, only values
listed in IncludeMap are included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
includeMap - Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts
in the organization in AWS Organizations are included in the policy. If IncludeMap is not
null, only values listed in IncludeMap are included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
public Policy clearIncludeMapEntries()
public Map<String,List<String>> getExcludeMap()
Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first,
with all the appropriate account IDs added to the policy. Then the accounts listed in ExcludeMap are
removed, resulting in the final list of accounts to add to the policy.
The key to the map is ACCOUNT. For example, a valid ExcludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
IncludeMap values are
evaluated first, with all the appropriate account IDs added to the policy. Then the accounts listed in
ExcludeMap are removed, resulting in the final list of accounts to add to the policy.
The key to the map is ACCOUNT. For example, a valid ExcludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
public void setExcludeMap(Map<String,List<String>> excludeMap)
Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first,
with all the appropriate account IDs added to the policy. Then the accounts listed in ExcludeMap are
removed, resulting in the final list of accounts to add to the policy.
The key to the map is ACCOUNT. For example, a valid ExcludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
excludeMap - Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated
first, with all the appropriate account IDs added to the policy. Then the accounts listed in
ExcludeMap are removed, resulting in the final list of accounts to add to the policy.
The key to the map is ACCOUNT. For example, a valid ExcludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
public Policy withExcludeMap(Map<String,List<String>> excludeMap)
Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first,
with all the appropriate account IDs added to the policy. Then the accounts listed in ExcludeMap are
removed, resulting in the final list of accounts to add to the policy.
The key to the map is ACCOUNT. For example, a valid ExcludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
excludeMap - Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated
first, with all the appropriate account IDs added to the policy. Then the accounts listed in
ExcludeMap are removed, resulting in the final list of accounts to add to the policy.
The key to the map is ACCOUNT. For example, a valid ExcludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
public Policy clearExcludeMapEntries()
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.