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

com.pulumi.azurenative.compute.inputs.CloudServiceRoleProfileArgs 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.compute.inputs;

import com.pulumi.azurenative.compute.inputs.CloudServiceRoleProfilePropertiesArgs;
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 role profile for the cloud service.
 * 
 */
public final class CloudServiceRoleProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final CloudServiceRoleProfileArgs Empty = new CloudServiceRoleProfileArgs();

    /**
     * List of roles for the cloud service.
     * 
     */
    @Import(name="roles")
    private @Nullable Output> roles;

    /**
     * @return List of roles for the cloud service.
     * 
     */
    public Optional>> roles() {
        return Optional.ofNullable(this.roles);
    }

    private CloudServiceRoleProfileArgs() {}

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

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

    public static final class Builder {
        private CloudServiceRoleProfileArgs $;

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

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

        /**
         * @param roles List of roles for the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder roles(@Nullable Output> roles) {
            $.roles = roles;
            return this;
        }

        /**
         * @param roles List of roles for the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder roles(List roles) {
            return roles(Output.of(roles));
        }

        /**
         * @param roles List of roles for the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder roles(CloudServiceRoleProfilePropertiesArgs... roles) {
            return roles(List.of(roles));
        }

        public CloudServiceRoleProfileArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy