@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicySummary extends Object implements Serializable, Cloneable, StructuredPojo
Details of the AWS Firewall Manager policy.
Constructor and Description |
---|
PolicySummary() |
Modifier and Type | Method and Description |
---|---|
PolicySummary |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyArn()
The Amazon Resource Name (ARN) of the specified policy.
|
String |
getPolicyId()
The ID of the specified policy.
|
String |
getPolicyName()
The name of the specified policy.
|
Boolean |
getRemediationEnabled()
Indicates if the policy should be automatically applied to new resources.
|
String |
getResourceType()
The type of resource protected by or in scope of the policy.
|
String |
getSecurityServiceType()
The service that the policy is using to protect the resources.
|
int |
hashCode() |
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 |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the specified policy.
|
void |
setPolicyId(String policyId)
The ID of the specified policy.
|
void |
setPolicyName(String policyName)
The name of the specified policy.
|
void |
setRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
|
void |
setResourceType(String resourceType)
The type of resource protected by or in scope of the policy.
|
void |
setSecurityServiceType(String securityServiceType)
The service that the policy is using to protect the resources.
|
String |
toString()
Returns a string representation of this object.
|
PolicySummary |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the specified policy.
|
PolicySummary |
withPolicyId(String policyId)
The ID of the specified policy.
|
PolicySummary |
withPolicyName(String policyName)
The name of the specified policy.
|
PolicySummary |
withRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
|
PolicySummary |
withResourceType(String resourceType)
The type of resource protected by or in scope of the policy.
|
PolicySummary |
withSecurityServiceType(SecurityServiceType securityServiceType)
The service that the policy is using to protect the resources.
|
PolicySummary |
withSecurityServiceType(String securityServiceType)
The service that the policy is using to protect the resources.
|
public void setPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the specified policy.
policyArn
- The Amazon Resource Name (ARN) of the specified policy.public String getPolicyArn()
The Amazon Resource Name (ARN) of the specified policy.
public PolicySummary withPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the specified policy.
policyArn
- The Amazon Resource Name (ARN) of the specified policy.public void setPolicyId(String policyId)
The ID of the specified policy.
policyId
- The ID of the specified policy.public String getPolicyId()
The ID of the specified policy.
public PolicySummary withPolicyId(String policyId)
The ID of the specified policy.
policyId
- The ID of the specified policy.public void setPolicyName(String policyName)
The name of the specified policy.
policyName
- The name of the specified policy.public String getPolicyName()
The name of the specified policy.
public PolicySummary withPolicyName(String policyName)
The name of the specified policy.
policyName
- The name of the specified policy.public void setResourceType(String resourceType)
The type of resource protected by or in scope of the policy. This is in the format shown in the AWS
Resource Types Reference. For AWS WAF and Shield Advanced, examples include
AWS::ElasticLoadBalancingV2::LoadBalancer
and AWS::CloudFront::Distribution
. For a
security group common policy, valid values are AWS::EC2::NetworkInterface
and
AWS::EC2::Instance
. For a security group content audit policy, valid values are
AWS::EC2::SecurityGroup
, AWS::EC2::NetworkInterface
, and
AWS::EC2::Instance
. For a security group usage audit policy, the value is
AWS::EC2::SecurityGroup
.
resourceType
- The type of resource protected by or in scope of the policy. This is in the format shown in the AWS
Resource Types Reference. For AWS WAF and Shield Advanced, examples include
AWS::ElasticLoadBalancingV2::LoadBalancer
and AWS::CloudFront::Distribution
. For
a security group common policy, valid values are AWS::EC2::NetworkInterface
and
AWS::EC2::Instance
. For a security group content audit policy, valid values are
AWS::EC2::SecurityGroup
, AWS::EC2::NetworkInterface
, and
AWS::EC2::Instance
. For a security group usage audit policy, the value is
AWS::EC2::SecurityGroup
.public String getResourceType()
The type of resource protected by or in scope of the policy. This is in the format shown in the AWS
Resource Types Reference. For AWS WAF and Shield Advanced, examples include
AWS::ElasticLoadBalancingV2::LoadBalancer
and AWS::CloudFront::Distribution
. For a
security group common policy, valid values are AWS::EC2::NetworkInterface
and
AWS::EC2::Instance
. For a security group content audit policy, valid values are
AWS::EC2::SecurityGroup
, AWS::EC2::NetworkInterface
, and
AWS::EC2::Instance
. For a security group usage audit policy, the value is
AWS::EC2::SecurityGroup
.
AWS::ElasticLoadBalancingV2::LoadBalancer
and AWS::CloudFront::Distribution
.
For a security group common policy, valid values are AWS::EC2::NetworkInterface
and
AWS::EC2::Instance
. For a security group content audit policy, valid values are
AWS::EC2::SecurityGroup
, AWS::EC2::NetworkInterface
, and
AWS::EC2::Instance
. For a security group usage audit policy, the value is
AWS::EC2::SecurityGroup
.public PolicySummary withResourceType(String resourceType)
The type of resource protected by or in scope of the policy. This is in the format shown in the AWS
Resource Types Reference. For AWS WAF and Shield Advanced, examples include
AWS::ElasticLoadBalancingV2::LoadBalancer
and AWS::CloudFront::Distribution
. For a
security group common policy, valid values are AWS::EC2::NetworkInterface
and
AWS::EC2::Instance
. For a security group content audit policy, valid values are
AWS::EC2::SecurityGroup
, AWS::EC2::NetworkInterface
, and
AWS::EC2::Instance
. For a security group usage audit policy, the value is
AWS::EC2::SecurityGroup
.
resourceType
- The type of resource protected by or in scope of the policy. This is in the format shown in the AWS
Resource Types Reference. For AWS WAF and Shield Advanced, examples include
AWS::ElasticLoadBalancingV2::LoadBalancer
and AWS::CloudFront::Distribution
. For
a security group common policy, valid values are AWS::EC2::NetworkInterface
and
AWS::EC2::Instance
. For a security group content audit policy, valid values are
AWS::EC2::SecurityGroup
, AWS::EC2::NetworkInterface
, and
AWS::EC2::Instance
. For a security group usage audit policy, the value is
AWS::EC2::SecurityGroup
.public void setSecurityServiceType(String securityServiceType)
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an AWS WAF policy, a Shield Advanced policy, or a security group policy.
securityServiceType
- The service that the policy is using to protect the resources. This specifies the type of policy that is
created, either an AWS WAF policy, a Shield Advanced policy, or a security group policy.SecurityServiceType
public String getSecurityServiceType()
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an AWS WAF policy, a Shield Advanced policy, or a security group policy.
SecurityServiceType
public PolicySummary withSecurityServiceType(String securityServiceType)
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an AWS WAF policy, a Shield Advanced policy, or a security group policy.
securityServiceType
- The service that the policy is using to protect the resources. This specifies the type of policy that is
created, either an AWS WAF policy, a Shield Advanced policy, or a security group policy.SecurityServiceType
public PolicySummary withSecurityServiceType(SecurityServiceType securityServiceType)
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an AWS WAF policy, a Shield Advanced policy, or a security group policy.
securityServiceType
- The service that the policy is using to protect the resources. This specifies the type of policy that is
created, either an AWS WAF policy, a Shield Advanced policy, or a security group policy.SecurityServiceType
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 PolicySummary 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 PolicySummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.