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

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


/**
 * Adhoc trigger context
 * 
 */
public final class AdhocBasedTriggerContextArgs extends com.pulumi.resources.ResourceArgs {

    public static final AdhocBasedTriggerContextArgs Empty = new AdhocBasedTriggerContextArgs();

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

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

    /**
     * Tagging Criteria containing retention tag for adhoc backup.
     * 
     */
    @Import(name="taggingCriteria", required=true)
    private Output taggingCriteria;

    /**
     * @return Tagging Criteria containing retention tag for adhoc backup.
     * 
     */
    public Output taggingCriteria() {
        return this.taggingCriteria;
    }

    private AdhocBasedTriggerContextArgs() {}

    private AdhocBasedTriggerContextArgs(AdhocBasedTriggerContextArgs $) {
        this.objectType = $.objectType;
        this.taggingCriteria = $.taggingCriteria;
    }

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

    public static final class Builder {
        private AdhocBasedTriggerContextArgs $;

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

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

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

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

        /**
         * @param taggingCriteria Tagging Criteria containing retention tag for adhoc backup.
         * 
         * @return builder
         * 
         */
        public Builder taggingCriteria(Output taggingCriteria) {
            $.taggingCriteria = taggingCriteria;
            return this;
        }

        /**
         * @param taggingCriteria Tagging Criteria containing retention tag for adhoc backup.
         * 
         * @return builder
         * 
         */
        public Builder taggingCriteria(AdhocBasedTaggingCriteriaArgs taggingCriteria) {
            return taggingCriteria(Output.of(taggingCriteria));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy