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

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

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 SubscriptionPolicyAssignmentNonComplianceMessageArgs extends com.pulumi.resources.ResourceArgs {

    public static final SubscriptionPolicyAssignmentNonComplianceMessageArgs Empty = new SubscriptionPolicyAssignmentNonComplianceMessageArgs();

    /**
     * The non-compliance message text. When assigning policy sets (initiatives), unless `policy_definition_reference_id` is specified then this message will be the default for all policies.
     * 
     */
    @Import(name="content", required=true)
    private Output content;

    /**
     * @return The non-compliance message text. When assigning policy sets (initiatives), unless `policy_definition_reference_id` is specified then this message will be the default for all policies.
     * 
     */
    public Output content() {
        return this.content;
    }

    /**
     * When assigning policy sets (initiatives), this is the ID of the policy definition that the non-compliance message applies to.
     * 
     */
    @Import(name="policyDefinitionReferenceId")
    private @Nullable Output policyDefinitionReferenceId;

    /**
     * @return When assigning policy sets (initiatives), this is the ID of the policy definition that the non-compliance message applies to.
     * 
     */
    public Optional> policyDefinitionReferenceId() {
        return Optional.ofNullable(this.policyDefinitionReferenceId);
    }

    private SubscriptionPolicyAssignmentNonComplianceMessageArgs() {}

    private SubscriptionPolicyAssignmentNonComplianceMessageArgs(SubscriptionPolicyAssignmentNonComplianceMessageArgs $) {
        this.content = $.content;
        this.policyDefinitionReferenceId = $.policyDefinitionReferenceId;
    }

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

    public static final class Builder {
        private SubscriptionPolicyAssignmentNonComplianceMessageArgs $;

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

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

        /**
         * @param content The non-compliance message text. When assigning policy sets (initiatives), unless `policy_definition_reference_id` is specified then this message will be the default for all policies.
         * 
         * @return builder
         * 
         */
        public Builder content(Output content) {
            $.content = content;
            return this;
        }

        /**
         * @param content The non-compliance message text. When assigning policy sets (initiatives), unless `policy_definition_reference_id` is specified then this message will be the default for all policies.
         * 
         * @return builder
         * 
         */
        public Builder content(String content) {
            return content(Output.of(content));
        }

        /**
         * @param policyDefinitionReferenceId When assigning policy sets (initiatives), this is the ID of the policy definition that the non-compliance message applies to.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionReferenceId(@Nullable Output policyDefinitionReferenceId) {
            $.policyDefinitionReferenceId = policyDefinitionReferenceId;
            return this;
        }

        /**
         * @param policyDefinitionReferenceId When assigning policy sets (initiatives), this is the ID of the policy definition that the non-compliance message applies to.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionReferenceId(String policyDefinitionReferenceId) {
            return policyDefinitionReferenceId(Output.of(policyDefinitionReferenceId));
        }

        public SubscriptionPolicyAssignmentNonComplianceMessageArgs build() {
            if ($.content == null) {
                throw new MissingRequiredPropertyException("SubscriptionPolicyAssignmentNonComplianceMessageArgs", "content");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy