@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 |
clone() |
boolean |
equals(Object obj) |
Boolean |
getExcludeResourceTags()
If set to
True , resources with the tags that are specified in the ResourceTag array are
not protected by 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, either an Application Load Balancer or a CloudFront
distribution.
|
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)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
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, either an Application Load Balancer or a CloudFront
distribution.
|
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; useful for testing and debugging.
|
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 |
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, either an Application Load Balancer or a CloudFront
distribution.
|
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, either an Application Load Balancer or a CloudFront
distribution. This is in the format shown in AWS
Resource Types Reference. Valid values are AWS::ElasticLoadBalancingV2::LoadBalancer
or
AWS::CloudFront::Distribution
.
resourceType
- The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront
distribution. This is in the format shown in AWS
Resource Types Reference. Valid values are AWS::ElasticLoadBalancingV2::LoadBalancer
or
AWS::CloudFront::Distribution
.public String getResourceType()
The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront
distribution. This is in the format shown in AWS
Resource Types Reference. Valid values are 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, either an Application Load Balancer or a CloudFront
distribution. This is in the format shown in AWS
Resource Types Reference. Valid values are AWS::ElasticLoadBalancingV2::LoadBalancer
or
AWS::CloudFront::Distribution
.
resourceType
- The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront
distribution. This is in the format shown in AWS
Resource Types Reference. Valid values are AWS::ElasticLoadBalancingV2::LoadBalancer
or
AWS::CloudFront::Distribution
.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 String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.