@Generated(value="software.amazon.awssdk:codegen") public final class FacetAttributeDefinition extends Object implements StructuredPojo, ToCopyableBuilder<FacetAttributeDefinition.Builder,FacetAttributeDefinition>
A facet attribute definition. See Attribute References for more information.
Modifier and Type | Class and Description |
---|---|
static interface |
FacetAttributeDefinition.Builder |
Modifier and Type | Method and Description |
---|---|
static FacetAttributeDefinition.Builder |
builder() |
TypedAttributeValue |
defaultValue()
The default value of the attribute (if configured).
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
isImmutable()
Whether the attribute is mutable or not.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Map<String,Rule> |
rules()
Validation rules attached to the attribute definition.
|
static Class<? extends FacetAttributeDefinition.Builder> |
serializableBuilderClass() |
FacetAttributeDefinition.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
FacetAttributeType |
type()
The type of the attribute.
|
String |
typeAsString()
The type of the attribute.
|
copy
public FacetAttributeType type()
The type of the attribute.
If the service returns an enum value that is not available in the current SDK version, type
will return
FacetAttributeType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
FacetAttributeType
public String typeAsString()
The type of the attribute.
If the service returns an enum value that is not available in the current SDK version, type
will return
FacetAttributeType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
FacetAttributeType
public TypedAttributeValue defaultValue()
The default value of the attribute (if configured).
public Boolean isImmutable()
Whether the attribute is mutable or not.
public Map<String,Rule> rules()
Validation rules attached to the attribute definition.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public FacetAttributeDefinition.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<FacetAttributeDefinition.Builder,FacetAttributeDefinition>
public static FacetAttributeDefinition.Builder builder()
public static Class<? extends FacetAttributeDefinition.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.