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

com.pulumi.azurenative.dataprotection.inputs.AbsoluteDeleteOptionArgs 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;


/**
 * Delete option with duration
 * 
 */
public final class AbsoluteDeleteOptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final AbsoluteDeleteOptionArgs Empty = new AbsoluteDeleteOptionArgs();

    /**
     * Duration of deletion after given timespan
     * 
     */
    @Import(name="duration", required=true)
    private Output duration;

    /**
     * @return Duration of deletion after given timespan
     * 
     */
    public Output duration() {
        return this.duration;
    }

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

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

    private AbsoluteDeleteOptionArgs() {}

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

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

    public static final class Builder {
        private AbsoluteDeleteOptionArgs $;

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

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

        /**
         * @param duration Duration of deletion after given timespan
         * 
         * @return builder
         * 
         */
        public Builder duration(Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration Duration of deletion 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 'AbsoluteDeleteOption'.
         * 
         * @return builder
         * 
         */
        public Builder objectType(Output objectType) {
            $.objectType = objectType;
            return this;
        }

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

        public AbsoluteDeleteOptionArgs build() {
            if ($.duration == null) {
                throw new MissingRequiredPropertyException("AbsoluteDeleteOptionArgs", "duration");
            }
            $.objectType = Codegen.stringProp("objectType").output().arg($.objectType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy