Interface CreatePrivateDnsNamespaceRequest.Builder

    • Method Detail

      • name

        CreatePrivateDnsNamespaceRequest.Builder name​(String name)

        The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon RouteĀ 53 private hosted zone that has the same name as the namespace.

        Parameters:
        name - The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon RouteĀ 53 private hosted zone that has the same name as the namespace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • creatorRequestId

        CreatePrivateDnsNamespaceRequest.Builder creatorRequestId​(String creatorRequestId)

        A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string (for example, a date/timestamp).

        Parameters:
        creatorRequestId - A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string (for example, a date/timestamp).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreatePrivateDnsNamespaceRequest.Builder description​(String description)

        A description for the namespace.

        Parameters:
        description - A description for the namespace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vpc

        CreatePrivateDnsNamespaceRequest.Builder vpc​(String vpc)

        The ID of the Amazon VPC that you want to associate the namespace with.

        Parameters:
        vpc - The ID of the Amazon VPC that you want to associate the namespace with.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreatePrivateDnsNamespaceRequest.Builder tags​(Collection<Tag> tags)

        The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.

        Parameters:
        tags - The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreatePrivateDnsNamespaceRequest.Builder tags​(Tag... tags)

        The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.

        Parameters:
        tags - The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreatePrivateDnsNamespaceRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)