@Generated(value="software.amazon.awssdk:codegen") public final class PolicySummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicySummary.Builder,PolicySummary>
Details of the AWS Firewall Manager policy.
Modifier and Type | Class and Description |
---|---|
static interface |
PolicySummary.Builder |
Modifier and Type | Method and Description |
---|---|
static PolicySummary.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyArn()
The Amazon Resource Name (ARN) of the specified policy.
|
String |
policyId()
The ID of the specified policy.
|
String |
policyName()
The name of the specified policy.
|
Boolean |
remediationEnabled()
Indicates if the policy should be automatically applied to new resources.
|
String |
resourceType()
The type of resource protected by or in scope of the policy.
|
List<SdkField<?>> |
sdkFields() |
SecurityServiceType |
securityServiceType()
The service that the policy is using to protect the resources.
|
String |
securityServiceTypeAsString()
The service that the policy is using to protect the resources.
|
static Class<? extends PolicySummary.Builder> |
serializableBuilderClass() |
PolicySummary.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String policyArn()
The Amazon Resource Name (ARN) of the specified policy.
public final String policyId()
The ID of the specified policy.
public final String policyName()
The name of the specified policy.
public final 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
. For an AWS Network Firewall policy, the value is AWS::EC2::VPC
.
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
. For an AWS Network Firewall policy, the value is
AWS::EC2::VPC
.public final 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.
If the service returns an enum value that is not available in the current SDK version,
securityServiceType
will return SecurityServiceType.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from securityServiceTypeAsString()
.
SecurityServiceType
public final String securityServiceTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
securityServiceType
will return SecurityServiceType.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from securityServiceTypeAsString()
.
SecurityServiceType
public final Boolean remediationEnabled()
Indicates if the policy should be automatically applied to new resources.
public PolicySummary.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PolicySummary.Builder,PolicySummary>
public static PolicySummary.Builder builder()
public static Class<? extends PolicySummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()