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

com.pulumi.alicloud.ram.outputs.GetPolicyDocumentStatementPrincipal Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.ram.outputs;

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

@CustomType
public final class GetPolicyDocumentStatementPrincipal {
    /**
     * @return The trusted entity. Valid values: `RAM`, `Service` and `Federated`.
     * 
     */
    private String entity;
    /**
     * @return The identifiers of the principal.
     * 
     */
    private List identifiers;

    private GetPolicyDocumentStatementPrincipal() {}
    /**
     * @return The trusted entity. Valid values: `RAM`, `Service` and `Federated`.
     * 
     */
    public String entity() {
        return this.entity;
    }
    /**
     * @return The identifiers of the principal.
     * 
     */
    public List identifiers() {
        return this.identifiers;
    }

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

    public static Builder builder(GetPolicyDocumentStatementPrincipal defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String entity;
        private List identifiers;
        public Builder() {}
        public Builder(GetPolicyDocumentStatementPrincipal defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.entity = defaults.entity;
    	      this.identifiers = defaults.identifiers;
        }

        @CustomType.Setter
        public Builder entity(String entity) {
            if (entity == null) {
              throw new MissingRequiredPropertyException("GetPolicyDocumentStatementPrincipal", "entity");
            }
            this.entity = entity;
            return this;
        }
        @CustomType.Setter
        public Builder identifiers(List identifiers) {
            if (identifiers == null) {
              throw new MissingRequiredPropertyException("GetPolicyDocumentStatementPrincipal", "identifiers");
            }
            this.identifiers = identifiers;
            return this;
        }
        public Builder identifiers(String... identifiers) {
            return identifiers(List.of(identifiers));
        }
        public GetPolicyDocumentStatementPrincipal build() {
            final var _resultValue = new GetPolicyDocumentStatementPrincipal();
            _resultValue.entity = entity;
            _resultValue.identifiers = identifiers;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy