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

com.pulumi.azure.policy.outputs.GetPolicySetDefinitionResult 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.policy.outputs;

import com.pulumi.azure.policy.outputs.GetPolicySetDefinitionPolicyDefinitionGroup;
import com.pulumi.azure.policy.outputs.GetPolicySetDefinitionPolicyDefinitionReference;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetPolicySetDefinitionResult {
    /**
     * @return The description of this policy definition group.
     * 
     */
    private String description;
    /**
     * @return The display name of this policy definition group.
     * 
     */
    private String displayName;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private @Nullable String managementGroupName;
    /**
     * @return Any Metadata defined in the Policy Set Definition.
     * 
     */
    private String metadata;
    /**
     * @return The name of this policy definition group.
     * 
     */
    private String name;
    /**
     * @return The mapping of the parameter values for the referenced policy rule. The keys are the parameter names.
     * 
     */
    private String parameters;
    /**
     * @return One or more `policy_definition_group` blocks as defined below.
     * 
     */
    private List policyDefinitionGroups;
    /**
     * @return One or more `policy_definition_reference` blocks as defined below.
     * 
     */
    private List policyDefinitionReferences;
    /**
     * @return The policy definitions contained within the policy set definition.
     * 
     */
    private String policyDefinitions;
    /**
     * @return The Type of the Policy Set Definition.
     * 
     */
    private String policyType;

    private GetPolicySetDefinitionResult() {}
    /**
     * @return The description of this policy definition group.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The display name of this policy definition group.
     * 
     */
    public String displayName() {
        return this.displayName;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Optional managementGroupName() {
        return Optional.ofNullable(this.managementGroupName);
    }
    /**
     * @return Any Metadata defined in the Policy Set Definition.
     * 
     */
    public String metadata() {
        return this.metadata;
    }
    /**
     * @return The name of this policy definition group.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The mapping of the parameter values for the referenced policy rule. The keys are the parameter names.
     * 
     */
    public String parameters() {
        return this.parameters;
    }
    /**
     * @return One or more `policy_definition_group` blocks as defined below.
     * 
     */
    public List policyDefinitionGroups() {
        return this.policyDefinitionGroups;
    }
    /**
     * @return One or more `policy_definition_reference` blocks as defined below.
     * 
     */
    public List policyDefinitionReferences() {
        return this.policyDefinitionReferences;
    }
    /**
     * @return The policy definitions contained within the policy set definition.
     * 
     */
    public String policyDefinitions() {
        return this.policyDefinitions;
    }
    /**
     * @return The Type of the Policy Set Definition.
     * 
     */
    public String policyType() {
        return this.policyType;
    }

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

    public static Builder builder(GetPolicySetDefinitionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String description;
        private String displayName;
        private String id;
        private @Nullable String managementGroupName;
        private String metadata;
        private String name;
        private String parameters;
        private List policyDefinitionGroups;
        private List policyDefinitionReferences;
        private String policyDefinitions;
        private String policyType;
        public Builder() {}
        public Builder(GetPolicySetDefinitionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.displayName = defaults.displayName;
    	      this.id = defaults.id;
    	      this.managementGroupName = defaults.managementGroupName;
    	      this.metadata = defaults.metadata;
    	      this.name = defaults.name;
    	      this.parameters = defaults.parameters;
    	      this.policyDefinitionGroups = defaults.policyDefinitionGroups;
    	      this.policyDefinitionReferences = defaults.policyDefinitionReferences;
    	      this.policyDefinitions = defaults.policyDefinitions;
    	      this.policyType = defaults.policyType;
        }

        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(String displayName) {
            if (displayName == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "displayName");
            }
            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder managementGroupName(@Nullable String managementGroupName) {

            this.managementGroupName = managementGroupName;
            return this;
        }
        @CustomType.Setter
        public Builder metadata(String metadata) {
            if (metadata == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "metadata");
            }
            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(String parameters) {
            if (parameters == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "parameters");
            }
            this.parameters = parameters;
            return this;
        }
        @CustomType.Setter
        public Builder policyDefinitionGroups(List policyDefinitionGroups) {
            if (policyDefinitionGroups == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "policyDefinitionGroups");
            }
            this.policyDefinitionGroups = policyDefinitionGroups;
            return this;
        }
        public Builder policyDefinitionGroups(GetPolicySetDefinitionPolicyDefinitionGroup... policyDefinitionGroups) {
            return policyDefinitionGroups(List.of(policyDefinitionGroups));
        }
        @CustomType.Setter
        public Builder policyDefinitionReferences(List policyDefinitionReferences) {
            if (policyDefinitionReferences == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "policyDefinitionReferences");
            }
            this.policyDefinitionReferences = policyDefinitionReferences;
            return this;
        }
        public Builder policyDefinitionReferences(GetPolicySetDefinitionPolicyDefinitionReference... policyDefinitionReferences) {
            return policyDefinitionReferences(List.of(policyDefinitionReferences));
        }
        @CustomType.Setter
        public Builder policyDefinitions(String policyDefinitions) {
            if (policyDefinitions == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "policyDefinitions");
            }
            this.policyDefinitions = policyDefinitions;
            return this;
        }
        @CustomType.Setter
        public Builder policyType(String policyType) {
            if (policyType == null) {
              throw new MissingRequiredPropertyException("GetPolicySetDefinitionResult", "policyType");
            }
            this.policyType = policyType;
            return this;
        }
        public GetPolicySetDefinitionResult build() {
            final var _resultValue = new GetPolicySetDefinitionResult();
            _resultValue.description = description;
            _resultValue.displayName = displayName;
            _resultValue.id = id;
            _resultValue.managementGroupName = managementGroupName;
            _resultValue.metadata = metadata;
            _resultValue.name = name;
            _resultValue.parameters = parameters;
            _resultValue.policyDefinitionGroups = policyDefinitionGroups;
            _resultValue.policyDefinitionReferences = policyDefinitionReferences;
            _resultValue.policyDefinitions = policyDefinitions;
            _resultValue.policyType = policyType;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy