@Generated(value="software.amazon.awssdk:codegen") public final class ComplianceViolator extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComplianceViolator.Builder,ComplianceViolator>
Details of the resource that is not protected by the policy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ComplianceViolator.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ComplianceViolator.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMetadata()
For responses, this returns true if the service returned a value for the Metadata property.
|
Map<String,String> |
metadata()
Metadata about the resource that doesn't comply with the policy scope.
|
String |
resourceId()
The resource ID.
|
String |
resourceType()
The resource type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ComplianceViolator.Builder> |
serializableBuilderClass() |
ComplianceViolator.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ViolationReason |
violationReason()
The reason that the resource is not protected by the policy.
|
String |
violationReasonAsString()
The reason that the resource is not protected by the policy.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String resourceId()
The resource ID.
public final ViolationReason violationReason()
The reason that the resource is not protected by the policy.
If the service returns an enum value that is not available in the current SDK version, violationReason
will return ViolationReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from violationReasonAsString().
ViolationReasonpublic final String violationReasonAsString()
The reason that the resource is not protected by the policy.
If the service returns an enum value that is not available in the current SDK version, violationReason
will return ViolationReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from violationReasonAsString().
ViolationReasonpublic final String resourceType()
The resource type. This is in the format shown in the Amazon
Web Services Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer,
AWS::CloudFront::Distribution, or AWS::NetworkFirewall::FirewallPolicy.
AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::CloudFront::Distribution, or
AWS::NetworkFirewall::FirewallPolicy.public final boolean hasMetadata()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> metadata()
Metadata about the resource that doesn't comply with the policy scope.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasMetadata() method.
public ComplianceViolator.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ComplianceViolator.Builder,ComplianceViolator>public static ComplianceViolator.Builder builder()
public static Class<? extends ComplianceViolator.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.