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

com.pulumi.azurenative.digitaltwins.outputs.GetDigitalTwinResult 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.digitaltwins.outputs;

import com.pulumi.azurenative.digitaltwins.outputs.DigitalTwinsIdentityResponse;
import com.pulumi.azurenative.digitaltwins.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.digitaltwins.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetDigitalTwinResult {
    /**
     * @return Time when DigitalTwinsInstance was created.
     * 
     */
    private String createdTime;
    /**
     * @return Api endpoint to work with DigitalTwinsInstance.
     * 
     */
    private String hostName;
    /**
     * @return The resource identifier.
     * 
     */
    private String id;
    /**
     * @return The managed identity for the DigitalTwinsInstance.
     * 
     */
    private @Nullable DigitalTwinsIdentityResponse identity;
    /**
     * @return Time when DigitalTwinsInstance was updated.
     * 
     */
    private String lastUpdatedTime;
    /**
     * @return The resource location.
     * 
     */
    private String location;
    /**
     * @return The resource name.
     * 
     */
    private String name;
    /**
     * @return The private endpoint connections.
     * 
     */
    private @Nullable List privateEndpointConnections;
    /**
     * @return The provisioning state.
     * 
     */
    private String provisioningState;
    /**
     * @return Public network access for the DigitalTwinsInstance.
     * 
     */
    private @Nullable String publicNetworkAccess;
    /**
     * @return Metadata pertaining to creation and last modification of the DigitalTwinsInstance.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The resource type.
     * 
     */
    private String type;

    private GetDigitalTwinResult() {}
    /**
     * @return Time when DigitalTwinsInstance was created.
     * 
     */
    public String createdTime() {
        return this.createdTime;
    }
    /**
     * @return Api endpoint to work with DigitalTwinsInstance.
     * 
     */
    public String hostName() {
        return this.hostName;
    }
    /**
     * @return The resource identifier.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The managed identity for the DigitalTwinsInstance.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return Time when DigitalTwinsInstance was updated.
     * 
     */
    public String lastUpdatedTime() {
        return this.lastUpdatedTime;
    }
    /**
     * @return The resource location.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The private endpoint connections.
     * 
     */
    public List privateEndpointConnections() {
        return this.privateEndpointConnections == null ? List.of() : this.privateEndpointConnections;
    }
    /**
     * @return The provisioning state.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Public network access for the DigitalTwinsInstance.
     * 
     */
    public Optional publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }
    /**
     * @return Metadata pertaining to creation and last modification of the DigitalTwinsInstance.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetDigitalTwinResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String createdTime;
        private String hostName;
        private String id;
        private @Nullable DigitalTwinsIdentityResponse identity;
        private String lastUpdatedTime;
        private String location;
        private String name;
        private @Nullable List privateEndpointConnections;
        private String provisioningState;
        private @Nullable String publicNetworkAccess;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetDigitalTwinResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.createdTime = defaults.createdTime;
    	      this.hostName = defaults.hostName;
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.lastUpdatedTime = defaults.lastUpdatedTime;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.privateEndpointConnections = defaults.privateEndpointConnections;
    	      this.provisioningState = defaults.provisioningState;
    	      this.publicNetworkAccess = defaults.publicNetworkAccess;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder createdTime(String createdTime) {
            if (createdTime == null) {
              throw new MissingRequiredPropertyException("GetDigitalTwinResult", "createdTime");
            }
            this.createdTime = createdTime;
            return this;
        }
        @CustomType.Setter
        public Builder hostName(String hostName) {
            if (hostName == null) {
              throw new MissingRequiredPropertyException("GetDigitalTwinResult", "hostName");
            }
            this.hostName = hostName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetDigitalTwinResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable DigitalTwinsIdentityResponse identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder lastUpdatedTime(String lastUpdatedTime) {
            if (lastUpdatedTime == null) {
              throw new MissingRequiredPropertyException("GetDigitalTwinResult", "lastUpdatedTime");
            }
            this.lastUpdatedTime = lastUpdatedTime;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetDigitalTwinResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetDigitalTwinResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder privateEndpointConnections(@Nullable List privateEndpointConnections) {

            this.privateEndpointConnections = privateEndpointConnections;
            return this;
        }
        public Builder privateEndpointConnections(PrivateEndpointConnectionResponse... privateEndpointConnections) {
            return privateEndpointConnections(List.of(privateEndpointConnections));
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetDigitalTwinResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder publicNetworkAccess(@Nullable String publicNetworkAccess) {

            this.publicNetworkAccess = publicNetworkAccess;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetDigitalTwinResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetDigitalTwinResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetDigitalTwinResult build() {
            final var _resultValue = new GetDigitalTwinResult();
            _resultValue.createdTime = createdTime;
            _resultValue.hostName = hostName;
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.lastUpdatedTime = lastUpdatedTime;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.privateEndpointConnections = privateEndpointConnections;
            _resultValue.provisioningState = provisioningState;
            _resultValue.publicNetworkAccess = publicNetworkAccess;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy