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

com.pulumi.azurenative.databoxedge.outputs.GetIoTRoleResult Maven / Gradle / Ivy

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

import com.pulumi.azurenative.databoxedge.outputs.ComputeResourceResponse;
import com.pulumi.azurenative.databoxedge.outputs.IoTDeviceInfoResponse;
import com.pulumi.azurenative.databoxedge.outputs.IoTEdgeAgentInfoResponse;
import com.pulumi.azurenative.databoxedge.outputs.MountPointMapResponse;
import com.pulumi.azurenative.databoxedge.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetIoTRoleResult {
    /**
     * @return Resource allocation
     * 
     */
    private @Nullable ComputeResourceResponse computeResource;
    /**
     * @return Host OS supported by the IoT role.
     * 
     */
    private String hostPlatform;
    /**
     * @return Platform where the Iot runtime is hosted.
     * 
     */
    private String hostPlatformType;
    /**
     * @return The path ID that uniquely identifies the object.
     * 
     */
    private String id;
    /**
     * @return IoT device metadata to which data box edge device needs to be connected.
     * 
     */
    private IoTDeviceInfoResponse ioTDeviceDetails;
    /**
     * @return Iot edge agent details to download the agent and bootstrap iot runtime.
     * 
     */
    private @Nullable IoTEdgeAgentInfoResponse ioTEdgeAgentInfo;
    /**
     * @return IoT edge device to which the IoT role needs to be configured.
     * 
     */
    private IoTDeviceInfoResponse ioTEdgeDeviceDetails;
    /**
     * @return Role type.
     * Expected value is 'IOT'.
     * 
     */
    private String kind;
    /**
     * @return The object name.
     * 
     */
    private String name;
    /**
     * @return Role status.
     * 
     */
    private String roleStatus;
    /**
     * @return Mount points of shares in role(s).
     * 
     */
    private @Nullable List shareMappings;
    /**
     * @return Metadata pertaining to creation and last modification of Role
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The hierarchical type of the object.
     * 
     */
    private String type;

    private GetIoTRoleResult() {}
    /**
     * @return Resource allocation
     * 
     */
    public Optional computeResource() {
        return Optional.ofNullable(this.computeResource);
    }
    /**
     * @return Host OS supported by the IoT role.
     * 
     */
    public String hostPlatform() {
        return this.hostPlatform;
    }
    /**
     * @return Platform where the Iot runtime is hosted.
     * 
     */
    public String hostPlatformType() {
        return this.hostPlatformType;
    }
    /**
     * @return The path ID that uniquely identifies the object.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return IoT device metadata to which data box edge device needs to be connected.
     * 
     */
    public IoTDeviceInfoResponse ioTDeviceDetails() {
        return this.ioTDeviceDetails;
    }
    /**
     * @return Iot edge agent details to download the agent and bootstrap iot runtime.
     * 
     */
    public Optional ioTEdgeAgentInfo() {
        return Optional.ofNullable(this.ioTEdgeAgentInfo);
    }
    /**
     * @return IoT edge device to which the IoT role needs to be configured.
     * 
     */
    public IoTDeviceInfoResponse ioTEdgeDeviceDetails() {
        return this.ioTEdgeDeviceDetails;
    }
    /**
     * @return Role type.
     * Expected value is 'IOT'.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return The object name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Role status.
     * 
     */
    public String roleStatus() {
        return this.roleStatus;
    }
    /**
     * @return Mount points of shares in role(s).
     * 
     */
    public List shareMappings() {
        return this.shareMappings == null ? List.of() : this.shareMappings;
    }
    /**
     * @return Metadata pertaining to creation and last modification of Role
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The hierarchical type of the object.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetIoTRoleResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ComputeResourceResponse computeResource;
        private String hostPlatform;
        private String hostPlatformType;
        private String id;
        private IoTDeviceInfoResponse ioTDeviceDetails;
        private @Nullable IoTEdgeAgentInfoResponse ioTEdgeAgentInfo;
        private IoTDeviceInfoResponse ioTEdgeDeviceDetails;
        private String kind;
        private String name;
        private String roleStatus;
        private @Nullable List shareMappings;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetIoTRoleResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.computeResource = defaults.computeResource;
    	      this.hostPlatform = defaults.hostPlatform;
    	      this.hostPlatformType = defaults.hostPlatformType;
    	      this.id = defaults.id;
    	      this.ioTDeviceDetails = defaults.ioTDeviceDetails;
    	      this.ioTEdgeAgentInfo = defaults.ioTEdgeAgentInfo;
    	      this.ioTEdgeDeviceDetails = defaults.ioTEdgeDeviceDetails;
    	      this.kind = defaults.kind;
    	      this.name = defaults.name;
    	      this.roleStatus = defaults.roleStatus;
    	      this.shareMappings = defaults.shareMappings;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder computeResource(@Nullable ComputeResourceResponse computeResource) {

            this.computeResource = computeResource;
            return this;
        }
        @CustomType.Setter
        public Builder hostPlatform(String hostPlatform) {
            if (hostPlatform == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "hostPlatform");
            }
            this.hostPlatform = hostPlatform;
            return this;
        }
        @CustomType.Setter
        public Builder hostPlatformType(String hostPlatformType) {
            if (hostPlatformType == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "hostPlatformType");
            }
            this.hostPlatformType = hostPlatformType;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder ioTDeviceDetails(IoTDeviceInfoResponse ioTDeviceDetails) {
            if (ioTDeviceDetails == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "ioTDeviceDetails");
            }
            this.ioTDeviceDetails = ioTDeviceDetails;
            return this;
        }
        @CustomType.Setter
        public Builder ioTEdgeAgentInfo(@Nullable IoTEdgeAgentInfoResponse ioTEdgeAgentInfo) {

            this.ioTEdgeAgentInfo = ioTEdgeAgentInfo;
            return this;
        }
        @CustomType.Setter
        public Builder ioTEdgeDeviceDetails(IoTDeviceInfoResponse ioTEdgeDeviceDetails) {
            if (ioTEdgeDeviceDetails == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "ioTEdgeDeviceDetails");
            }
            this.ioTEdgeDeviceDetails = ioTEdgeDeviceDetails;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder roleStatus(String roleStatus) {
            if (roleStatus == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "roleStatus");
            }
            this.roleStatus = roleStatus;
            return this;
        }
        @CustomType.Setter
        public Builder shareMappings(@Nullable List shareMappings) {

            this.shareMappings = shareMappings;
            return this;
        }
        public Builder shareMappings(MountPointMapResponse... shareMappings) {
            return shareMappings(List.of(shareMappings));
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetIoTRoleResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetIoTRoleResult build() {
            final var _resultValue = new GetIoTRoleResult();
            _resultValue.computeResource = computeResource;
            _resultValue.hostPlatform = hostPlatform;
            _resultValue.hostPlatformType = hostPlatformType;
            _resultValue.id = id;
            _resultValue.ioTDeviceDetails = ioTDeviceDetails;
            _resultValue.ioTEdgeAgentInfo = ioTEdgeAgentInfo;
            _resultValue.ioTEdgeDeviceDetails = ioTEdgeDeviceDetails;
            _resultValue.kind = kind;
            _resultValue.name = name;
            _resultValue.roleStatus = roleStatus;
            _resultValue.shareMappings = shareMappings;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy