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

com.pulumi.azurenative.databoxedge.CloudEdgeManagementRoleArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.databoxedge;

import com.pulumi.azurenative.databoxedge.enums.RoleStatus;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class CloudEdgeManagementRoleArgs extends com.pulumi.resources.ResourceArgs {

    public static final CloudEdgeManagementRoleArgs Empty = new CloudEdgeManagementRoleArgs();

    /**
     * The device name.
     * 
     */
    @Import(name="deviceName", required=true)
    private Output deviceName;

    /**
     * @return The device name.
     * 
     */
    public Output deviceName() {
        return this.deviceName;
    }

    /**
     * Role type.
     * Expected value is 'CloudEdgeManagement'.
     * 
     */
    @Import(name="kind", required=true)
    private Output kind;

    /**
     * @return Role type.
     * Expected value is 'CloudEdgeManagement'.
     * 
     */
    public Output kind() {
        return this.kind;
    }

    /**
     * The role name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The role name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The resource group name.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Role status.
     * 
     */
    @Import(name="roleStatus", required=true)
    private Output> roleStatus;

    /**
     * @return Role status.
     * 
     */
    public Output> roleStatus() {
        return this.roleStatus;
    }

    private CloudEdgeManagementRoleArgs() {}

    private CloudEdgeManagementRoleArgs(CloudEdgeManagementRoleArgs $) {
        this.deviceName = $.deviceName;
        this.kind = $.kind;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.roleStatus = $.roleStatus;
    }

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

    public static final class Builder {
        private CloudEdgeManagementRoleArgs $;

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

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

        /**
         * @param deviceName The device name.
         * 
         * @return builder
         * 
         */
        public Builder deviceName(Output deviceName) {
            $.deviceName = deviceName;
            return this;
        }

        /**
         * @param deviceName The device name.
         * 
         * @return builder
         * 
         */
        public Builder deviceName(String deviceName) {
            return deviceName(Output.of(deviceName));
        }

        /**
         * @param kind Role type.
         * Expected value is 'CloudEdgeManagement'.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Role type.
         * Expected value is 'CloudEdgeManagement'.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param name The role name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The role name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param roleStatus Role status.
         * 
         * @return builder
         * 
         */
        public Builder roleStatus(Output> roleStatus) {
            $.roleStatus = roleStatus;
            return this;
        }

        /**
         * @param roleStatus Role status.
         * 
         * @return builder
         * 
         */
        public Builder roleStatus(Either roleStatus) {
            return roleStatus(Output.of(roleStatus));
        }

        /**
         * @param roleStatus Role status.
         * 
         * @return builder
         * 
         */
        public Builder roleStatus(String roleStatus) {
            return roleStatus(Either.ofLeft(roleStatus));
        }

        /**
         * @param roleStatus Role status.
         * 
         * @return builder
         * 
         */
        public Builder roleStatus(RoleStatus roleStatus) {
            return roleStatus(Either.ofRight(roleStatus));
        }

        public CloudEdgeManagementRoleArgs build() {
            if ($.deviceName == null) {
                throw new MissingRequiredPropertyException("CloudEdgeManagementRoleArgs", "deviceName");
            }
            $.kind = Codegen.stringProp("kind").output().arg($.kind).require();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CloudEdgeManagementRoleArgs", "resourceGroupName");
            }
            if ($.roleStatus == null) {
                throw new MissingRequiredPropertyException("CloudEdgeManagementRoleArgs", "roleStatus");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy