Class Namespace
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Namespace.Builder,
Namespace>
A complex type that contains information about a specified namespace.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
arn()
The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.static Namespace.Builder
builder()
final Instant
The date that the namespace was created, in Unix date/time format and Coordinated Universal Time (UTC).final String
A unique string that identifies the request and that allows failed requests to be retried without the risk of running an operation twice.final String
The description that you specify for the namespace when you create it.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
id()
The ID of a namespace.final String
name()
The name of the namespace, such asexample.com
.final NamespaceProperties
A complex type that contains information that's specific to the type of the namespace.static Class
<? extends Namespace.Builder> final Integer
The number of services that are associated with the namespace.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final NamespaceType
type()
The type of the namespace.final String
The type of the namespace.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID of a namespace.
- Returns:
- The ID of a namespace.
-
arn
The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.
- Returns:
- The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.
-
name
The name of the namespace, such as
example.com
.- Returns:
- The name of the namespace, such as
example.com
.
-
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.
If the service returns an enum value that is not available in the current SDK version,
type
will returnNamespaceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- 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.
- See Also:
-
typeAsString
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.
If the service returns an enum value that is not available in the current SDK version,
type
will returnNamespaceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- 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.
- See Also:
-
description
The description that you specify for the namespace when you create it.
- Returns:
- The description that you specify for the namespace when you create it.
-
serviceCount
The number of services that are associated with the namespace.
- Returns:
- The number of services that are associated with the namespace.
-
properties
A complex type that contains information that's specific to the type of the namespace.
- Returns:
- A complex type that contains information that's specific to the type of the namespace.
-
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.- Returns:
- 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.
-
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:
- A unique string that identifies the request and that allows failed requests to be retried without the risk of running an operation twice.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Namespace.Builder,
Namespace> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-