All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.redshiftserverless.inputs.SnapshotState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.redshiftserverless.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class SnapshotState extends com.pulumi.resources.ResourceArgs {

    public static final SnapshotState Empty = new SnapshotState();

    /**
     * All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
     * 
     */
    @Import(name="accountsWithProvisionedRestoreAccesses")
    private @Nullable Output> accountsWithProvisionedRestoreAccesses;

    /**
     * @return All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
     * 
     */
    public Optional>> accountsWithProvisionedRestoreAccesses() {
        return Optional.ofNullable(this.accountsWithProvisionedRestoreAccesses);
    }

    /**
     * All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
     * 
     */
    @Import(name="accountsWithRestoreAccesses")
    private @Nullable Output> accountsWithRestoreAccesses;

    /**
     * @return All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
     * 
     */
    public Optional>> accountsWithRestoreAccesses() {
        return Optional.ofNullable(this.accountsWithRestoreAccesses);
    }

    /**
     * The username of the database within a snapshot.
     * 
     */
    @Import(name="adminUsername")
    private @Nullable Output adminUsername;

    /**
     * @return The username of the database within a snapshot.
     * 
     */
    public Optional> adminUsername() {
        return Optional.ofNullable(this.adminUsername);
    }

    /**
     * The Amazon Resource Name (ARN) of the snapshot.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return The Amazon Resource Name (ARN) of the snapshot.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * The unique identifier of the KMS key used to encrypt the snapshot.
     * 
     */
    @Import(name="kmsKeyId")
    private @Nullable Output kmsKeyId;

    /**
     * @return The unique identifier of the KMS key used to encrypt the snapshot.
     * 
     */
    public Optional> kmsKeyId() {
        return Optional.ofNullable(this.kmsKeyId);
    }

    /**
     * The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
     * 
     */
    @Import(name="namespaceArn")
    private @Nullable Output namespaceArn;

    /**
     * @return The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
     * 
     */
    public Optional> namespaceArn() {
        return Optional.ofNullable(this.namespaceArn);
    }

    /**
     * The namespace to create a snapshot for.
     * 
     */
    @Import(name="namespaceName")
    private @Nullable Output namespaceName;

    /**
     * @return The namespace to create a snapshot for.
     * 
     */
    public Optional> namespaceName() {
        return Optional.ofNullable(this.namespaceName);
    }

    /**
     * The owner Amazon Web Services; account of the snapshot.
     * 
     */
    @Import(name="ownerAccount")
    private @Nullable Output ownerAccount;

    /**
     * @return The owner Amazon Web Services; account of the snapshot.
     * 
     */
    public Optional> ownerAccount() {
        return Optional.ofNullable(this.ownerAccount);
    }

    /**
     * How long to retain the created snapshot. Default value is `-1`.
     * 
     */
    @Import(name="retentionPeriod")
    private @Nullable Output retentionPeriod;

    /**
     * @return How long to retain the created snapshot. Default value is `-1`.
     * 
     */
    public Optional> retentionPeriod() {
        return Optional.ofNullable(this.retentionPeriod);
    }

    /**
     * The name of the snapshot.
     * 
     */
    @Import(name="snapshotName")
    private @Nullable Output snapshotName;

    /**
     * @return The name of the snapshot.
     * 
     */
    public Optional> snapshotName() {
        return Optional.ofNullable(this.snapshotName);
    }

    private SnapshotState() {}

    private SnapshotState(SnapshotState $) {
        this.accountsWithProvisionedRestoreAccesses = $.accountsWithProvisionedRestoreAccesses;
        this.accountsWithRestoreAccesses = $.accountsWithRestoreAccesses;
        this.adminUsername = $.adminUsername;
        this.arn = $.arn;
        this.kmsKeyId = $.kmsKeyId;
        this.namespaceArn = $.namespaceArn;
        this.namespaceName = $.namespaceName;
        this.ownerAccount = $.ownerAccount;
        this.retentionPeriod = $.retentionPeriod;
        this.snapshotName = $.snapshotName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(SnapshotState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private SnapshotState $;

        public Builder() {
            $ = new SnapshotState();
        }

        public Builder(SnapshotState defaults) {
            $ = new SnapshotState(Objects.requireNonNull(defaults));
        }

        /**
         * @param accountsWithProvisionedRestoreAccesses All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
         * 
         * @return builder
         * 
         */
        public Builder accountsWithProvisionedRestoreAccesses(@Nullable Output> accountsWithProvisionedRestoreAccesses) {
            $.accountsWithProvisionedRestoreAccesses = accountsWithProvisionedRestoreAccesses;
            return this;
        }

        /**
         * @param accountsWithProvisionedRestoreAccesses All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
         * 
         * @return builder
         * 
         */
        public Builder accountsWithProvisionedRestoreAccesses(List accountsWithProvisionedRestoreAccesses) {
            return accountsWithProvisionedRestoreAccesses(Output.of(accountsWithProvisionedRestoreAccesses));
        }

        /**
         * @param accountsWithProvisionedRestoreAccesses All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
         * 
         * @return builder
         * 
         */
        public Builder accountsWithProvisionedRestoreAccesses(String... accountsWithProvisionedRestoreAccesses) {
            return accountsWithProvisionedRestoreAccesses(List.of(accountsWithProvisionedRestoreAccesses));
        }

        /**
         * @param accountsWithRestoreAccesses All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
         * 
         * @return builder
         * 
         */
        public Builder accountsWithRestoreAccesses(@Nullable Output> accountsWithRestoreAccesses) {
            $.accountsWithRestoreAccesses = accountsWithRestoreAccesses;
            return this;
        }

        /**
         * @param accountsWithRestoreAccesses All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
         * 
         * @return builder
         * 
         */
        public Builder accountsWithRestoreAccesses(List accountsWithRestoreAccesses) {
            return accountsWithRestoreAccesses(Output.of(accountsWithRestoreAccesses));
        }

        /**
         * @param accountsWithRestoreAccesses All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
         * 
         * @return builder
         * 
         */
        public Builder accountsWithRestoreAccesses(String... accountsWithRestoreAccesses) {
            return accountsWithRestoreAccesses(List.of(accountsWithRestoreAccesses));
        }

        /**
         * @param adminUsername The username of the database within a snapshot.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(@Nullable Output adminUsername) {
            $.adminUsername = adminUsername;
            return this;
        }

        /**
         * @param adminUsername The username of the database within a snapshot.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(String adminUsername) {
            return adminUsername(Output.of(adminUsername));
        }

        /**
         * @param arn The Amazon Resource Name (ARN) of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The Amazon Resource Name (ARN) of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param kmsKeyId The unique identifier of the KMS key used to encrypt the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(@Nullable Output kmsKeyId) {
            $.kmsKeyId = kmsKeyId;
            return this;
        }

        /**
         * @param kmsKeyId The unique identifier of the KMS key used to encrypt the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(String kmsKeyId) {
            return kmsKeyId(Output.of(kmsKeyId));
        }

        /**
         * @param namespaceArn The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
         * 
         * @return builder
         * 
         */
        public Builder namespaceArn(@Nullable Output namespaceArn) {
            $.namespaceArn = namespaceArn;
            return this;
        }

        /**
         * @param namespaceArn The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
         * 
         * @return builder
         * 
         */
        public Builder namespaceArn(String namespaceArn) {
            return namespaceArn(Output.of(namespaceArn));
        }

        /**
         * @param namespaceName The namespace to create a snapshot for.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(@Nullable Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param namespaceName The namespace to create a snapshot for.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        /**
         * @param ownerAccount The owner Amazon Web Services; account of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder ownerAccount(@Nullable Output ownerAccount) {
            $.ownerAccount = ownerAccount;
            return this;
        }

        /**
         * @param ownerAccount The owner Amazon Web Services; account of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder ownerAccount(String ownerAccount) {
            return ownerAccount(Output.of(ownerAccount));
        }

        /**
         * @param retentionPeriod How long to retain the created snapshot. Default value is `-1`.
         * 
         * @return builder
         * 
         */
        public Builder retentionPeriod(@Nullable Output retentionPeriod) {
            $.retentionPeriod = retentionPeriod;
            return this;
        }

        /**
         * @param retentionPeriod How long to retain the created snapshot. Default value is `-1`.
         * 
         * @return builder
         * 
         */
        public Builder retentionPeriod(Integer retentionPeriod) {
            return retentionPeriod(Output.of(retentionPeriod));
        }

        /**
         * @param snapshotName The name of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder snapshotName(@Nullable Output snapshotName) {
            $.snapshotName = snapshotName;
            return this;
        }

        /**
         * @param snapshotName The name of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder snapshotName(String snapshotName) {
            return snapshotName(Output.of(snapshotName));
        }

        public SnapshotState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy