@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FieldValidationConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Describes the validation configuration for a field.
Constructor and Description |
---|
FieldValidationConfiguration() |
Modifier and Type | Method and Description |
---|---|
FieldValidationConfiguration |
clone() |
boolean |
equals(Object obj) |
List<Integer> |
getNumValues()
The validation to perform on a number value.
|
List<String> |
getStrValues()
The validation to perform on a string value.
|
String |
getType()
The validation to perform on an object type.
|
String |
getValidationMessage()
The validation message to display.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setNumValues(Collection<Integer> numValues)
The validation to perform on a number value.
|
void |
setStrValues(Collection<String> strValues)
The validation to perform on a string value.
|
void |
setType(String type)
The validation to perform on an object type.
|
void |
setValidationMessage(String validationMessage)
The validation message to display.
|
String |
toString()
Returns a string representation of this object.
|
FieldValidationConfiguration |
withNumValues(Collection<Integer> numValues)
The validation to perform on a number value.
|
FieldValidationConfiguration |
withNumValues(Integer... numValues)
The validation to perform on a number value.
|
FieldValidationConfiguration |
withStrValues(Collection<String> strValues)
The validation to perform on a string value.
|
FieldValidationConfiguration |
withStrValues(String... strValues)
The validation to perform on a string value.
|
FieldValidationConfiguration |
withType(String type)
The validation to perform on an object type.
|
FieldValidationConfiguration |
withValidationMessage(String validationMessage)
The validation message to display.
|
public List<Integer> getNumValues()
The validation to perform on a number value.
public void setNumValues(Collection<Integer> numValues)
The validation to perform on a number value.
numValues
- The validation to perform on a number value.public FieldValidationConfiguration withNumValues(Integer... numValues)
The validation to perform on a number value.
NOTE: This method appends the values to the existing list (if any). Use
setNumValues(java.util.Collection)
or withNumValues(java.util.Collection)
if you want to
override the existing values.
numValues
- The validation to perform on a number value.public FieldValidationConfiguration withNumValues(Collection<Integer> numValues)
The validation to perform on a number value.
numValues
- The validation to perform on a number value.public List<String> getStrValues()
The validation to perform on a string value.
public void setStrValues(Collection<String> strValues)
The validation to perform on a string value.
strValues
- The validation to perform on a string value.public FieldValidationConfiguration withStrValues(String... strValues)
The validation to perform on a string value.
NOTE: This method appends the values to the existing list (if any). Use
setStrValues(java.util.Collection)
or withStrValues(java.util.Collection)
if you want to
override the existing values.
strValues
- The validation to perform on a string value.public FieldValidationConfiguration withStrValues(Collection<String> strValues)
The validation to perform on a string value.
strValues
- The validation to perform on a string value.public void setType(String type)
The validation to perform on an object type.
type
- The validation to perform on an object type.
public String getType()
The validation to perform on an object type.
public FieldValidationConfiguration withType(String type)
The validation to perform on an object type.
type
- The validation to perform on an object type.
public void setValidationMessage(String validationMessage)
The validation message to display.
validationMessage
- The validation message to display.public String getValidationMessage()
The validation message to display.
public FieldValidationConfiguration withValidationMessage(String validationMessage)
The validation message to display.
validationMessage
- The validation message to display.public String toString()
toString
in class Object
Object.toString()
public FieldValidationConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.