@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TextValidation extends Object implements Serializable, Cloneable, StructuredPojo
Validation rules for a text field.
Constructor and Description |
---|
TextValidation() |
Modifier and Type | Method and Description |
---|---|
TextValidation |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxLength()
The maximum number of characters for the text field.
|
Integer |
getMinLength()
The minimum number of characters for the text field.
|
String |
getPattern()
The regular expression used to validate the text field.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxLength(Integer maxLength)
The maximum number of characters for the text field.
|
void |
setMinLength(Integer minLength)
The minimum number of characters for the text field.
|
void |
setPattern(String pattern)
The regular expression used to validate the text field.
|
String |
toString()
Returns a string representation of this object.
|
TextValidation |
withMaxLength(Integer maxLength)
The maximum number of characters for the text field.
|
TextValidation |
withMinLength(Integer minLength)
The minimum number of characters for the text field.
|
TextValidation |
withPattern(String pattern)
The regular expression used to validate the text field.
|
public void setMinLength(Integer minLength)
The minimum number of characters for the text field.
minLength
- The minimum number of characters for the text field.public Integer getMinLength()
The minimum number of characters for the text field.
public TextValidation withMinLength(Integer minLength)
The minimum number of characters for the text field.
minLength
- The minimum number of characters for the text field.public void setMaxLength(Integer maxLength)
The maximum number of characters for the text field.
maxLength
- The maximum number of characters for the text field.public Integer getMaxLength()
The maximum number of characters for the text field.
public TextValidation withMaxLength(Integer maxLength)
The maximum number of characters for the text field.
maxLength
- The maximum number of characters for the text field.public void setPattern(String pattern)
The regular expression used to validate the text field.
pattern
- The regular expression used to validate the text field.public String getPattern()
The regular expression used to validate the text field.
public TextValidation withPattern(String pattern)
The regular expression used to validate the text field.
pattern
- The regular expression used to validate the text field.public String toString()
toString
in class Object
Object.toString()
public TextValidation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.