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

com.pulumi.azurenative.dataprotection.inputs.CustomCopyOptionArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Duration based custom options to copy
 * 
 */
public final class CustomCopyOptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomCopyOptionArgs Empty = new CustomCopyOptionArgs();

    /**
     * Data copied after given timespan
     * 
     */
    @Import(name="duration")
    private @Nullable Output duration;

    /**
     * @return Data copied after given timespan
     * 
     */
    public Optional> duration() {
        return Optional.ofNullable(this.duration);
    }

    /**
     * Type of the specific object - used for deserializing
     * Expected value is 'CustomCopyOption'.
     * 
     */
    @Import(name="objectType", required=true)
    private Output objectType;

    /**
     * @return Type of the specific object - used for deserializing
     * Expected value is 'CustomCopyOption'.
     * 
     */
    public Output objectType() {
        return this.objectType;
    }

    private CustomCopyOptionArgs() {}

    private CustomCopyOptionArgs(CustomCopyOptionArgs $) {
        this.duration = $.duration;
        this.objectType = $.objectType;
    }

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

    public static final class Builder {
        private CustomCopyOptionArgs $;

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

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

        /**
         * @param duration Data copied after given timespan
         * 
         * @return builder
         * 
         */
        public Builder duration(@Nullable Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration Data copied after given timespan
         * 
         * @return builder
         * 
         */
        public Builder duration(String duration) {
            return duration(Output.of(duration));
        }

        /**
         * @param objectType Type of the specific object - used for deserializing
         * Expected value is 'CustomCopyOption'.
         * 
         * @return builder
         * 
         */
        public Builder objectType(Output objectType) {
            $.objectType = objectType;
            return this;
        }

        /**
         * @param objectType Type of the specific object - used for deserializing
         * Expected value is 'CustomCopyOption'.
         * 
         * @return builder
         * 
         */
        public Builder objectType(String objectType) {
            return objectType(Output.of(objectType));
        }

        public CustomCopyOptionArgs build() {
            $.objectType = Codegen.stringProp("objectType").output().arg($.objectType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy