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

com.pulumi.azure.role.outputs.GetRoleDefinitionResult 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.role.outputs;

import com.pulumi.azure.role.outputs.GetRoleDefinitionPermission;
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 GetRoleDefinitionResult {
    /**
     * @return One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
     * 
     */
    private List assignableScopes;
    /**
     * @return The Description of the built-in Role.
     * 
     */
    private String description;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String name;
    /**
     * @return A `permissions` block as documented below.
     * 
     */
    private List permissions;
    private String roleDefinitionId;
    private @Nullable String scope;
    /**
     * @return The Type of the Role.
     * 
     */
    private String type;

    private GetRoleDefinitionResult() {}
    /**
     * @return One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
     * 
     */
    public List assignableScopes() {
        return this.assignableScopes;
    }
    /**
     * @return The Description of the built-in Role.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String name() {
        return this.name;
    }
    /**
     * @return A `permissions` block as documented below.
     * 
     */
    public List permissions() {
        return this.permissions;
    }
    public String roleDefinitionId() {
        return this.roleDefinitionId;
    }
    public Optional scope() {
        return Optional.ofNullable(this.scope);
    }
    /**
     * @return The Type of the Role.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetRoleDefinitionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List assignableScopes;
        private String description;
        private String id;
        private String name;
        private List permissions;
        private String roleDefinitionId;
        private @Nullable String scope;
        private String type;
        public Builder() {}
        public Builder(GetRoleDefinitionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.assignableScopes = defaults.assignableScopes;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.permissions = defaults.permissions;
    	      this.roleDefinitionId = defaults.roleDefinitionId;
    	      this.scope = defaults.scope;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder assignableScopes(List assignableScopes) {
            if (assignableScopes == null) {
              throw new MissingRequiredPropertyException("GetRoleDefinitionResult", "assignableScopes");
            }
            this.assignableScopes = assignableScopes;
            return this;
        }
        public Builder assignableScopes(String... assignableScopes) {
            return assignableScopes(List.of(assignableScopes));
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetRoleDefinitionResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetRoleDefinitionResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetRoleDefinitionResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder permissions(List permissions) {
            if (permissions == null) {
              throw new MissingRequiredPropertyException("GetRoleDefinitionResult", "permissions");
            }
            this.permissions = permissions;
            return this;
        }
        public Builder permissions(GetRoleDefinitionPermission... permissions) {
            return permissions(List.of(permissions));
        }
        @CustomType.Setter
        public Builder roleDefinitionId(String roleDefinitionId) {
            if (roleDefinitionId == null) {
              throw new MissingRequiredPropertyException("GetRoleDefinitionResult", "roleDefinitionId");
            }
            this.roleDefinitionId = roleDefinitionId;
            return this;
        }
        @CustomType.Setter
        public Builder scope(@Nullable String scope) {

            this.scope = scope;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetRoleDefinitionResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetRoleDefinitionResult build() {
            final var _resultValue = new GetRoleDefinitionResult();
            _resultValue.assignableScopes = assignableScopes;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.permissions = permissions;
            _resultValue.roleDefinitionId = roleDefinitionId;
            _resultValue.scope = scope;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy