@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PartialMatch extends Object implements Serializable, Cloneable, StructuredPojo
The reference rule that partially matches the ViolationTarget
rule and violation reason.
Constructor and Description |
---|
PartialMatch() |
Modifier and Type | Method and Description |
---|---|
PartialMatch |
clone() |
boolean |
equals(Object obj) |
String |
getReference()
The reference rule from the primary security group of the Firewall Manager policy.
|
List<String> |
getTargetViolationReasons()
The violation reason.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setReference(String reference)
The reference rule from the primary security group of the Firewall Manager policy.
|
void |
setTargetViolationReasons(Collection<String> targetViolationReasons)
The violation reason.
|
String |
toString()
Returns a string representation of this object.
|
PartialMatch |
withReference(String reference)
The reference rule from the primary security group of the Firewall Manager policy.
|
PartialMatch |
withTargetViolationReasons(Collection<String> targetViolationReasons)
The violation reason.
|
PartialMatch |
withTargetViolationReasons(String... targetViolationReasons)
The violation reason.
|
public void setReference(String reference)
The reference rule from the primary security group of the Firewall Manager policy.
reference
- The reference rule from the primary security group of the Firewall Manager policy.public String getReference()
The reference rule from the primary security group of the Firewall Manager policy.
public PartialMatch withReference(String reference)
The reference rule from the primary security group of the Firewall Manager policy.
reference
- The reference rule from the primary security group of the Firewall Manager policy.public List<String> getTargetViolationReasons()
The violation reason.
public void setTargetViolationReasons(Collection<String> targetViolationReasons)
The violation reason.
targetViolationReasons
- The violation reason.public PartialMatch withTargetViolationReasons(String... targetViolationReasons)
The violation reason.
NOTE: This method appends the values to the existing list (if any). Use
setTargetViolationReasons(java.util.Collection)
or
withTargetViolationReasons(java.util.Collection)
if you want to override the existing values.
targetViolationReasons
- The violation reason.public PartialMatch withTargetViolationReasons(Collection<String> targetViolationReasons)
The violation reason.
targetViolationReasons
- The violation reason.public String toString()
toString
in class Object
Object.toString()
public PartialMatch clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.