Interface CreateArchiveRequest.Builder

    • Method Detail

      • archiveName

        CreateArchiveRequest.Builder archiveName​(String archiveName)

        A unique name for the new archive.

        Parameters:
        archiveName - A unique name for the new archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clientToken

        CreateArchiveRequest.Builder clientToken​(String clientToken)

        A unique token Amazon SES uses to recognize retries of this request.

        Parameters:
        clientToken - A unique token Amazon SES uses to recognize retries of this request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • kmsKeyArn

        CreateArchiveRequest.Builder kmsKeyArn​(String kmsKeyArn)

        The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.

        Parameters:
        kmsKeyArn - The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • retention

        CreateArchiveRequest.Builder retention​(ArchiveRetention retention)

        The period for retaining emails in the archive before automatic deletion.

        Parameters:
        retention - The period for retaining emails in the archive before automatic deletion.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

        Parameters:
        tags - The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateArchiveRequest.Builder tags​(Tag... tags)

        The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

        Parameters:
        tags - The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

        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)