@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SelectValidation extends Object implements Serializable, Cloneable, StructuredPojo
Validation rules for a select field.
Constructor and Description |
---|
SelectValidation() |
Modifier and Type | Method and Description |
---|---|
SelectValidation |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxChoices()
The maximum number of choices for the select.
|
Integer |
getMinChoices()
The minimum number of choices for the select.
|
List<String> |
getOptions()
An array of strings for the possible selection options.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxChoices(Integer maxChoices)
The maximum number of choices for the select.
|
void |
setMinChoices(Integer minChoices)
The minimum number of choices for the select.
|
void |
setOptions(Collection<String> options)
An array of strings for the possible selection options.
|
String |
toString()
Returns a string representation of this object.
|
SelectValidation |
withMaxChoices(Integer maxChoices)
The maximum number of choices for the select.
|
SelectValidation |
withMinChoices(Integer minChoices)
The minimum number of choices for the select.
|
SelectValidation |
withOptions(Collection<String> options)
An array of strings for the possible selection options.
|
SelectValidation |
withOptions(String... options)
An array of strings for the possible selection options.
|
public void setMinChoices(Integer minChoices)
The minimum number of choices for the select.
minChoices
- The minimum number of choices for the select.public Integer getMinChoices()
The minimum number of choices for the select.
public SelectValidation withMinChoices(Integer minChoices)
The minimum number of choices for the select.
minChoices
- The minimum number of choices for the select.public void setMaxChoices(Integer maxChoices)
The maximum number of choices for the select.
maxChoices
- The maximum number of choices for the select.public Integer getMaxChoices()
The maximum number of choices for the select.
public SelectValidation withMaxChoices(Integer maxChoices)
The maximum number of choices for the select.
maxChoices
- The maximum number of choices for the select.public List<String> getOptions()
An array of strings for the possible selection options.
public void setOptions(Collection<String> options)
An array of strings for the possible selection options.
options
- An array of strings for the possible selection options.public SelectValidation withOptions(String... options)
An array of strings for the possible selection options.
NOTE: This method appends the values to the existing list (if any). Use
setOptions(java.util.Collection)
or withOptions(java.util.Collection)
if you want to override
the existing values.
options
- An array of strings for the possible selection options.public SelectValidation withOptions(Collection<String> options)
An array of strings for the possible selection options.
options
- An array of strings for the possible selection options.public String toString()
toString
in class Object
Object.toString()
public SelectValidation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.