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

com.pulumi.azurenative.dataprotection.inputs.TargetCopySettingArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show 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.azurenative.dataprotection.inputs;

import com.pulumi.azurenative.dataprotection.inputs.CopyOnExpiryOptionArgs;
import com.pulumi.azurenative.dataprotection.inputs.CustomCopyOptionArgs;
import com.pulumi.azurenative.dataprotection.inputs.DataStoreInfoBaseArgs;
import com.pulumi.azurenative.dataprotection.inputs.ImmediateCopyOptionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.util.Objects;


/**
 * Target copy settings
 * 
 */
public final class TargetCopySettingArgs extends com.pulumi.resources.ResourceArgs {

    public static final TargetCopySettingArgs Empty = new TargetCopySettingArgs();

    /**
     * It can be CustomCopyOption or ImmediateCopyOption.
     * 
     */
    @Import(name="copyAfter", required=true)
    private Output copyAfter;

    /**
     * @return It can be CustomCopyOption or ImmediateCopyOption.
     * 
     */
    public Output copyAfter() {
        return this.copyAfter;
    }

    /**
     * Info of target datastore
     * 
     */
    @Import(name="dataStore", required=true)
    private Output dataStore;

    /**
     * @return Info of target datastore
     * 
     */
    public Output dataStore() {
        return this.dataStore;
    }

    private TargetCopySettingArgs() {}

    private TargetCopySettingArgs(TargetCopySettingArgs $) {
        this.copyAfter = $.copyAfter;
        this.dataStore = $.dataStore;
    }

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

    public static final class Builder {
        private TargetCopySettingArgs $;

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

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

        /**
         * @param copyAfter It can be CustomCopyOption or ImmediateCopyOption.
         * 
         * @return builder
         * 
         */
        public Builder copyAfter(Output copyAfter) {
            $.copyAfter = copyAfter;
            return this;
        }

        /**
         * @param copyAfter It can be CustomCopyOption or ImmediateCopyOption.
         * 
         * @return builder
         * 
         */
        public Builder copyAfter(Object copyAfter) {
            return copyAfter(Output.of(copyAfter));
        }

        /**
         * @param dataStore Info of target datastore
         * 
         * @return builder
         * 
         */
        public Builder dataStore(Output dataStore) {
            $.dataStore = dataStore;
            return this;
        }

        /**
         * @param dataStore Info of target datastore
         * 
         * @return builder
         * 
         */
        public Builder dataStore(DataStoreInfoBaseArgs dataStore) {
            return dataStore(Output.of(dataStore));
        }

        public TargetCopySettingArgs build() {
            if ($.copyAfter == null) {
                throw new MissingRequiredPropertyException("TargetCopySettingArgs", "copyAfter");
            }
            if ($.dataStore == null) {
                throw new MissingRequiredPropertyException("TargetCopySettingArgs", "dataStore");
            }
            return $;
        }
    }

}