Class StringAttributeConstraintsType
- java.lang.Object
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.StringAttributeConstraintsType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StringAttributeConstraintsType.Builder,StringAttributeConstraintsType>
@Generated("software.amazon.awssdk:codegen") public final class StringAttributeConstraintsType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StringAttributeConstraintsType.Builder,StringAttributeConstraintsType>
The minimum and maximum length values of an attribute that is of the string type, for example
custom:department.This data type is part of SchemaAttributeType. It defines the length constraints on string-type attributes that you configure in CreateUserPool and UpdateUserPool, and displays the length constraints of all string-type attributes in the response to DescribeUserPool
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStringAttributeConstraintsType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringAttributeConstraintsType.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringmaxLength()The maximum length of a string attribute value.StringminLength()The minimum length of a string attribute value.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends StringAttributeConstraintsType.Builder>serializableBuilderClass()StringAttributeConstraintsType.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
minLength
public final String minLength()
The minimum length of a string attribute value.
- Returns:
- The minimum length of a string attribute value.
-
maxLength
public final String maxLength()
The maximum length of a string attribute value. Must be a number less than or equal to
2^1023, represented as a string with a length of 131072 characters or fewer.- Returns:
- The maximum length of a string attribute value. Must be a number less than or equal to
2^1023, represented as a string with a length of 131072 characters or fewer.
-
toBuilder
public StringAttributeConstraintsType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StringAttributeConstraintsType.Builder,StringAttributeConstraintsType>
-
builder
public static StringAttributeConstraintsType.Builder builder()
-
serializableBuilderClass
public static Class<? extends StringAttributeConstraintsType.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-