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

com.pulumi.azurenative.databoxedge.MECRoleArgs 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.azurenative.databoxedge.inputs.AsymmetricEncryptedSecretArgs;
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 MECRoleArgs extends com.pulumi.resources.ResourceArgs {

    public static final MECRoleArgs Empty = new MECRoleArgs();

    /**
     * Activation key of the MEC.
     * 
     */
    @Import(name="connectionString")
    private @Nullable Output connectionString;

    /**
     * @return Activation key of the MEC.
     * 
     */
    public Optional> connectionString() {
        return Optional.ofNullable(this.connectionString);
    }

    /**
     * Controller Endpoint.
     * 
     */
    @Import(name="controllerEndpoint")
    private @Nullable Output controllerEndpoint;

    /**
     * @return Controller Endpoint.
     * 
     */
    public Optional> controllerEndpoint() {
        return Optional.ofNullable(this.controllerEndpoint);
    }

    /**
     * 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 'MEC'.
     * 
     */
    @Import(name="kind", required=true)
    private Output kind;

    /**
     * @return Role type.
     * Expected value is 'MEC'.
     * 
     */
    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;
    }

    /**
     * Unique Id of the Resource.
     * 
     */
    @Import(name="resourceUniqueId")
    private @Nullable Output resourceUniqueId;

    /**
     * @return Unique Id of the Resource.
     * 
     */
    public Optional> resourceUniqueId() {
        return Optional.ofNullable(this.resourceUniqueId);
    }

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

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

    private MECRoleArgs() {}

    private MECRoleArgs(MECRoleArgs $) {
        this.connectionString = $.connectionString;
        this.controllerEndpoint = $.controllerEndpoint;
        this.deviceName = $.deviceName;
        this.kind = $.kind;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceUniqueId = $.resourceUniqueId;
        this.roleStatus = $.roleStatus;
    }

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

    public static final class Builder {
        private MECRoleArgs $;

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

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

        /**
         * @param connectionString Activation key of the MEC.
         * 
         * @return builder
         * 
         */
        public Builder connectionString(@Nullable Output connectionString) {
            $.connectionString = connectionString;
            return this;
        }

        /**
         * @param connectionString Activation key of the MEC.
         * 
         * @return builder
         * 
         */
        public Builder connectionString(AsymmetricEncryptedSecretArgs connectionString) {
            return connectionString(Output.of(connectionString));
        }

        /**
         * @param controllerEndpoint Controller Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder controllerEndpoint(@Nullable Output controllerEndpoint) {
            $.controllerEndpoint = controllerEndpoint;
            return this;
        }

        /**
         * @param controllerEndpoint Controller Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder controllerEndpoint(String controllerEndpoint) {
            return controllerEndpoint(Output.of(controllerEndpoint));
        }

        /**
         * @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 'MEC'.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Role type.
         * Expected value is 'MEC'.
         * 
         * @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 resourceUniqueId Unique Id of the Resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceUniqueId(@Nullable Output resourceUniqueId) {
            $.resourceUniqueId = resourceUniqueId;
            return this;
        }

        /**
         * @param resourceUniqueId Unique Id of the Resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceUniqueId(String resourceUniqueId) {
            return resourceUniqueId(Output.of(resourceUniqueId));
        }

        /**
         * @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 MECRoleArgs build() {
            if ($.deviceName == null) {
                throw new MissingRequiredPropertyException("MECRoleArgs", "deviceName");
            }
            $.kind = Codegen.stringProp("kind").output().arg($.kind).require();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MECRoleArgs", "resourceGroupName");
            }
            if ($.roleStatus == null) {
                throw new MissingRequiredPropertyException("MECRoleArgs", "roleStatus");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy