@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TypedLinkAttributeDefinition extends Object implements Serializable, Cloneable, StructuredPojo
A typed link attribute definition.
Constructor and Description |
---|
TypedLinkAttributeDefinition() |
Modifier and Type | Method and Description |
---|---|
TypedLinkAttributeDefinition |
addRulesEntry(String key,
Rule value)
Add a single Rules entry
|
TypedLinkAttributeDefinition |
clearRulesEntries()
Removes all the entries added into Rules.
|
TypedLinkAttributeDefinition |
clone() |
boolean |
equals(Object obj) |
TypedAttributeValue |
getDefaultValue()
The default value of the attribute (if configured).
|
Boolean |
getIsImmutable()
Whether the attribute is mutable or not.
|
String |
getName()
The unique name of the typed link attribute.
|
String |
getRequiredBehavior()
The required behavior of the
TypedLinkAttributeDefinition . |
Map<String,Rule> |
getRules()
Validation rules that are 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 |
setName(String name)
The unique name of the typed link attribute.
|
void |
setRequiredBehavior(RequiredAttributeBehavior requiredBehavior)
The required behavior of the
TypedLinkAttributeDefinition . |
void |
setRequiredBehavior(String requiredBehavior)
The required behavior of the
TypedLinkAttributeDefinition . |
void |
setRules(Map<String,Rule> rules)
Validation rules that are 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.
|
TypedLinkAttributeDefinition |
withDefaultValue(TypedAttributeValue defaultValue)
The default value of the attribute (if configured).
|
TypedLinkAttributeDefinition |
withIsImmutable(Boolean isImmutable)
Whether the attribute is mutable or not.
|
TypedLinkAttributeDefinition |
withName(String name)
The unique name of the typed link attribute.
|
TypedLinkAttributeDefinition |
withRequiredBehavior(RequiredAttributeBehavior requiredBehavior)
The required behavior of the
TypedLinkAttributeDefinition . |
TypedLinkAttributeDefinition |
withRequiredBehavior(String requiredBehavior)
The required behavior of the
TypedLinkAttributeDefinition . |
TypedLinkAttributeDefinition |
withRules(Map<String,Rule> rules)
Validation rules that are attached to the attribute definition.
|
TypedLinkAttributeDefinition |
withType(FacetAttributeType type)
The type of the attribute.
|
TypedLinkAttributeDefinition |
withType(String type)
The type of the attribute.
|
public void setName(String name)
The unique name of the typed link attribute.
name
- The unique name of the typed link attribute.public String getName()
The unique name of the typed link attribute.
public TypedLinkAttributeDefinition withName(String name)
The unique name of the typed link attribute.
name
- The unique name of the typed link 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 TypedLinkAttributeDefinition 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 TypedLinkAttributeDefinition 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 TypedLinkAttributeDefinition 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 TypedLinkAttributeDefinition 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 that are attached to the attribute definition.
public void setRules(Map<String,Rule> rules)
Validation rules that are attached to the attribute definition.
rules
- Validation rules that are attached to the attribute definition.public TypedLinkAttributeDefinition withRules(Map<String,Rule> rules)
Validation rules that are attached to the attribute definition.
rules
- Validation rules that are attached to the attribute definition.public TypedLinkAttributeDefinition addRulesEntry(String key, Rule value)
public TypedLinkAttributeDefinition clearRulesEntries()
public void setRequiredBehavior(String requiredBehavior)
The required behavior of the TypedLinkAttributeDefinition
.
requiredBehavior
- The required behavior of the TypedLinkAttributeDefinition
.RequiredAttributeBehavior
public String getRequiredBehavior()
The required behavior of the TypedLinkAttributeDefinition
.
TypedLinkAttributeDefinition
.RequiredAttributeBehavior
public TypedLinkAttributeDefinition withRequiredBehavior(String requiredBehavior)
The required behavior of the TypedLinkAttributeDefinition
.
requiredBehavior
- The required behavior of the TypedLinkAttributeDefinition
.RequiredAttributeBehavior
public void setRequiredBehavior(RequiredAttributeBehavior requiredBehavior)
The required behavior of the TypedLinkAttributeDefinition
.
requiredBehavior
- The required behavior of the TypedLinkAttributeDefinition
.RequiredAttributeBehavior
public TypedLinkAttributeDefinition withRequiredBehavior(RequiredAttributeBehavior requiredBehavior)
The required behavior of the TypedLinkAttributeDefinition
.
requiredBehavior
- The required behavior of the TypedLinkAttributeDefinition
.RequiredAttributeBehavior
public String toString()
toString
in class Object
Object.toString()
public TypedLinkAttributeDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.