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

com.pulumi.aws.fsx.inputs.OpenZfsVolumeOriginSnapshotArgs Maven / Gradle / Ivy

// *** 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.fsx.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final OpenZfsVolumeOriginSnapshotArgs Empty = new OpenZfsVolumeOriginSnapshotArgs();

    /**
     * Specifies the strategy used when copying data from the snapshot to the new volume. Valid values are `CLONE`, `FULL_COPY`, `INCREMENTAL_COPY`.
     * 
     */
    @Import(name="copyStrategy", required=true)
    private Output copyStrategy;

    /**
     * @return Specifies the strategy used when copying data from the snapshot to the new volume. Valid values are `CLONE`, `FULL_COPY`, `INCREMENTAL_COPY`.
     * 
     */
    public Output copyStrategy() {
        return this.copyStrategy;
    }

    /**
     * The Amazon Resource Name (ARN) of the origin snapshot.
     * 
     */
    @Import(name="snapshotArn", required=true)
    private Output snapshotArn;

    /**
     * @return The Amazon Resource Name (ARN) of the origin snapshot.
     * 
     */
    public Output snapshotArn() {
        return this.snapshotArn;
    }

    private OpenZfsVolumeOriginSnapshotArgs() {}

    private OpenZfsVolumeOriginSnapshotArgs(OpenZfsVolumeOriginSnapshotArgs $) {
        this.copyStrategy = $.copyStrategy;
        this.snapshotArn = $.snapshotArn;
    }

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

    public static final class Builder {
        private OpenZfsVolumeOriginSnapshotArgs $;

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

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

        /**
         * @param copyStrategy Specifies the strategy used when copying data from the snapshot to the new volume. Valid values are `CLONE`, `FULL_COPY`, `INCREMENTAL_COPY`.
         * 
         * @return builder
         * 
         */
        public Builder copyStrategy(Output copyStrategy) {
            $.copyStrategy = copyStrategy;
            return this;
        }

        /**
         * @param copyStrategy Specifies the strategy used when copying data from the snapshot to the new volume. Valid values are `CLONE`, `FULL_COPY`, `INCREMENTAL_COPY`.
         * 
         * @return builder
         * 
         */
        public Builder copyStrategy(String copyStrategy) {
            return copyStrategy(Output.of(copyStrategy));
        }

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

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

        public OpenZfsVolumeOriginSnapshotArgs build() {
            if ($.copyStrategy == null) {
                throw new MissingRequiredPropertyException("OpenZfsVolumeOriginSnapshotArgs", "copyStrategy");
            }
            if ($.snapshotArn == null) {
                throw new MissingRequiredPropertyException("OpenZfsVolumeOriginSnapshotArgs", "snapshotArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy