Interface ReplicateKeyResponse.Builder

    • Method Detail

      • replicaKeyMetadata

        ReplicateKeyResponse.Builder replicaKeyMetadata​(KeyMetadata replicaKeyMetadata)

        Displays details about the new replica key, including its Amazon Resource Name (key ARN) and Key states of KMS keys. It also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.

        Parameters:
        replicaKeyMetadata - Displays details about the new replica key, including its Amazon Resource Name (key ARN) and Key states of KMS keys. It also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • replicaPolicy

        ReplicateKeyResponse.Builder replicaPolicy​(String replicaPolicy)

        The key policy of the new replica key. The value is a key policy document in JSON format.

        Parameters:
        replicaPolicy - The key policy of the new replica key. The value is a key policy document in JSON format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • replicaTags

        ReplicateKeyResponse.Builder replicaTags​(Collection<Tag> replicaTags)

        The tags on the new replica key. The value is a list of tag key and tag value pairs.

        Parameters:
        replicaTags - The tags on the new replica key. The value is a list of tag key and tag value pairs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • replicaTags

        ReplicateKeyResponse.Builder replicaTags​(Tag... replicaTags)

        The tags on the new replica key. The value is a list of tag key and tag value pairs.

        Parameters:
        replicaTags - The tags on the new replica key. The value is a list of tag key and tag value pairs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • replicaTags

        ReplicateKeyResponse.Builder replicaTags​(Consumer<Tag.Builder>... replicaTags)

        The tags on the new replica key. The value is a list of tag key and tag value pairs.

        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 #replicaTags(List).

        Parameters:
        replicaTags - 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:
        #replicaTags(java.util.Collection)