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

com.pulumi.azure.cosmosdb.outputs.GetSqlRoleDefinitionResult 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.cosmosdb.outputs;

import com.pulumi.azure.cosmosdb.outputs.GetSqlRoleDefinitionPermission;
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 GetSqlRoleDefinitionResult {
    private String accountName;
    /**
     * @return A list of fully qualified scopes at or below which Role Assignments may be created using this Cosmos DB SQL Role Definition.
     * 
     */
    private List assignableScopes;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The role name of the Cosmos DB SQL Role Definition.
     * 
     */
    private String name;
    /**
     * @return A `permissions` block as defined below.
     * 
     */
    private List permissions;
    private String resourceGroupName;
    private String roleDefinitionId;
    /**
     * @return The type of the Cosmos DB SQL Role Definition.
     * 
     */
    private String type;

    private GetSqlRoleDefinitionResult() {}
    public String accountName() {
        return this.accountName;
    }
    /**
     * @return A list of fully qualified scopes at or below which Role Assignments may be created using this Cosmos DB SQL Role Definition.
     * 
     */
    public List assignableScopes() {
        return this.assignableScopes;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The role name of the Cosmos DB SQL Role Definition.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return A `permissions` block as defined below.
     * 
     */
    public List permissions() {
        return this.permissions;
    }
    public String resourceGroupName() {
        return this.resourceGroupName;
    }
    public String roleDefinitionId() {
        return this.roleDefinitionId;
    }
    /**
     * @return The type of the Cosmos DB SQL Role Definition.
     * 
     */
    public String type() {
        return this.type;
    }

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

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

        @CustomType.Setter
        public Builder accountName(String accountName) {
            if (accountName == null) {
              throw new MissingRequiredPropertyException("GetSqlRoleDefinitionResult", "accountName");
            }
            this.accountName = accountName;
            return this;
        }
        @CustomType.Setter
        public Builder assignableScopes(List assignableScopes) {
            if (assignableScopes == null) {
              throw new MissingRequiredPropertyException("GetSqlRoleDefinitionResult", "assignableScopes");
            }
            this.assignableScopes = assignableScopes;
            return this;
        }
        public Builder assignableScopes(String... assignableScopes) {
            return assignableScopes(List.of(assignableScopes));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSqlRoleDefinitionResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSqlRoleDefinitionResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder permissions(List permissions) {
            if (permissions == null) {
              throw new MissingRequiredPropertyException("GetSqlRoleDefinitionResult", "permissions");
            }
            this.permissions = permissions;
            return this;
        }
        public Builder permissions(GetSqlRoleDefinitionPermission... permissions) {
            return permissions(List.of(permissions));
        }
        @CustomType.Setter
        public Builder resourceGroupName(String resourceGroupName) {
            if (resourceGroupName == null) {
              throw new MissingRequiredPropertyException("GetSqlRoleDefinitionResult", "resourceGroupName");
            }
            this.resourceGroupName = resourceGroupName;
            return this;
        }
        @CustomType.Setter
        public Builder roleDefinitionId(String roleDefinitionId) {
            if (roleDefinitionId == null) {
              throw new MissingRequiredPropertyException("GetSqlRoleDefinitionResult", "roleDefinitionId");
            }
            this.roleDefinitionId = roleDefinitionId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetSqlRoleDefinitionResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetSqlRoleDefinitionResult build() {
            final var _resultValue = new GetSqlRoleDefinitionResult();
            _resultValue.accountName = accountName;
            _resultValue.assignableScopes = assignableScopes;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.permissions = permissions;
            _resultValue.resourceGroupName = resourceGroupName;
            _resultValue.roleDefinitionId = roleDefinitionId;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy