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 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 as example.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

      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 the NamespaceProperties.Builder avoiding the need to create one manually via NamespaceProperties.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to properties(NamespaceProperties).

      Parameters:
      properties - a consumer that will call methods on NamespaceProperties.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 CreateDate is accurate to milliseconds. For example, the value 1516925490.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 of CreateDate is accurate to milliseconds. For example, the value 1516925490.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

      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.