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

com.pulumi.azure.advisor.inputs.SuppressionState 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.advisor.inputs;

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


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

    public static final SuppressionState Empty = new SuppressionState();

    /**
     * The Name which should be used for this Advisor suppression. Changing this forces a new Advisor suppression to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The Name which should be used for this Advisor suppression. Changing this forces a new Advisor suppression to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the Advisor recommendation to suppress. Changing this forces a new Advisor suppression to be created.
     * 
     */
    @Import(name="recommendationId")
    private @Nullable Output recommendationId;

    /**
     * @return The ID of the Advisor recommendation to suppress. Changing this forces a new Advisor suppression to be created.
     * 
     */
    public Optional> recommendationId() {
        return Optional.ofNullable(this.recommendationId);
    }

    /**
     * The ID of the Resource to suppress the Advisor recommendation for. Changing this forces a new Advisor suppression to be created.
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return The ID of the Resource to suppress the Advisor recommendation for. Changing this forces a new Advisor suppression to be created.
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    /**
     * The GUID of the suppression.
     * 
     */
    @Import(name="suppressionId")
    private @Nullable Output suppressionId;

    /**
     * @return The GUID of the suppression.
     * 
     */
    public Optional> suppressionId() {
        return Optional.ofNullable(this.suppressionId);
    }

    /**
     * A optional time to live value. If omitted, the suppression will not expire. Changing this forces a new Advisor suppression to be created.
     * 
     */
    @Import(name="ttl")
    private @Nullable Output ttl;

    /**
     * @return A optional time to live value. If omitted, the suppression will not expire. Changing this forces a new Advisor suppression to be created.
     * 
     */
    public Optional> ttl() {
        return Optional.ofNullable(this.ttl);
    }

    private SuppressionState() {}

    private SuppressionState(SuppressionState $) {
        this.name = $.name;
        this.recommendationId = $.recommendationId;
        this.resourceId = $.resourceId;
        this.suppressionId = $.suppressionId;
        this.ttl = $.ttl;
    }

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

    public static final class Builder {
        private SuppressionState $;

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

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

        /**
         * @param name The Name which should be used for this Advisor suppression. Changing this forces a new Advisor suppression to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The Name which should be used for this Advisor suppression. Changing this forces a new Advisor suppression to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param recommendationId The ID of the Advisor recommendation to suppress. Changing this forces a new Advisor suppression to be created.
         * 
         * @return builder
         * 
         */
        public Builder recommendationId(@Nullable Output recommendationId) {
            $.recommendationId = recommendationId;
            return this;
        }

        /**
         * @param recommendationId The ID of the Advisor recommendation to suppress. Changing this forces a new Advisor suppression to be created.
         * 
         * @return builder
         * 
         */
        public Builder recommendationId(String recommendationId) {
            return recommendationId(Output.of(recommendationId));
        }

        /**
         * @param resourceId The ID of the Resource to suppress the Advisor recommendation for. Changing this forces a new Advisor suppression to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The ID of the Resource to suppress the Advisor recommendation for. Changing this forces a new Advisor suppression to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param suppressionId The GUID of the suppression.
         * 
         * @return builder
         * 
         */
        public Builder suppressionId(@Nullable Output suppressionId) {
            $.suppressionId = suppressionId;
            return this;
        }

        /**
         * @param suppressionId The GUID of the suppression.
         * 
         * @return builder
         * 
         */
        public Builder suppressionId(String suppressionId) {
            return suppressionId(Output.of(suppressionId));
        }

        /**
         * @param ttl A optional time to live value. If omitted, the suppression will not expire. Changing this forces a new Advisor suppression to be created.
         * 
         * @return builder
         * 
         */
        public Builder ttl(@Nullable Output ttl) {
            $.ttl = ttl;
            return this;
        }

        /**
         * @param ttl A optional time to live value. If omitted, the suppression will not expire. Changing this forces a new Advisor suppression to be created.
         * 
         * @return builder
         * 
         */
        public Builder ttl(String ttl) {
            return ttl(Output.of(ttl));
        }

        public SuppressionState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy