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

com.pulumi.aws.organizations.outputs.GetPolicyResult Maven / Gradle / Ivy

// *** 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.aws.organizations.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetPolicyResult {
    /**
     * @return The Amazon Resource Name of the policy.
     * 
     */
    private String arn;
    /**
     * @return Indicates if a policy is an AWS managed policy.
     * 
     */
    private Boolean awsManaged;
    /**
     * @return The text content of the policy.
     * 
     */
    private String content;
    /**
     * @return The description of the policy.
     * 
     */
    private String description;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The friendly name of the policy.
     * 
     */
    private String name;
    private String policyId;
    /**
     * @return The type of policy values can be `SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY`
     * 
     */
    private String type;

    private GetPolicyResult() {}
    /**
     * @return The Amazon Resource Name of the policy.
     * 
     */
    public String arn() {
        return this.arn;
    }
    /**
     * @return Indicates if a policy is an AWS managed policy.
     * 
     */
    public Boolean awsManaged() {
        return this.awsManaged;
    }
    /**
     * @return The text content of the policy.
     * 
     */
    public String content() {
        return this.content;
    }
    /**
     * @return The description of the policy.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The friendly name of the policy.
     * 
     */
    public String name() {
        return this.name;
    }
    public String policyId() {
        return this.policyId;
    }
    /**
     * @return The type of policy values can be `SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY`
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetPolicyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private Boolean awsManaged;
        private String content;
        private String description;
        private String id;
        private String name;
        private String policyId;
        private String type;
        public Builder() {}
        public Builder(GetPolicyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.awsManaged = defaults.awsManaged;
    	      this.content = defaults.content;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.policyId = defaults.policyId;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            if (arn == null) {
              throw new MissingRequiredPropertyException("GetPolicyResult", "arn");
            }
            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder awsManaged(Boolean awsManaged) {
            if (awsManaged == null) {
              throw new MissingRequiredPropertyException("GetPolicyResult", "awsManaged");
            }
            this.awsManaged = awsManaged;
            return this;
        }
        @CustomType.Setter
        public Builder content(String content) {
            if (content == null) {
              throw new MissingRequiredPropertyException("GetPolicyResult", "content");
            }
            this.content = content;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetPolicyResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetPolicyResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetPolicyResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder policyId(String policyId) {
            if (policyId == null) {
              throw new MissingRequiredPropertyException("GetPolicyResult", "policyId");
            }
            this.policyId = policyId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetPolicyResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetPolicyResult build() {
            final var _resultValue = new GetPolicyResult();
            _resultValue.arn = arn;
            _resultValue.awsManaged = awsManaged;
            _resultValue.content = content;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.policyId = policyId;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy