// *** 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<List<String>> accountsWithProvisionedRestoreAccesses;

    /**
     * @return All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
     * 
     */
    public Optional<Output<List<String>>> 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<List<String>> accountsWithRestoreAccesses;

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

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

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

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

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

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

    /**
     * @return The unique identifier of the KMS key used to encrypt the snapshot.
     * 
     */
    public Optional<Output<String>> 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<String> namespaceArn;

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

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

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

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

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

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

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

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

    /**
     * @return The name of the snapshot.
     * 
     */
    public Optional<Output<String>> 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<List<String>> 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<String> 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<List<String>> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> 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<Integer> 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<String> 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 $;
        }
    }

}
