@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rule extends Object implements Serializable, Cloneable, StructuredPojo
Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule.
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
Rule |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
Rule |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Rule |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getParameters()
The minimum and maximum parameters that are associated with the rule.
|
String |
getType()
The type of attribute validation rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setParameters(Map<String,String> parameters)
The minimum and maximum parameters that are associated with the rule.
|
void |
setType(RuleType type)
The type of attribute validation rule.
|
void |
setType(String type)
The type of attribute validation rule.
|
String |
toString()
Returns a string representation of this object.
|
Rule |
withParameters(Map<String,String> parameters)
The minimum and maximum parameters that are associated with the rule.
|
Rule |
withType(RuleType type)
The type of attribute validation rule.
|
Rule |
withType(String type)
The type of attribute validation rule.
|
public void setType(String type)
The type of attribute validation rule.
type
- The type of attribute validation rule.RuleType
public String getType()
The type of attribute validation rule.
RuleType
public Rule withType(String type)
The type of attribute validation rule.
type
- The type of attribute validation rule.RuleType
public void setType(RuleType type)
The type of attribute validation rule.
type
- The type of attribute validation rule.RuleType
public Rule withType(RuleType type)
The type of attribute validation rule.
type
- The type of attribute validation rule.RuleType
public Map<String,String> getParameters()
The minimum and maximum parameters that are associated with the rule.
public void setParameters(Map<String,String> parameters)
The minimum and maximum parameters that are associated with the rule.
parameters
- The minimum and maximum parameters that are associated with the rule.public Rule withParameters(Map<String,String> parameters)
The minimum and maximum parameters that are associated with the rule.
parameters
- The minimum and maximum parameters that are associated with the rule.public Rule addParametersEntry(String key, String value)
public Rule clearParametersEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.