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

com.pulumi.azurenative.dataprotection.inputs.SourceLifeCycleArgs 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.AbsoluteDeleteOptionArgs;
import com.pulumi.azurenative.dataprotection.inputs.DataStoreInfoBaseArgs;
import com.pulumi.azurenative.dataprotection.inputs.TargetCopySettingArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Source LifeCycle
 * 
 */
public final class SourceLifeCycleArgs extends com.pulumi.resources.ResourceArgs {

    public static final SourceLifeCycleArgs Empty = new SourceLifeCycleArgs();

    /**
     * Delete Option
     * 
     */
    @Import(name="deleteAfter", required=true)
    private Output deleteAfter;

    /**
     * @return Delete Option
     * 
     */
    public Output deleteAfter() {
        return this.deleteAfter;
    }

    /**
     * DataStoreInfo base
     * 
     */
    @Import(name="sourceDataStore", required=true)
    private Output sourceDataStore;

    /**
     * @return DataStoreInfo base
     * 
     */
    public Output sourceDataStore() {
        return this.sourceDataStore;
    }

    @Import(name="targetDataStoreCopySettings")
    private @Nullable Output> targetDataStoreCopySettings;

    public Optional>> targetDataStoreCopySettings() {
        return Optional.ofNullable(this.targetDataStoreCopySettings);
    }

    private SourceLifeCycleArgs() {}

    private SourceLifeCycleArgs(SourceLifeCycleArgs $) {
        this.deleteAfter = $.deleteAfter;
        this.sourceDataStore = $.sourceDataStore;
        this.targetDataStoreCopySettings = $.targetDataStoreCopySettings;
    }

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

    public static final class Builder {
        private SourceLifeCycleArgs $;

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

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

        /**
         * @param deleteAfter Delete Option
         * 
         * @return builder
         * 
         */
        public Builder deleteAfter(Output deleteAfter) {
            $.deleteAfter = deleteAfter;
            return this;
        }

        /**
         * @param deleteAfter Delete Option
         * 
         * @return builder
         * 
         */
        public Builder deleteAfter(AbsoluteDeleteOptionArgs deleteAfter) {
            return deleteAfter(Output.of(deleteAfter));
        }

        /**
         * @param sourceDataStore DataStoreInfo base
         * 
         * @return builder
         * 
         */
        public Builder sourceDataStore(Output sourceDataStore) {
            $.sourceDataStore = sourceDataStore;
            return this;
        }

        /**
         * @param sourceDataStore DataStoreInfo base
         * 
         * @return builder
         * 
         */
        public Builder sourceDataStore(DataStoreInfoBaseArgs sourceDataStore) {
            return sourceDataStore(Output.of(sourceDataStore));
        }

        public Builder targetDataStoreCopySettings(@Nullable Output> targetDataStoreCopySettings) {
            $.targetDataStoreCopySettings = targetDataStoreCopySettings;
            return this;
        }

        public Builder targetDataStoreCopySettings(List targetDataStoreCopySettings) {
            return targetDataStoreCopySettings(Output.of(targetDataStoreCopySettings));
        }

        public Builder targetDataStoreCopySettings(TargetCopySettingArgs... targetDataStoreCopySettings) {
            return targetDataStoreCopySettings(List.of(targetDataStoreCopySettings));
        }

        public SourceLifeCycleArgs build() {
            if ($.deleteAfter == null) {
                throw new MissingRequiredPropertyException("SourceLifeCycleArgs", "deleteAfter");
            }
            if ($.sourceDataStore == null) {
                throw new MissingRequiredPropertyException("SourceLifeCycleArgs", "sourceDataStore");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy