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

com.pulumi.azurenative.advisor.SuppressionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.advisor;

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;


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

    public static final SuppressionArgs Empty = new SuppressionArgs();

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

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

    /**
     * The recommendation ID.
     * 
     */
    @Import(name="recommendationId", required=true)
    private Output recommendationId;

    /**
     * @return The recommendation ID.
     * 
     */
    public Output recommendationId() {
        return this.recommendationId;
    }

    /**
     * The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
     * 
     */
    @Import(name="resourceUri", required=true)
    private Output resourceUri;

    /**
     * @return The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
     * 
     */
    public Output resourceUri() {
        return this.resourceUri;
    }

    /**
     * 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);
    }

    /**
     * The duration for which the suppression is valid.
     * 
     */
    @Import(name="ttl")
    private @Nullable Output ttl;

    /**
     * @return The duration for which the suppression is valid.
     * 
     */
    public Optional> ttl() {
        return Optional.ofNullable(this.ttl);
    }

    private SuppressionArgs() {}

    private SuppressionArgs(SuppressionArgs $) {
        this.name = $.name;
        this.recommendationId = $.recommendationId;
        this.resourceUri = $.resourceUri;
        this.suppressionId = $.suppressionId;
        this.ttl = $.ttl;
    }

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

    public static final class Builder {
        private SuppressionArgs $;

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

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

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

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

        /**
         * @param recommendationId The recommendation ID.
         * 
         * @return builder
         * 
         */
        public Builder recommendationId(Output recommendationId) {
            $.recommendationId = recommendationId;
            return this;
        }

        /**
         * @param recommendationId The recommendation ID.
         * 
         * @return builder
         * 
         */
        public Builder recommendationId(String recommendationId) {
            return recommendationId(Output.of(recommendationId));
        }

        /**
         * @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(Output resourceUri) {
            $.resourceUri = resourceUri;
            return this;
        }

        /**
         * @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(String resourceUri) {
            return resourceUri(Output.of(resourceUri));
        }

        /**
         * @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 The duration for which the suppression is valid.
         * 
         * @return builder
         * 
         */
        public Builder ttl(@Nullable Output ttl) {
            $.ttl = ttl;
            return this;
        }

        /**
         * @param ttl The duration for which the suppression is valid.
         * 
         * @return builder
         * 
         */
        public Builder ttl(String ttl) {
            return ttl(Output.of(ttl));
        }

        public SuppressionArgs build() {
            if ($.recommendationId == null) {
                throw new MissingRequiredPropertyException("SuppressionArgs", "recommendationId");
            }
            if ($.resourceUri == null) {
                throw new MissingRequiredPropertyException("SuppressionArgs", "resourceUri");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy