@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsVPCSecurityGroupViolation extends Object implements Serializable, Cloneable, StructuredPojo
Violation detail for the rule violation in a security group when compared to the primary security group of the Firewall Manager policy.
Constructor and Description |
---|
AwsVPCSecurityGroupViolation() |
Modifier and Type | Method and Description |
---|---|
AwsVPCSecurityGroupViolation |
clone() |
boolean |
equals(Object obj) |
List<PartialMatch> |
getPartialMatches()
List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget rule. |
List<SecurityGroupRemediationAction> |
getPossibleSecurityGroupRemediationActions()
Remediation options for the rule specified in the
ViolationTarget . |
String |
getViolationTarget()
The security group rule that is being evaluated.
|
String |
getViolationTargetDescription()
A description of the security group that violates the policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPartialMatches(Collection<PartialMatch> partialMatches)
List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget rule. |
void |
setPossibleSecurityGroupRemediationActions(Collection<SecurityGroupRemediationAction> possibleSecurityGroupRemediationActions)
Remediation options for the rule specified in the
ViolationTarget . |
void |
setViolationTarget(String violationTarget)
The security group rule that is being evaluated.
|
void |
setViolationTargetDescription(String violationTargetDescription)
A description of the security group that violates the policy.
|
String |
toString()
Returns a string representation of this object.
|
AwsVPCSecurityGroupViolation |
withPartialMatches(Collection<PartialMatch> partialMatches)
List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget rule. |
AwsVPCSecurityGroupViolation |
withPartialMatches(PartialMatch... partialMatches)
List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget rule. |
AwsVPCSecurityGroupViolation |
withPossibleSecurityGroupRemediationActions(Collection<SecurityGroupRemediationAction> possibleSecurityGroupRemediationActions)
Remediation options for the rule specified in the
ViolationTarget . |
AwsVPCSecurityGroupViolation |
withPossibleSecurityGroupRemediationActions(SecurityGroupRemediationAction... possibleSecurityGroupRemediationActions)
Remediation options for the rule specified in the
ViolationTarget . |
AwsVPCSecurityGroupViolation |
withViolationTarget(String violationTarget)
The security group rule that is being evaluated.
|
AwsVPCSecurityGroupViolation |
withViolationTargetDescription(String violationTargetDescription)
A description of the security group that violates the policy.
|
public void setViolationTarget(String violationTarget)
The security group rule that is being evaluated.
violationTarget
- The security group rule that is being evaluated.public String getViolationTarget()
The security group rule that is being evaluated.
public AwsVPCSecurityGroupViolation withViolationTarget(String violationTarget)
The security group rule that is being evaluated.
violationTarget
- The security group rule that is being evaluated.public void setViolationTargetDescription(String violationTargetDescription)
A description of the security group that violates the policy.
violationTargetDescription
- A description of the security group that violates the policy.public String getViolationTargetDescription()
A description of the security group that violates the policy.
public AwsVPCSecurityGroupViolation withViolationTargetDescription(String violationTargetDescription)
A description of the security group that violates the policy.
violationTargetDescription
- A description of the security group that violates the policy.public List<PartialMatch> getPartialMatches()
List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget
rule.
ViolationTarget
rule.public void setPartialMatches(Collection<PartialMatch> partialMatches)
List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget
rule.
partialMatches
- List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget
rule.public AwsVPCSecurityGroupViolation withPartialMatches(PartialMatch... partialMatches)
List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget
rule.
NOTE: This method appends the values to the existing list (if any). Use
setPartialMatches(java.util.Collection)
or withPartialMatches(java.util.Collection)
if you want
to override the existing values.
partialMatches
- List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget
rule.public AwsVPCSecurityGroupViolation withPartialMatches(Collection<PartialMatch> partialMatches)
List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget
rule.
partialMatches
- List of rules specified in the security group of the Firewall Manager policy that partially match the
ViolationTarget
rule.public List<SecurityGroupRemediationAction> getPossibleSecurityGroupRemediationActions()
Remediation options for the rule specified in the ViolationTarget
.
ViolationTarget
.public void setPossibleSecurityGroupRemediationActions(Collection<SecurityGroupRemediationAction> possibleSecurityGroupRemediationActions)
Remediation options for the rule specified in the ViolationTarget
.
possibleSecurityGroupRemediationActions
- Remediation options for the rule specified in the ViolationTarget
.public AwsVPCSecurityGroupViolation withPossibleSecurityGroupRemediationActions(SecurityGroupRemediationAction... possibleSecurityGroupRemediationActions)
Remediation options for the rule specified in the ViolationTarget
.
NOTE: This method appends the values to the existing list (if any). Use
setPossibleSecurityGroupRemediationActions(java.util.Collection)
or
withPossibleSecurityGroupRemediationActions(java.util.Collection)
if you want to override the existing
values.
possibleSecurityGroupRemediationActions
- Remediation options for the rule specified in the ViolationTarget
.public AwsVPCSecurityGroupViolation withPossibleSecurityGroupRemediationActions(Collection<SecurityGroupRemediationAction> possibleSecurityGroupRemediationActions)
Remediation options for the rule specified in the ViolationTarget
.
possibleSecurityGroupRemediationActions
- Remediation options for the rule specified in the ViolationTarget
.public String toString()
toString
in class Object
Object.toString()
public AwsVPCSecurityGroupViolation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.