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

com.pulumi.azure.core.SubscriptionPolicyExemptionArgs 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.core;

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


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

    public static final SubscriptionPolicyExemptionArgs Empty = new SubscriptionPolicyExemptionArgs();

    /**
     * A description to use for this Policy Exemption.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description to use for this Policy Exemption.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * A friendly display name to use for this Policy Exemption.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return A friendly display name to use for this Policy Exemption.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
     * 
     */
    @Import(name="exemptionCategory", required=true)
    private Output exemptionCategory;

    /**
     * @return The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
     * 
     */
    public Output exemptionCategory() {
        return this.exemptionCategory;
    }

    /**
     * The expiration date and time in UTC ISO 8601 format of this policy exemption.
     * 
     */
    @Import(name="expiresOn")
    private @Nullable Output expiresOn;

    /**
     * @return The expiration date and time in UTC ISO 8601 format of this policy exemption.
     * 
     */
    public Optional> expiresOn() {
        return Optional.ofNullable(this.expiresOn);
    }

    /**
     * The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output metadata;

    /**
     * @return The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
     * 
     */
    public Optional> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * The name of the Policy Exemption. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Policy Exemption. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="policyAssignmentId", required=true)
    private Output policyAssignmentId;

    /**
     * @return The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
     * 
     */
    public Output policyAssignmentId() {
        return this.policyAssignmentId;
    }

    /**
     * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
     * 
     */
    @Import(name="policyDefinitionReferenceIds")
    private @Nullable Output> policyDefinitionReferenceIds;

    /**
     * @return The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
     * 
     */
    public Optional>> policyDefinitionReferenceIds() {
        return Optional.ofNullable(this.policyDefinitionReferenceIds);
    }

    /**
     * The Subscription ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="subscriptionId", required=true)
    private Output subscriptionId;

    /**
     * @return The Subscription ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
     * 
     */
    public Output subscriptionId() {
        return this.subscriptionId;
    }

    private SubscriptionPolicyExemptionArgs() {}

    private SubscriptionPolicyExemptionArgs(SubscriptionPolicyExemptionArgs $) {
        this.description = $.description;
        this.displayName = $.displayName;
        this.exemptionCategory = $.exemptionCategory;
        this.expiresOn = $.expiresOn;
        this.metadata = $.metadata;
        this.name = $.name;
        this.policyAssignmentId = $.policyAssignmentId;
        this.policyDefinitionReferenceIds = $.policyDefinitionReferenceIds;
        this.subscriptionId = $.subscriptionId;
    }

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

    public static final class Builder {
        private SubscriptionPolicyExemptionArgs $;

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

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

        /**
         * @param description A description to use for this Policy Exemption.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description to use for this Policy Exemption.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName A friendly display name to use for this Policy Exemption.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName A friendly display name to use for this Policy Exemption.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param exemptionCategory The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
         * 
         * @return builder
         * 
         */
        public Builder exemptionCategory(Output exemptionCategory) {
            $.exemptionCategory = exemptionCategory;
            return this;
        }

        /**
         * @param exemptionCategory The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
         * 
         * @return builder
         * 
         */
        public Builder exemptionCategory(String exemptionCategory) {
            return exemptionCategory(Output.of(exemptionCategory));
        }

        /**
         * @param expiresOn The expiration date and time in UTC ISO 8601 format of this policy exemption.
         * 
         * @return builder
         * 
         */
        public Builder expiresOn(@Nullable Output expiresOn) {
            $.expiresOn = expiresOn;
            return this;
        }

        /**
         * @param expiresOn The expiration date and time in UTC ISO 8601 format of this policy exemption.
         * 
         * @return builder
         * 
         */
        public Builder expiresOn(String expiresOn) {
            return expiresOn(Output.of(expiresOn));
        }

        /**
         * @param metadata The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
         * 
         * @return builder
         * 
         */
        public Builder metadata(String metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param name The name of the Policy Exemption. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Policy Exemption. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param policyAssignmentId The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder policyAssignmentId(Output policyAssignmentId) {
            $.policyAssignmentId = policyAssignmentId;
            return this;
        }

        /**
         * @param policyAssignmentId The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder policyAssignmentId(String policyAssignmentId) {
            return policyAssignmentId(Output.of(policyAssignmentId));
        }

        /**
         * @param policyDefinitionReferenceIds The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionReferenceIds(@Nullable Output> policyDefinitionReferenceIds) {
            $.policyDefinitionReferenceIds = policyDefinitionReferenceIds;
            return this;
        }

        /**
         * @param policyDefinitionReferenceIds The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionReferenceIds(List policyDefinitionReferenceIds) {
            return policyDefinitionReferenceIds(Output.of(policyDefinitionReferenceIds));
        }

        /**
         * @param policyDefinitionReferenceIds The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionReferenceIds(String... policyDefinitionReferenceIds) {
            return policyDefinitionReferenceIds(List.of(policyDefinitionReferenceIds));
        }

        /**
         * @param subscriptionId The Subscription ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(Output subscriptionId) {
            $.subscriptionId = subscriptionId;
            return this;
        }

        /**
         * @param subscriptionId The Subscription ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(String subscriptionId) {
            return subscriptionId(Output.of(subscriptionId));
        }

        public SubscriptionPolicyExemptionArgs build() {
            if ($.exemptionCategory == null) {
                throw new MissingRequiredPropertyException("SubscriptionPolicyExemptionArgs", "exemptionCategory");
            }
            if ($.policyAssignmentId == null) {
                throw new MissingRequiredPropertyException("SubscriptionPolicyExemptionArgs", "policyAssignmentId");
            }
            if ($.subscriptionId == null) {
                throw new MissingRequiredPropertyException("SubscriptionPolicyExemptionArgs", "subscriptionId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy