Interface Namespace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Namespace.Builder,
,Namespace> SdkBuilder<Namespace.Builder,
,Namespace> SdkPojo
- Enclosing class:
Namespace
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.createDate
(Instant createDate) The date that the namespace was created, in Unix date/time format and Coordinated Universal Time (UTC).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.description
(String description) The description that you specify for the namespace when you create it.The ID of a namespace.The name of the namespace, such asexample.com
.default Namespace.Builder
properties
(Consumer<NamespaceProperties.Builder> properties) A complex type that contains information that's specific to the type of the namespace.properties
(NamespaceProperties properties) A complex type that contains information that's specific to the type of the namespace.serviceCount
(Integer serviceCount) The number of services that are associated with the namespace.The type of the namespace.type
(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, sdkFields
-
Method Details
-
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
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
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
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
DiscoverInstances
API. - DNS_PUBLIC
-
Instances can be discovered using public DNS queries and using the
DiscoverInstances
API. - DNS_PRIVATE
-
Instances can be discovered using DNS queries in VPCs and using the
DiscoverInstances
API.
- 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
DiscoverInstances
API. - DNS_PUBLIC
-
Instances can be discovered using public DNS queries and using the
DiscoverInstances
API. - DNS_PRIVATE
-
Instances can be discovered using DNS queries in VPCs and using the
DiscoverInstances
API.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
DiscoverInstances
API. - DNS_PUBLIC
-
Instances can be discovered using public DNS queries and using the
DiscoverInstances
API. - DNS_PRIVATE
-
Instances can be discovered using DNS queries in VPCs and using the
DiscoverInstances
API.
- 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
DiscoverInstances
API. - DNS_PUBLIC
-
Instances can be discovered using public DNS queries and using the
DiscoverInstances
API. - DNS_PRIVATE
-
Instances can be discovered using DNS queries in VPCs and using the
DiscoverInstances
API.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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.Builder
avoiding the need to create one manually viaNamespaceProperties.builder()
.When the
Consumer
completes,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:
-
createDate
The date that the namespace was created, in Unix date/time format and Coordinated Universal Time (UTC). The value of
CreateDate
is accurate to milliseconds. For example, the value1516925490.087
represents 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 ofCreateDate
is accurate to milliseconds. For example, the value1516925490.087
represents 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
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.
-