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

com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs 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.hdinsight.inputs;

import com.pulumi.azurenative.hdinsight.inputs.RoleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes the compute profile.
 * 
 */
public final class ComputeProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final ComputeProfileArgs Empty = new ComputeProfileArgs();

    /**
     * The list of roles in the cluster.
     * 
     */
    @Import(name="roles")
    private @Nullable Output> roles;

    /**
     * @return The list of roles in the cluster.
     * 
     */
    public Optional>> roles() {
        return Optional.ofNullable(this.roles);
    }

    private ComputeProfileArgs() {}

    private ComputeProfileArgs(ComputeProfileArgs $) {
        this.roles = $.roles;
    }

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

    public static final class Builder {
        private ComputeProfileArgs $;

        public Builder() {
            $ = new ComputeProfileArgs();
        }

        public Builder(ComputeProfileArgs defaults) {
            $ = new ComputeProfileArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param roles The list of roles in the cluster.
         * 
         * @return builder
         * 
         */
        public Builder roles(@Nullable Output> roles) {
            $.roles = roles;
            return this;
        }

        /**
         * @param roles The list of roles in the cluster.
         * 
         * @return builder
         * 
         */
        public Builder roles(List roles) {
            return roles(Output.of(roles));
        }

        /**
         * @param roles The list of roles in the cluster.
         * 
         * @return builder
         * 
         */
        public Builder roles(RoleArgs... roles) {
            return roles(List.of(roles));
        }

        public ComputeProfileArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy