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

com.pulumi.azurenative.iotoperationsorchestrator.inputs.ReconciliationPolicyArgs 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.iotoperationsorchestrator.inputs;

import com.pulumi.azurenative.iotoperationsorchestrator.enums.ReconciliationPolicies;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Reconciliation Policy.
 * 
 */
public final class ReconciliationPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ReconciliationPolicyArgs Empty = new ReconciliationPolicyArgs();

    /**
     * Policy interval.
     * 
     */
    @Import(name="interval")
    private @Nullable Output interval;

    /**
     * @return Policy interval.
     * 
     */
    public Optional> interval() {
        return Optional.ofNullable(this.interval);
    }

    /**
     * Policy type
     * 
     */
    @Import(name="type", required=true)
    private Output> type;

    /**
     * @return Policy type
     * 
     */
    public Output> type() {
        return this.type;
    }

    private ReconciliationPolicyArgs() {}

    private ReconciliationPolicyArgs(ReconciliationPolicyArgs $) {
        this.interval = $.interval;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ReconciliationPolicyArgs $;

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

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

        /**
         * @param interval Policy interval.
         * 
         * @return builder
         * 
         */
        public Builder interval(@Nullable Output interval) {
            $.interval = interval;
            return this;
        }

        /**
         * @param interval Policy interval.
         * 
         * @return builder
         * 
         */
        public Builder interval(String interval) {
            return interval(Output.of(interval));
        }

        /**
         * @param type Policy type
         * 
         * @return builder
         * 
         */
        public Builder type(Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Policy type
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Policy type
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Policy type
         * 
         * @return builder
         * 
         */
        public Builder type(ReconciliationPolicies type) {
            return type(Either.ofRight(type));
        }

        public ReconciliationPolicyArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ReconciliationPolicyArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy