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

com.pulumi.azurenative.authorization.outputs.GetRoleAssignmentResult 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.azurenative.authorization.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetRoleAssignmentResult {
    /**
     * @return The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: {@literal @}Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
     * 
     */
    private @Nullable String condition;
    /**
     * @return Version of the condition. Currently the only accepted value is '2.0'
     * 
     */
    private @Nullable String conditionVersion;
    /**
     * @return Id of the user who created the assignment
     * 
     */
    private String createdBy;
    /**
     * @return Time it was created
     * 
     */
    private String createdOn;
    /**
     * @return Id of the delegated managed identity resource
     * 
     */
    private @Nullable String delegatedManagedIdentityResourceId;
    /**
     * @return Description of role assignment
     * 
     */
    private @Nullable String description;
    /**
     * @return The role assignment ID.
     * 
     */
    private String id;
    /**
     * @return The role assignment name.
     * 
     */
    private String name;
    /**
     * @return The principal ID.
     * 
     */
    private String principalId;
    /**
     * @return The principal type of the assigned principal ID.
     * 
     */
    private @Nullable String principalType;
    /**
     * @return The role definition ID.
     * 
     */
    private String roleDefinitionId;
    /**
     * @return The role assignment scope.
     * 
     */
    private String scope;
    /**
     * @return The role assignment type.
     * 
     */
    private String type;
    /**
     * @return Id of the user who updated the assignment
     * 
     */
    private String updatedBy;
    /**
     * @return Time it was updated
     * 
     */
    private String updatedOn;

    private GetRoleAssignmentResult() {}
    /**
     * @return The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: {@literal @}Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
     * 
     */
    public Optional condition() {
        return Optional.ofNullable(this.condition);
    }
    /**
     * @return Version of the condition. Currently the only accepted value is '2.0'
     * 
     */
    public Optional conditionVersion() {
        return Optional.ofNullable(this.conditionVersion);
    }
    /**
     * @return Id of the user who created the assignment
     * 
     */
    public String createdBy() {
        return this.createdBy;
    }
    /**
     * @return Time it was created
     * 
     */
    public String createdOn() {
        return this.createdOn;
    }
    /**
     * @return Id of the delegated managed identity resource
     * 
     */
    public Optional delegatedManagedIdentityResourceId() {
        return Optional.ofNullable(this.delegatedManagedIdentityResourceId);
    }
    /**
     * @return Description of role assignment
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The role assignment ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The role assignment name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The principal ID.
     * 
     */
    public String principalId() {
        return this.principalId;
    }
    /**
     * @return The principal type of the assigned principal ID.
     * 
     */
    public Optional principalType() {
        return Optional.ofNullable(this.principalType);
    }
    /**
     * @return The role definition ID.
     * 
     */
    public String roleDefinitionId() {
        return this.roleDefinitionId;
    }
    /**
     * @return The role assignment scope.
     * 
     */
    public String scope() {
        return this.scope;
    }
    /**
     * @return The role assignment type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Id of the user who updated the assignment
     * 
     */
    public String updatedBy() {
        return this.updatedBy;
    }
    /**
     * @return Time it was updated
     * 
     */
    public String updatedOn() {
        return this.updatedOn;
    }

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

    public static Builder builder(GetRoleAssignmentResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String condition;
        private @Nullable String conditionVersion;
        private String createdBy;
        private String createdOn;
        private @Nullable String delegatedManagedIdentityResourceId;
        private @Nullable String description;
        private String id;
        private String name;
        private String principalId;
        private @Nullable String principalType;
        private String roleDefinitionId;
        private String scope;
        private String type;
        private String updatedBy;
        private String updatedOn;
        public Builder() {}
        public Builder(GetRoleAssignmentResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.condition = defaults.condition;
    	      this.conditionVersion = defaults.conditionVersion;
    	      this.createdBy = defaults.createdBy;
    	      this.createdOn = defaults.createdOn;
    	      this.delegatedManagedIdentityResourceId = defaults.delegatedManagedIdentityResourceId;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.principalId = defaults.principalId;
    	      this.principalType = defaults.principalType;
    	      this.roleDefinitionId = defaults.roleDefinitionId;
    	      this.scope = defaults.scope;
    	      this.type = defaults.type;
    	      this.updatedBy = defaults.updatedBy;
    	      this.updatedOn = defaults.updatedOn;
        }

        @CustomType.Setter
        public Builder condition(@Nullable String condition) {

            this.condition = condition;
            return this;
        }
        @CustomType.Setter
        public Builder conditionVersion(@Nullable String conditionVersion) {

            this.conditionVersion = conditionVersion;
            return this;
        }
        @CustomType.Setter
        public Builder createdBy(String createdBy) {
            if (createdBy == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "createdBy");
            }
            this.createdBy = createdBy;
            return this;
        }
        @CustomType.Setter
        public Builder createdOn(String createdOn) {
            if (createdOn == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "createdOn");
            }
            this.createdOn = createdOn;
            return this;
        }
        @CustomType.Setter
        public Builder delegatedManagedIdentityResourceId(@Nullable String delegatedManagedIdentityResourceId) {

            this.delegatedManagedIdentityResourceId = delegatedManagedIdentityResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder principalId(String principalId) {
            if (principalId == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "principalId");
            }
            this.principalId = principalId;
            return this;
        }
        @CustomType.Setter
        public Builder principalType(@Nullable String principalType) {

            this.principalType = principalType;
            return this;
        }
        @CustomType.Setter
        public Builder roleDefinitionId(String roleDefinitionId) {
            if (roleDefinitionId == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "roleDefinitionId");
            }
            this.roleDefinitionId = roleDefinitionId;
            return this;
        }
        @CustomType.Setter
        public Builder scope(String scope) {
            if (scope == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "scope");
            }
            this.scope = scope;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder updatedBy(String updatedBy) {
            if (updatedBy == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "updatedBy");
            }
            this.updatedBy = updatedBy;
            return this;
        }
        @CustomType.Setter
        public Builder updatedOn(String updatedOn) {
            if (updatedOn == null) {
              throw new MissingRequiredPropertyException("GetRoleAssignmentResult", "updatedOn");
            }
            this.updatedOn = updatedOn;
            return this;
        }
        public GetRoleAssignmentResult build() {
            final var _resultValue = new GetRoleAssignmentResult();
            _resultValue.condition = condition;
            _resultValue.conditionVersion = conditionVersion;
            _resultValue.createdBy = createdBy;
            _resultValue.createdOn = createdOn;
            _resultValue.delegatedManagedIdentityResourceId = delegatedManagedIdentityResourceId;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.principalId = principalId;
            _resultValue.principalType = principalType;
            _resultValue.roleDefinitionId = roleDefinitionId;
            _resultValue.scope = scope;
            _resultValue.type = type;
            _resultValue.updatedBy = updatedBy;
            _resultValue.updatedOn = updatedOn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy