@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FacetAttributeDefinition extends Object implements Serializable, Cloneable, StructuredPojo
A facet attribute definition. See Attribute References for more information.
Constructor and Description |
---|
FacetAttributeDefinition() |
Modifier and Type | Method and Description |
---|---|
FacetAttributeDefinition |
addRulesEntry(String key,
Rule value) |
FacetAttributeDefinition |
clearRulesEntries()
Removes all the entries added into Rules.
|
FacetAttributeDefinition |
clone() |
boolean |
equals(Object obj) |
TypedAttributeValue |
getDefaultValue()
The default value of the attribute (if configured).
|
Boolean |
getIsImmutable()
Whether the attribute is mutable or not.
|
Map<String,Rule> |
getRules()
Validation rules attached to the attribute definition.
|
String |
getType()
The type of the attribute.
|
int |
hashCode() |
Boolean |
isImmutable()
Whether the attribute is mutable or not.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultValue(TypedAttributeValue defaultValue)
The default value of the attribute (if configured).
|
void |
setIsImmutable(Boolean isImmutable)
Whether the attribute is mutable or not.
|
void |
setRules(Map<String,Rule> rules)
Validation rules attached to the attribute definition.
|
void |
setType(FacetAttributeType type)
The type of the attribute.
|
void |
setType(String type)
The type of the attribute.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
FacetAttributeDefinition |
withDefaultValue(TypedAttributeValue defaultValue)
The default value of the attribute (if configured).
|
FacetAttributeDefinition |
withIsImmutable(Boolean isImmutable)
Whether the attribute is mutable or not.
|
FacetAttributeDefinition |
withRules(Map<String,Rule> rules)
Validation rules attached to the attribute definition.
|
FacetAttributeDefinition |
withType(FacetAttributeType type)
The type of the attribute.
|
FacetAttributeDefinition |
withType(String type)
The type of the attribute.
|
public void setType(String type)
The type of the attribute.
type
- The type of the attribute.FacetAttributeType
public String getType()
The type of the attribute.
FacetAttributeType
public FacetAttributeDefinition withType(String type)
The type of the attribute.
type
- The type of the attribute.FacetAttributeType
public void setType(FacetAttributeType type)
The type of the attribute.
type
- The type of the attribute.FacetAttributeType
public FacetAttributeDefinition withType(FacetAttributeType type)
The type of the attribute.
type
- The type of the attribute.FacetAttributeType
public void setDefaultValue(TypedAttributeValue defaultValue)
The default value of the attribute (if configured).
defaultValue
- The default value of the attribute (if configured).public TypedAttributeValue getDefaultValue()
The default value of the attribute (if configured).
public FacetAttributeDefinition withDefaultValue(TypedAttributeValue defaultValue)
The default value of the attribute (if configured).
defaultValue
- The default value of the attribute (if configured).public void setIsImmutable(Boolean isImmutable)
Whether the attribute is mutable or not.
isImmutable
- Whether the attribute is mutable or not.public Boolean getIsImmutable()
Whether the attribute is mutable or not.
public FacetAttributeDefinition withIsImmutable(Boolean isImmutable)
Whether the attribute is mutable or not.
isImmutable
- Whether the attribute is mutable or not.public Boolean isImmutable()
Whether the attribute is mutable or not.
public Map<String,Rule> getRules()
Validation rules attached to the attribute definition.
public void setRules(Map<String,Rule> rules)
Validation rules attached to the attribute definition.
rules
- Validation rules attached to the attribute definition.public FacetAttributeDefinition withRules(Map<String,Rule> rules)
Validation rules attached to the attribute definition.
rules
- Validation rules attached to the attribute definition.public FacetAttributeDefinition addRulesEntry(String key, Rule value)
public FacetAttributeDefinition clearRulesEntries()
public String toString()
toString
in class Object
Object.toString()
public FacetAttributeDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.