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

com.pulumi.azurenative.workloads.inputs.RetentionDurationArgs 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.azurenative.workloads.enums.RetentionDurationType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Retention duration.
 * 
 */
public final class RetentionDurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final RetentionDurationArgs Empty = new RetentionDurationArgs();

    /**
     * Count of duration types. Retention duration is obtained by the counting the duration type Count times.
     * For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks.
     * 
     */
    @Import(name="count")
    private @Nullable Output count;

    /**
     * @return Count of duration types. Retention duration is obtained by the counting the duration type Count times.
     * For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks.
     * 
     */
    public Optional> count() {
        return Optional.ofNullable(this.count);
    }

    /**
     * Retention duration type of retention policy.
     * 
     */
    @Import(name="durationType")
    private @Nullable Output> durationType;

    /**
     * @return Retention duration type of retention policy.
     * 
     */
    public Optional>> durationType() {
        return Optional.ofNullable(this.durationType);
    }

    private RetentionDurationArgs() {}

    private RetentionDurationArgs(RetentionDurationArgs $) {
        this.count = $.count;
        this.durationType = $.durationType;
    }

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

    public static final class Builder {
        private RetentionDurationArgs $;

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

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

        /**
         * @param count Count of duration types. Retention duration is obtained by the counting the duration type Count times.
         * For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks.
         * 
         * @return builder
         * 
         */
        public Builder count(@Nullable Output count) {
            $.count = count;
            return this;
        }

        /**
         * @param count Count of duration types. Retention duration is obtained by the counting the duration type Count times.
         * For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks.
         * 
         * @return builder
         * 
         */
        public Builder count(Integer count) {
            return count(Output.of(count));
        }

        /**
         * @param durationType Retention duration type of retention policy.
         * 
         * @return builder
         * 
         */
        public Builder durationType(@Nullable Output> durationType) {
            $.durationType = durationType;
            return this;
        }

        /**
         * @param durationType Retention duration type of retention policy.
         * 
         * @return builder
         * 
         */
        public Builder durationType(Either durationType) {
            return durationType(Output.of(durationType));
        }

        /**
         * @param durationType Retention duration type of retention policy.
         * 
         * @return builder
         * 
         */
        public Builder durationType(String durationType) {
            return durationType(Either.ofLeft(durationType));
        }

        /**
         * @param durationType Retention duration type of retention policy.
         * 
         * @return builder
         * 
         */
        public Builder durationType(RetentionDurationType durationType) {
            return durationType(Either.ofRight(durationType));
        }

        public RetentionDurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy