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

com.pulumi.azurenative.workloads.inputs.LogSchedulePolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.workloads.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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Log policy schedule.
 * 
 */
public final class LogSchedulePolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final LogSchedulePolicyArgs Empty = new LogSchedulePolicyArgs();

    /**
     * Frequency of the log schedule operation of this policy in minutes.
     * 
     */
    @Import(name="scheduleFrequencyInMins")
    private @Nullable Output scheduleFrequencyInMins;

    /**
     * @return Frequency of the log schedule operation of this policy in minutes.
     * 
     */
    public Optional> scheduleFrequencyInMins() {
        return Optional.ofNullable(this.scheduleFrequencyInMins);
    }

    /**
     * This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
     * Expected value is 'LogSchedulePolicy'.
     * 
     */
    @Import(name="schedulePolicyType", required=true)
    private Output schedulePolicyType;

    /**
     * @return This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
     * Expected value is 'LogSchedulePolicy'.
     * 
     */
    public Output schedulePolicyType() {
        return this.schedulePolicyType;
    }

    private LogSchedulePolicyArgs() {}

    private LogSchedulePolicyArgs(LogSchedulePolicyArgs $) {
        this.scheduleFrequencyInMins = $.scheduleFrequencyInMins;
        this.schedulePolicyType = $.schedulePolicyType;
    }

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

    public static final class Builder {
        private LogSchedulePolicyArgs $;

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

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

        /**
         * @param scheduleFrequencyInMins Frequency of the log schedule operation of this policy in minutes.
         * 
         * @return builder
         * 
         */
        public Builder scheduleFrequencyInMins(@Nullable Output scheduleFrequencyInMins) {
            $.scheduleFrequencyInMins = scheduleFrequencyInMins;
            return this;
        }

        /**
         * @param scheduleFrequencyInMins Frequency of the log schedule operation of this policy in minutes.
         * 
         * @return builder
         * 
         */
        public Builder scheduleFrequencyInMins(Integer scheduleFrequencyInMins) {
            return scheduleFrequencyInMins(Output.of(scheduleFrequencyInMins));
        }

        /**
         * @param schedulePolicyType This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
         * Expected value is 'LogSchedulePolicy'.
         * 
         * @return builder
         * 
         */
        public Builder schedulePolicyType(Output schedulePolicyType) {
            $.schedulePolicyType = schedulePolicyType;
            return this;
        }

        /**
         * @param schedulePolicyType This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
         * Expected value is 'LogSchedulePolicy'.
         * 
         * @return builder
         * 
         */
        public Builder schedulePolicyType(String schedulePolicyType) {
            return schedulePolicyType(Output.of(schedulePolicyType));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy