Interface Namespace.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Namespace.Builder,Namespace>,SdkBuilder<Namespace.Builder,Namespace>,SdkPojo
- Enclosing class:
- Namespace
public static interface Namespace.Builder extends SdkPojo, CopyableBuilder<Namespace.Builder,Namespace>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Namespace.Builderarn(String arn)The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.Namespace.BuildercreateDate(Instant createDate)The date that the namespace was created, in Unix date/time format and Coordinated Universal Time (UTC).Namespace.BuildercreatorRequestId(String creatorRequestId)A unique string that identifies the request and that allows failed requests to be retried without the risk of running an operation twice.Namespace.Builderdescription(String description)The description that you specify for the namespace when you create it.Namespace.Builderid(String id)The ID of a namespace.Namespace.Buildername(String name)The name of the namespace, such asexample.com.default Namespace.Builderproperties(Consumer<NamespaceProperties.Builder> properties)A complex type that contains information that's specific to the type of the namespace.Namespace.Builderproperties(NamespaceProperties properties)A complex type that contains information that's specific to the type of the namespace.Namespace.BuilderserviceCount(Integer serviceCount)The number of services that are associated with the namespace.Namespace.Buildertype(String type)The type of the namespace.Namespace.Buildertype(NamespaceType type)The type of the namespace.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
id
Namespace.Builder id(String id)
The ID of a namespace.
- Parameters:
id- The ID of a namespace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
Namespace.Builder arn(String arn)
The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.
- Parameters:
arn- The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Namespace.Builder name(String name)
The name of the namespace, such as
example.com.- Parameters:
name- The name of the namespace, such asexample.com.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Namespace.Builder type(String type)
The type of the namespace. The methods for discovering instances depends on the value that you specify:
- HTTP
-
Instances can be discovered only programmatically, using the Cloud Map
DiscoverInstancesAPI. - DNS_PUBLIC
-
Instances can be discovered using public DNS queries and using the
DiscoverInstancesAPI. - DNS_PRIVATE
-
Instances can be discovered using DNS queries in VPCs and using the
DiscoverInstancesAPI.
- Parameters:
type- The type of the namespace. The methods for discovering instances depends on the value that you specify:- HTTP
-
Instances can be discovered only programmatically, using the Cloud Map
DiscoverInstancesAPI. - DNS_PUBLIC
-
Instances can be discovered using public DNS queries and using the
DiscoverInstancesAPI. - DNS_PRIVATE
-
Instances can be discovered using DNS queries in VPCs and using the
DiscoverInstancesAPI.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NamespaceType,NamespaceType
-
type
Namespace.Builder type(NamespaceType type)
The type of the namespace. The methods for discovering instances depends on the value that you specify:
- HTTP
-
Instances can be discovered only programmatically, using the Cloud Map
DiscoverInstancesAPI. - DNS_PUBLIC
-
Instances can be discovered using public DNS queries and using the
DiscoverInstancesAPI. - DNS_PRIVATE
-
Instances can be discovered using DNS queries in VPCs and using the
DiscoverInstancesAPI.
- Parameters:
type- The type of the namespace. The methods for discovering instances depends on the value that you specify:- HTTP
-
Instances can be discovered only programmatically, using the Cloud Map
DiscoverInstancesAPI. - DNS_PUBLIC
-
Instances can be discovered using public DNS queries and using the
DiscoverInstancesAPI. - DNS_PRIVATE
-
Instances can be discovered using DNS queries in VPCs and using the
DiscoverInstancesAPI.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NamespaceType,NamespaceType
-
description
Namespace.Builder description(String description)
The description that you specify for the namespace when you create it.
- Parameters:
description- The description that you specify for the namespace when you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceCount
Namespace.Builder serviceCount(Integer serviceCount)
The number of services that are associated with the namespace.
- Parameters:
serviceCount- The number of services that are associated with the namespace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
Namespace.Builder properties(NamespaceProperties properties)
A complex type that contains information that's specific to the type of the namespace.
- Parameters:
properties- A complex type that contains information that's specific to the type of the namespace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
default Namespace.Builder properties(Consumer<NamespaceProperties.Builder> properties)
A complex type that contains information that's specific to the type of the namespace.
This is a convenience method that creates an instance of theNamespaceProperties.Builderavoiding the need to create one manually viaNamespaceProperties.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproperties(NamespaceProperties).- Parameters:
properties- a consumer that will call methods onNamespaceProperties.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
properties(NamespaceProperties)
-
createDate
Namespace.Builder createDate(Instant createDate)
The date that the namespace was created, in Unix date/time format and Coordinated Universal Time (UTC). The value of
CreateDateis accurate to milliseconds. For example, the value1516925490.087represents Friday, January 26, 2018 12:11:30.087 AM.- Parameters:
createDate- The date that the namespace was created, in Unix date/time format and Coordinated Universal Time (UTC). The value ofCreateDateis accurate to milliseconds. For example, the value1516925490.087represents Friday, January 26, 2018 12:11:30.087 AM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creatorRequestId
Namespace.Builder creatorRequestId(String creatorRequestId)
A unique string that identifies the request and that allows failed requests to be retried without the risk of running an operation twice.
- Parameters:
creatorRequestId- A unique string that identifies the request and that allows failed requests to be retried without the risk of running an operation twice.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-