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

com.pulumi.alicloud.ram.outputs.GetRolesRole 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.Objects;

@CustomType
public final class GetRolesRole {
    /**
     * @return Resource descriptor of the role.
     * 
     */
    private String arn;
    /**
     * @return Authorization strategy of the role. This parameter is deprecated and replaced by `document`.
     * 
     */
    private String assumeRolePolicyDocument;
    /**
     * @return Creation date of the role.
     * 
     */
    private String createDate;
    /**
     * @return Description of the role.
     * 
     */
    private String description;
    /**
     * @return Authorization strategy of the role.
     * 
     */
    private String document;
    /**
     * @return ID of the role.
     * 
     */
    private String id;
    /**
     * @return Name of the role.
     * 
     */
    private String name;
    /**
     * @return Update date of the role.
     * 
     */
    private String updateDate;

    private GetRolesRole() {}
    /**
     * @return Resource descriptor of the role.
     * 
     */
    public String arn() {
        return this.arn;
    }
    /**
     * @return Authorization strategy of the role. This parameter is deprecated and replaced by `document`.
     * 
     */
    public String assumeRolePolicyDocument() {
        return this.assumeRolePolicyDocument;
    }
    /**
     * @return Creation date of the role.
     * 
     */
    public String createDate() {
        return this.createDate;
    }
    /**
     * @return Description of the role.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return Authorization strategy of the role.
     * 
     */
    public String document() {
        return this.document;
    }
    /**
     * @return ID of the role.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Name of the role.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Update date of the role.
     * 
     */
    public String updateDate() {
        return this.updateDate;
    }

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

    public static Builder builder(GetRolesRole defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private String assumeRolePolicyDocument;
        private String createDate;
        private String description;
        private String document;
        private String id;
        private String name;
        private String updateDate;
        public Builder() {}
        public Builder(GetRolesRole defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.assumeRolePolicyDocument = defaults.assumeRolePolicyDocument;
    	      this.createDate = defaults.createDate;
    	      this.description = defaults.description;
    	      this.document = defaults.document;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.updateDate = defaults.updateDate;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            if (arn == null) {
              throw new MissingRequiredPropertyException("GetRolesRole", "arn");
            }
            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder assumeRolePolicyDocument(String assumeRolePolicyDocument) {
            if (assumeRolePolicyDocument == null) {
              throw new MissingRequiredPropertyException("GetRolesRole", "assumeRolePolicyDocument");
            }
            this.assumeRolePolicyDocument = assumeRolePolicyDocument;
            return this;
        }
        @CustomType.Setter
        public Builder createDate(String createDate) {
            if (createDate == null) {
              throw new MissingRequiredPropertyException("GetRolesRole", "createDate");
            }
            this.createDate = createDate;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetRolesRole", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder document(String document) {
            if (document == null) {
              throw new MissingRequiredPropertyException("GetRolesRole", "document");
            }
            this.document = document;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetRolesRole", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetRolesRole", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder updateDate(String updateDate) {
            if (updateDate == null) {
              throw new MissingRequiredPropertyException("GetRolesRole", "updateDate");
            }
            this.updateDate = updateDate;
            return this;
        }
        public GetRolesRole build() {
            final var _resultValue = new GetRolesRole();
            _resultValue.arn = arn;
            _resultValue.assumeRolePolicyDocument = assumeRolePolicyDocument;
            _resultValue.createDate = createDate;
            _resultValue.description = description;
            _resultValue.document = document;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.updateDate = updateDate;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy