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

com.pulumi.azurenative.databoxedge.IoTRoleArgs 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.PlatformType;
import com.pulumi.azurenative.databoxedge.enums.RoleStatus;
import com.pulumi.azurenative.databoxedge.inputs.ComputeResourceArgs;
import com.pulumi.azurenative.databoxedge.inputs.IoTDeviceInfoArgs;
import com.pulumi.azurenative.databoxedge.inputs.IoTEdgeAgentInfoArgs;
import com.pulumi.azurenative.databoxedge.inputs.MountPointMapArgs;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final IoTRoleArgs Empty = new IoTRoleArgs();

    /**
     * Resource allocation
     * 
     */
    @Import(name="computeResource")
    private @Nullable Output computeResource;

    /**
     * @return Resource allocation
     * 
     */
    public Optional> computeResource() {
        return Optional.ofNullable(this.computeResource);
    }

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

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

    /**
     * Host OS supported by the IoT role.
     * 
     */
    @Import(name="hostPlatform", required=true)
    private Output> hostPlatform;

    /**
     * @return Host OS supported by the IoT role.
     * 
     */
    public Output> hostPlatform() {
        return this.hostPlatform;
    }

    /**
     * IoT device metadata to which data box edge device needs to be connected.
     * 
     */
    @Import(name="ioTDeviceDetails", required=true)
    private Output ioTDeviceDetails;

    /**
     * @return IoT device metadata to which data box edge device needs to be connected.
     * 
     */
    public Output ioTDeviceDetails() {
        return this.ioTDeviceDetails;
    }

    /**
     * Iot edge agent details to download the agent and bootstrap iot runtime.
     * 
     */
    @Import(name="ioTEdgeAgentInfo")
    private @Nullable Output ioTEdgeAgentInfo;

    /**
     * @return Iot edge agent details to download the agent and bootstrap iot runtime.
     * 
     */
    public Optional> ioTEdgeAgentInfo() {
        return Optional.ofNullable(this.ioTEdgeAgentInfo);
    }

    /**
     * IoT edge device to which the IoT role needs to be configured.
     * 
     */
    @Import(name="ioTEdgeDeviceDetails", required=true)
    private Output ioTEdgeDeviceDetails;

    /**
     * @return IoT edge device to which the IoT role needs to be configured.
     * 
     */
    public Output ioTEdgeDeviceDetails() {
        return this.ioTEdgeDeviceDetails;
    }

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

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

    /**
     * Mount points of shares in role(s).
     * 
     */
    @Import(name="shareMappings")
    private @Nullable Output> shareMappings;

    /**
     * @return Mount points of shares in role(s).
     * 
     */
    public Optional>> shareMappings() {
        return Optional.ofNullable(this.shareMappings);
    }

    private IoTRoleArgs() {}

    private IoTRoleArgs(IoTRoleArgs $) {
        this.computeResource = $.computeResource;
        this.deviceName = $.deviceName;
        this.hostPlatform = $.hostPlatform;
        this.ioTDeviceDetails = $.ioTDeviceDetails;
        this.ioTEdgeAgentInfo = $.ioTEdgeAgentInfo;
        this.ioTEdgeDeviceDetails = $.ioTEdgeDeviceDetails;
        this.kind = $.kind;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.roleStatus = $.roleStatus;
        this.shareMappings = $.shareMappings;
    }

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

    public static final class Builder {
        private IoTRoleArgs $;

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

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

        /**
         * @param computeResource Resource allocation
         * 
         * @return builder
         * 
         */
        public Builder computeResource(@Nullable Output computeResource) {
            $.computeResource = computeResource;
            return this;
        }

        /**
         * @param computeResource Resource allocation
         * 
         * @return builder
         * 
         */
        public Builder computeResource(ComputeResourceArgs computeResource) {
            return computeResource(Output.of(computeResource));
        }

        /**
         * @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 hostPlatform Host OS supported by the IoT role.
         * 
         * @return builder
         * 
         */
        public Builder hostPlatform(Output> hostPlatform) {
            $.hostPlatform = hostPlatform;
            return this;
        }

        /**
         * @param hostPlatform Host OS supported by the IoT role.
         * 
         * @return builder
         * 
         */
        public Builder hostPlatform(Either hostPlatform) {
            return hostPlatform(Output.of(hostPlatform));
        }

        /**
         * @param hostPlatform Host OS supported by the IoT role.
         * 
         * @return builder
         * 
         */
        public Builder hostPlatform(String hostPlatform) {
            return hostPlatform(Either.ofLeft(hostPlatform));
        }

        /**
         * @param hostPlatform Host OS supported by the IoT role.
         * 
         * @return builder
         * 
         */
        public Builder hostPlatform(PlatformType hostPlatform) {
            return hostPlatform(Either.ofRight(hostPlatform));
        }

        /**
         * @param ioTDeviceDetails IoT device metadata to which data box edge device needs to be connected.
         * 
         * @return builder
         * 
         */
        public Builder ioTDeviceDetails(Output ioTDeviceDetails) {
            $.ioTDeviceDetails = ioTDeviceDetails;
            return this;
        }

        /**
         * @param ioTDeviceDetails IoT device metadata to which data box edge device needs to be connected.
         * 
         * @return builder
         * 
         */
        public Builder ioTDeviceDetails(IoTDeviceInfoArgs ioTDeviceDetails) {
            return ioTDeviceDetails(Output.of(ioTDeviceDetails));
        }

        /**
         * @param ioTEdgeAgentInfo Iot edge agent details to download the agent and bootstrap iot runtime.
         * 
         * @return builder
         * 
         */
        public Builder ioTEdgeAgentInfo(@Nullable Output ioTEdgeAgentInfo) {
            $.ioTEdgeAgentInfo = ioTEdgeAgentInfo;
            return this;
        }

        /**
         * @param ioTEdgeAgentInfo Iot edge agent details to download the agent and bootstrap iot runtime.
         * 
         * @return builder
         * 
         */
        public Builder ioTEdgeAgentInfo(IoTEdgeAgentInfoArgs ioTEdgeAgentInfo) {
            return ioTEdgeAgentInfo(Output.of(ioTEdgeAgentInfo));
        }

        /**
         * @param ioTEdgeDeviceDetails IoT edge device to which the IoT role needs to be configured.
         * 
         * @return builder
         * 
         */
        public Builder ioTEdgeDeviceDetails(Output ioTEdgeDeviceDetails) {
            $.ioTEdgeDeviceDetails = ioTEdgeDeviceDetails;
            return this;
        }

        /**
         * @param ioTEdgeDeviceDetails IoT edge device to which the IoT role needs to be configured.
         * 
         * @return builder
         * 
         */
        public Builder ioTEdgeDeviceDetails(IoTDeviceInfoArgs ioTEdgeDeviceDetails) {
            return ioTEdgeDeviceDetails(Output.of(ioTEdgeDeviceDetails));
        }

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

        /**
         * @param kind Role type.
         * Expected value is 'IOT'.
         * 
         * @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));
        }

        /**
         * @param shareMappings Mount points of shares in role(s).
         * 
         * @return builder
         * 
         */
        public Builder shareMappings(@Nullable Output> shareMappings) {
            $.shareMappings = shareMappings;
            return this;
        }

        /**
         * @param shareMappings Mount points of shares in role(s).
         * 
         * @return builder
         * 
         */
        public Builder shareMappings(List shareMappings) {
            return shareMappings(Output.of(shareMappings));
        }

        /**
         * @param shareMappings Mount points of shares in role(s).
         * 
         * @return builder
         * 
         */
        public Builder shareMappings(MountPointMapArgs... shareMappings) {
            return shareMappings(List.of(shareMappings));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy