@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ViolationDetail extends Object implements Serializable, Cloneable, StructuredPojo
Violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.
Constructor and Description |
---|
ViolationDetail() |
Modifier and Type | Method and Description |
---|---|
ViolationDetail |
clone() |
boolean |
equals(Object obj) |
String |
getMemberAccount()
The Amazon Web Services account that the violation details were requested for.
|
String |
getPolicyId()
The ID of the Firewall Manager policy that the violation details were requested for.
|
String |
getResourceDescription()
Brief description for the requested resource.
|
String |
getResourceId()
The resource ID that the violation details were requested for.
|
List<Tag> |
getResourceTags()
The
ResourceTag objects associated with the resource. |
String |
getResourceType()
The resource type that the violation details were requested for.
|
List<ResourceViolation> |
getResourceViolations()
List of violations for the requested resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMemberAccount(String memberAccount)
The Amazon Web Services account that the violation details were requested for.
|
void |
setPolicyId(String policyId)
The ID of the Firewall Manager policy that the violation details were requested for.
|
void |
setResourceDescription(String resourceDescription)
Brief description for the requested resource.
|
void |
setResourceId(String resourceId)
The resource ID that the violation details were requested for.
|
void |
setResourceTags(Collection<Tag> resourceTags)
The
ResourceTag objects associated with the resource. |
void |
setResourceType(String resourceType)
The resource type that the violation details were requested for.
|
void |
setResourceViolations(Collection<ResourceViolation> resourceViolations)
List of violations for the requested resource.
|
String |
toString()
Returns a string representation of this object.
|
ViolationDetail |
withMemberAccount(String memberAccount)
The Amazon Web Services account that the violation details were requested for.
|
ViolationDetail |
withPolicyId(String policyId)
The ID of the Firewall Manager policy that the violation details were requested for.
|
ViolationDetail |
withResourceDescription(String resourceDescription)
Brief description for the requested resource.
|
ViolationDetail |
withResourceId(String resourceId)
The resource ID that the violation details were requested for.
|
ViolationDetail |
withResourceTags(Collection<Tag> resourceTags)
The
ResourceTag objects associated with the resource. |
ViolationDetail |
withResourceTags(Tag... resourceTags)
The
ResourceTag objects associated with the resource. |
ViolationDetail |
withResourceType(String resourceType)
The resource type that the violation details were requested for.
|
ViolationDetail |
withResourceViolations(Collection<ResourceViolation> resourceViolations)
List of violations for the requested resource.
|
ViolationDetail |
withResourceViolations(ResourceViolation... resourceViolations)
List of violations for the requested resource.
|
public void setPolicyId(String policyId)
The ID of the Firewall Manager policy that the violation details were requested for.
policyId
- The ID of the Firewall Manager policy that the violation details were requested for.public String getPolicyId()
The ID of the Firewall Manager policy that the violation details were requested for.
public ViolationDetail withPolicyId(String policyId)
The ID of the Firewall Manager policy that the violation details were requested for.
policyId
- The ID of the Firewall Manager policy that the violation details were requested for.public void setMemberAccount(String memberAccount)
The Amazon Web Services account that the violation details were requested for.
memberAccount
- The Amazon Web Services account that the violation details were requested for.public String getMemberAccount()
The Amazon Web Services account that the violation details were requested for.
public ViolationDetail withMemberAccount(String memberAccount)
The Amazon Web Services account that the violation details were requested for.
memberAccount
- The Amazon Web Services account that the violation details were requested for.public void setResourceId(String resourceId)
The resource ID that the violation details were requested for.
resourceId
- The resource ID that the violation details were requested for.public String getResourceId()
The resource ID that the violation details were requested for.
public ViolationDetail withResourceId(String resourceId)
The resource ID that the violation details were requested for.
resourceId
- The resource ID that the violation details were requested for.public void setResourceType(String resourceType)
The resource type that the violation details were requested for.
resourceType
- The resource type that the violation details were requested for.public String getResourceType()
The resource type that the violation details were requested for.
public ViolationDetail withResourceType(String resourceType)
The resource type that the violation details were requested for.
resourceType
- The resource type that the violation details were requested for.public List<ResourceViolation> getResourceViolations()
List of violations for the requested resource.
public void setResourceViolations(Collection<ResourceViolation> resourceViolations)
List of violations for the requested resource.
resourceViolations
- List of violations for the requested resource.public ViolationDetail withResourceViolations(ResourceViolation... resourceViolations)
List of violations for the requested resource.
NOTE: This method appends the values to the existing list (if any). Use
setResourceViolations(java.util.Collection)
or withResourceViolations(java.util.Collection)
if
you want to override the existing values.
resourceViolations
- List of violations for the requested resource.public ViolationDetail withResourceViolations(Collection<ResourceViolation> resourceViolations)
List of violations for the requested resource.
resourceViolations
- List of violations for the requested resource.public List<Tag> getResourceTags()
The ResourceTag
objects associated with the resource.
ResourceTag
objects associated with the resource.public void setResourceTags(Collection<Tag> resourceTags)
The ResourceTag
objects associated with the resource.
resourceTags
- The ResourceTag
objects associated with the resource.public ViolationDetail withResourceTags(Tag... resourceTags)
The ResourceTag
objects associated with the resource.
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
- The ResourceTag
objects associated with the resource.public ViolationDetail withResourceTags(Collection<Tag> resourceTags)
The ResourceTag
objects associated with the resource.
resourceTags
- The ResourceTag
objects associated with the resource.public void setResourceDescription(String resourceDescription)
Brief description for the requested resource.
resourceDescription
- Brief description for the requested resource.public String getResourceDescription()
Brief description for the requested resource.
public ViolationDetail withResourceDescription(String resourceDescription)
Brief description for the requested resource.
resourceDescription
- Brief description for the requested resource.public String toString()
toString
in class Object
Object.toString()
public ViolationDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.