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

com.pulumi.azure.storage.inputs.AccountQueuePropertiesHourMetricsArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.storage.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AccountQueuePropertiesHourMetricsArgs extends com.pulumi.resources.ResourceArgs {

    public static final AccountQueuePropertiesHourMetricsArgs Empty = new AccountQueuePropertiesHourMetricsArgs();

    /**
     * Indicates whether hour metrics are enabled for the Queue service.
     * 
     */
    @Import(name="enabled", required=true)
    private Output enabled;

    /**
     * @return Indicates whether hour metrics are enabled for the Queue service.
     * 
     */
    public Output enabled() {
        return this.enabled;
    }

    /**
     * Indicates whether metrics should generate summary statistics for called API operations.
     * 
     */
    @Import(name="includeApis")
    private @Nullable Output includeApis;

    /**
     * @return Indicates whether metrics should generate summary statistics for called API operations.
     * 
     */
    public Optional> includeApis() {
        return Optional.ofNullable(this.includeApis);
    }

    /**
     * Specifies the number of days that logs will be retained.
     * 
     */
    @Import(name="retentionPolicyDays")
    private @Nullable Output retentionPolicyDays;

    /**
     * @return Specifies the number of days that logs will be retained.
     * 
     */
    public Optional> retentionPolicyDays() {
        return Optional.ofNullable(this.retentionPolicyDays);
    }

    /**
     * The version of storage analytics to configure.
     * 
     */
    @Import(name="version", required=true)
    private Output version;

    /**
     * @return The version of storage analytics to configure.
     * 
     */
    public Output version() {
        return this.version;
    }

    private AccountQueuePropertiesHourMetricsArgs() {}

    private AccountQueuePropertiesHourMetricsArgs(AccountQueuePropertiesHourMetricsArgs $) {
        this.enabled = $.enabled;
        this.includeApis = $.includeApis;
        this.retentionPolicyDays = $.retentionPolicyDays;
        this.version = $.version;
    }

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

    public static final class Builder {
        private AccountQueuePropertiesHourMetricsArgs $;

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

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

        /**
         * @param enabled Indicates whether hour metrics are enabled for the Queue service.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Indicates whether hour metrics are enabled for the Queue service.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param includeApis Indicates whether metrics should generate summary statistics for called API operations.
         * 
         * @return builder
         * 
         */
        public Builder includeApis(@Nullable Output includeApis) {
            $.includeApis = includeApis;
            return this;
        }

        /**
         * @param includeApis Indicates whether metrics should generate summary statistics for called API operations.
         * 
         * @return builder
         * 
         */
        public Builder includeApis(Boolean includeApis) {
            return includeApis(Output.of(includeApis));
        }

        /**
         * @param retentionPolicyDays Specifies the number of days that logs will be retained.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicyDays(@Nullable Output retentionPolicyDays) {
            $.retentionPolicyDays = retentionPolicyDays;
            return this;
        }

        /**
         * @param retentionPolicyDays Specifies the number of days that logs will be retained.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicyDays(Integer retentionPolicyDays) {
            return retentionPolicyDays(Output.of(retentionPolicyDays));
        }

        /**
         * @param version The version of storage analytics to configure.
         * 
         * @return builder
         * 
         */
        public Builder version(Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The version of storage analytics to configure.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public AccountQueuePropertiesHourMetricsArgs build() {
            if ($.enabled == null) {
                throw new MissingRequiredPropertyException("AccountQueuePropertiesHourMetricsArgs", "enabled");
            }
            if ($.version == null) {
                throw new MissingRequiredPropertyException("AccountQueuePropertiesHourMetricsArgs", "version");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy