Class Namespace

    • Method Detail

      • id

        public final String id()

        The ID of a namespace.

        Returns:
        The ID of a namespace.
      • arn

        public final String 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

        public final String name()

        The name of the namespace, such as example.com.

        Returns:
        The name of the namespace, such as example.com.
      • type

        public final 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 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 return NamespaceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        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:
        NamespaceType
      • typeAsString

        public final String 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 return NamespaceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        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:
        NamespaceType
      • description

        public final String 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

        public final Integer serviceCount()

        The number of services that are associated with the namespace.

        Returns:
        The number of services that are associated with the namespace.
      • properties

        public final NamespaceProperties 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

        public final Instant 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 value 1516925490.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 value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
      • creatorRequestId

        public final 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.

        Returns:
        A unique string that identifies the request and that allows failed requests to be retried without the risk of running an operation twice.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)