public static interface TypedLinkAttributeDefinition.Builder extends CopyableBuilder<TypedLinkAttributeDefinition.Builder,TypedLinkAttributeDefinition>
Modifier and Type | Method and Description |
---|---|
default TypedLinkAttributeDefinition.Builder |
defaultValue(Consumer<TypedAttributeValue.Builder> defaultValue)
The default value of the attribute (if configured).
|
TypedLinkAttributeDefinition.Builder |
defaultValue(TypedAttributeValue defaultValue)
The default value of the attribute (if configured).
|
TypedLinkAttributeDefinition.Builder |
isImmutable(Boolean isImmutable)
Whether the attribute is mutable or not.
|
TypedLinkAttributeDefinition.Builder |
name(String name)
The unique name of the typed link attribute.
|
TypedLinkAttributeDefinition.Builder |
requiredBehavior(RequiredAttributeBehavior requiredBehavior)
The required behavior of the
TypedLinkAttributeDefinition . |
TypedLinkAttributeDefinition.Builder |
requiredBehavior(String requiredBehavior)
The required behavior of the
TypedLinkAttributeDefinition . |
TypedLinkAttributeDefinition.Builder |
rules(Map<String,Rule> rules)
Validation rules that are attached to the attribute definition.
|
TypedLinkAttributeDefinition.Builder |
type(FacetAttributeType type)
The type of the attribute.
|
TypedLinkAttributeDefinition.Builder |
type(String type)
The type of the attribute.
|
copy
applyMutation, build
TypedLinkAttributeDefinition.Builder name(String name)
The unique name of the typed link attribute.
name
- The unique name of the typed link attribute.TypedLinkAttributeDefinition.Builder type(String type)
The type of the attribute.
type
- The type of the attribute.FacetAttributeType
,
FacetAttributeType
TypedLinkAttributeDefinition.Builder type(FacetAttributeType type)
The type of the attribute.
type
- The type of the attribute.FacetAttributeType
,
FacetAttributeType
TypedLinkAttributeDefinition.Builder defaultValue(TypedAttributeValue defaultValue)
The default value of the attribute (if configured).
defaultValue
- The default value of the attribute (if configured).default TypedLinkAttributeDefinition.Builder defaultValue(Consumer<TypedAttributeValue.Builder> defaultValue)
The default value of the attribute (if configured).
This is a convenience that creates an instance of theTypedAttributeValue.Builder
avoiding the need
to create one manually via TypedAttributeValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to defaultValue(TypedAttributeValue)
.defaultValue
- a consumer that will call methods on TypedAttributeValue.Builder
defaultValue(TypedAttributeValue)
TypedLinkAttributeDefinition.Builder isImmutable(Boolean isImmutable)
Whether the attribute is mutable or not.
isImmutable
- Whether the attribute is mutable or not.TypedLinkAttributeDefinition.Builder rules(Map<String,Rule> rules)
Validation rules that are attached to the attribute definition.
rules
- Validation rules that are attached to the attribute definition.TypedLinkAttributeDefinition.Builder requiredBehavior(String requiredBehavior)
The required behavior of the TypedLinkAttributeDefinition
.
requiredBehavior
- The required behavior of the TypedLinkAttributeDefinition
.RequiredAttributeBehavior
,
RequiredAttributeBehavior
TypedLinkAttributeDefinition.Builder requiredBehavior(RequiredAttributeBehavior requiredBehavior)
The required behavior of the TypedLinkAttributeDefinition
.
requiredBehavior
- The required behavior of the TypedLinkAttributeDefinition
.RequiredAttributeBehavior
,
RequiredAttributeBehavior
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.