@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ComplianceViolator extends Object implements Serializable, Cloneable, StructuredPojo
Details of the resource that is not protected by the policy.
Constructor and Description |
---|
ComplianceViolator() |
Modifier and Type | Method and Description |
---|---|
ComplianceViolator |
addMetadataEntry(String key,
String value)
Add a single Metadata entry
|
ComplianceViolator |
clearMetadataEntries()
Removes all the entries added into Metadata.
|
ComplianceViolator |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getMetadata()
Metadata about the resource that doesn't comply with the policy scope.
|
String |
getResourceId()
The resource ID.
|
String |
getResourceType()
The resource type.
|
String |
getViolationReason()
The reason that the resource is not protected by the policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetadata(Map<String,String> metadata)
Metadata about the resource that doesn't comply with the policy scope.
|
void |
setResourceId(String resourceId)
The resource ID.
|
void |
setResourceType(String resourceType)
The resource type.
|
void |
setViolationReason(String violationReason)
The reason that the resource is not protected by the policy.
|
String |
toString()
Returns a string representation of this object.
|
ComplianceViolator |
withMetadata(Map<String,String> metadata)
Metadata about the resource that doesn't comply with the policy scope.
|
ComplianceViolator |
withResourceId(String resourceId)
The resource ID.
|
ComplianceViolator |
withResourceType(String resourceType)
The resource type.
|
ComplianceViolator |
withViolationReason(String violationReason)
The reason that the resource is not protected by the policy.
|
ComplianceViolator |
withViolationReason(ViolationReason violationReason)
The reason that the resource is not protected by the policy.
|
public void setResourceId(String resourceId)
The resource ID.
resourceId
- The resource ID.public String getResourceId()
The resource ID.
public ComplianceViolator withResourceId(String resourceId)
The resource ID.
resourceId
- The resource ID.public void setViolationReason(String violationReason)
The reason that the resource is not protected by the policy.
violationReason
- The reason that the resource is not protected by the policy.ViolationReason
public String getViolationReason()
The reason that the resource is not protected by the policy.
ViolationReason
public ComplianceViolator withViolationReason(String violationReason)
The reason that the resource is not protected by the policy.
violationReason
- The reason that the resource is not protected by the policy.ViolationReason
public ComplianceViolator withViolationReason(ViolationReason violationReason)
The reason that the resource is not protected by the policy.
violationReason
- The reason that the resource is not protected by the policy.ViolationReason
public void setResourceType(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
.
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
.public String getResourceType()
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 ComplianceViolator withResourceType(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
.
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
.public Map<String,String> getMetadata()
Metadata about the resource that doesn't comply with the policy scope.
public void setMetadata(Map<String,String> metadata)
Metadata about the resource that doesn't comply with the policy scope.
metadata
- Metadata about the resource that doesn't comply with the policy scope.public ComplianceViolator withMetadata(Map<String,String> metadata)
Metadata about the resource that doesn't comply with the policy scope.
metadata
- Metadata about the resource that doesn't comply with the policy scope.public ComplianceViolator addMetadataEntry(String key, String value)
public ComplianceViolator clearMetadataEntries()
public String toString()
toString
in class Object
Object.toString()
public ComplianceViolator clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.