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

com.pulumi.azurenative.servicelinker.outputs.PermissionsMissingDryrunPrerequisiteResultResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.servicelinker.outputs;

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 PermissionsMissingDryrunPrerequisiteResultResponse {
    /**
     * @return The permission list
     * 
     */
    private @Nullable List permissions;
    /**
     * @return The recommended role to resolve permissions missing
     * 
     */
    private @Nullable String recommendedRole;
    /**
     * @return The permission scope
     * 
     */
    private @Nullable String scope;
    /**
     * @return The type of dryrun result.
     * Expected value is 'permissionsMissing'.
     * 
     */
    private String type;

    private PermissionsMissingDryrunPrerequisiteResultResponse() {}
    /**
     * @return The permission list
     * 
     */
    public List permissions() {
        return this.permissions == null ? List.of() : this.permissions;
    }
    /**
     * @return The recommended role to resolve permissions missing
     * 
     */
    public Optional recommendedRole() {
        return Optional.ofNullable(this.recommendedRole);
    }
    /**
     * @return The permission scope
     * 
     */
    public Optional scope() {
        return Optional.ofNullable(this.scope);
    }
    /**
     * @return The type of dryrun result.
     * Expected value is 'permissionsMissing'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(PermissionsMissingDryrunPrerequisiteResultResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List permissions;
        private @Nullable String recommendedRole;
        private @Nullable String scope;
        private String type;
        public Builder() {}
        public Builder(PermissionsMissingDryrunPrerequisiteResultResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.permissions = defaults.permissions;
    	      this.recommendedRole = defaults.recommendedRole;
    	      this.scope = defaults.scope;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder permissions(@Nullable List permissions) {

            this.permissions = permissions;
            return this;
        }
        public Builder permissions(String... permissions) {
            return permissions(List.of(permissions));
        }
        @CustomType.Setter
        public Builder recommendedRole(@Nullable String recommendedRole) {

            this.recommendedRole = recommendedRole;
            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("PermissionsMissingDryrunPrerequisiteResultResponse", "type");
            }
            this.type = type;
            return this;
        }
        public PermissionsMissingDryrunPrerequisiteResultResponse build() {
            final var _resultValue = new PermissionsMissingDryrunPrerequisiteResultResponse();
            _resultValue.permissions = permissions;
            _resultValue.recommendedRole = recommendedRole;
            _resultValue.scope = scope;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy