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

com.pulumi.azurenative.labservices.outputs.GetLabResult 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.labservices.outputs;

import com.pulumi.azurenative.labservices.outputs.AutoShutdownProfileResponse;
import com.pulumi.azurenative.labservices.outputs.ConnectionProfileResponse;
import com.pulumi.azurenative.labservices.outputs.LabNetworkProfileResponse;
import com.pulumi.azurenative.labservices.outputs.RosterProfileResponse;
import com.pulumi.azurenative.labservices.outputs.SecurityProfileResponse;
import com.pulumi.azurenative.labservices.outputs.SystemDataResponse;
import com.pulumi.azurenative.labservices.outputs.VirtualMachineProfileResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetLabResult {
    /**
     * @return The resource auto shutdown configuration for the lab. This controls whether actions are taken on resources that are sitting idle.
     * 
     */
    private AutoShutdownProfileResponse autoShutdownProfile;
    /**
     * @return The connection profile for the lab. This controls settings such as web access to lab resources or whether RDP or SSH ports are open.
     * 
     */
    private ConnectionProfileResponse connectionProfile;
    /**
     * @return The description of the lab.
     * 
     */
    private @Nullable String description;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The ID of the lab plan. Used during resource creation to provide defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab provides organization..
     * 
     */
    private @Nullable String labPlanId;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The network profile for the lab, typically applied via a lab plan. This profile cannot be modified once a lab has been created.
     * 
     */
    private @Nullable LabNetworkProfileResponse networkProfile;
    /**
     * @return Current provisioning state of the lab.
     * 
     */
    private String provisioningState;
    /**
     * @return The lab user list management profile.
     * 
     */
    private @Nullable RosterProfileResponse rosterProfile;
    /**
     * @return The lab security profile.
     * 
     */
    private SecurityProfileResponse securityProfile;
    /**
     * @return The lab state.
     * 
     */
    private String state;
    /**
     * @return Metadata pertaining to creation and last modification of the lab.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The title of the lab.
     * 
     */
    private @Nullable String title;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return The profile used for creating lab virtual machines.
     * 
     */
    private VirtualMachineProfileResponse virtualMachineProfile;

    private GetLabResult() {}
    /**
     * @return The resource auto shutdown configuration for the lab. This controls whether actions are taken on resources that are sitting idle.
     * 
     */
    public AutoShutdownProfileResponse autoShutdownProfile() {
        return this.autoShutdownProfile;
    }
    /**
     * @return The connection profile for the lab. This controls settings such as web access to lab resources or whether RDP or SSH ports are open.
     * 
     */
    public ConnectionProfileResponse connectionProfile() {
        return this.connectionProfile;
    }
    /**
     * @return The description of the lab.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The ID of the lab plan. Used during resource creation to provide defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab provides organization..
     * 
     */
    public Optional labPlanId() {
        return Optional.ofNullable(this.labPlanId);
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The network profile for the lab, typically applied via a lab plan. This profile cannot be modified once a lab has been created.
     * 
     */
    public Optional networkProfile() {
        return Optional.ofNullable(this.networkProfile);
    }
    /**
     * @return Current provisioning state of the lab.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The lab user list management profile.
     * 
     */
    public Optional rosterProfile() {
        return Optional.ofNullable(this.rosterProfile);
    }
    /**
     * @return The lab security profile.
     * 
     */
    public SecurityProfileResponse securityProfile() {
        return this.securityProfile;
    }
    /**
     * @return The lab state.
     * 
     */
    public String state() {
        return this.state;
    }
    /**
     * @return Metadata pertaining to creation and last modification of the lab.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The title of the lab.
     * 
     */
    public Optional title() {
        return Optional.ofNullable(this.title);
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The profile used for creating lab virtual machines.
     * 
     */
    public VirtualMachineProfileResponse virtualMachineProfile() {
        return this.virtualMachineProfile;
    }

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

    public static Builder builder(GetLabResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private AutoShutdownProfileResponse autoShutdownProfile;
        private ConnectionProfileResponse connectionProfile;
        private @Nullable String description;
        private String id;
        private @Nullable String labPlanId;
        private String location;
        private String name;
        private @Nullable LabNetworkProfileResponse networkProfile;
        private String provisioningState;
        private @Nullable RosterProfileResponse rosterProfile;
        private SecurityProfileResponse securityProfile;
        private String state;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private @Nullable String title;
        private String type;
        private VirtualMachineProfileResponse virtualMachineProfile;
        public Builder() {}
        public Builder(GetLabResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.autoShutdownProfile = defaults.autoShutdownProfile;
    	      this.connectionProfile = defaults.connectionProfile;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.labPlanId = defaults.labPlanId;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.networkProfile = defaults.networkProfile;
    	      this.provisioningState = defaults.provisioningState;
    	      this.rosterProfile = defaults.rosterProfile;
    	      this.securityProfile = defaults.securityProfile;
    	      this.state = defaults.state;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.title = defaults.title;
    	      this.type = defaults.type;
    	      this.virtualMachineProfile = defaults.virtualMachineProfile;
        }

        @CustomType.Setter
        public Builder autoShutdownProfile(AutoShutdownProfileResponse autoShutdownProfile) {
            if (autoShutdownProfile == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "autoShutdownProfile");
            }
            this.autoShutdownProfile = autoShutdownProfile;
            return this;
        }
        @CustomType.Setter
        public Builder connectionProfile(ConnectionProfileResponse connectionProfile) {
            if (connectionProfile == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "connectionProfile");
            }
            this.connectionProfile = connectionProfile;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder labPlanId(@Nullable String labPlanId) {

            this.labPlanId = labPlanId;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkProfile(@Nullable LabNetworkProfileResponse networkProfile) {

            this.networkProfile = networkProfile;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder rosterProfile(@Nullable RosterProfileResponse rosterProfile) {

            this.rosterProfile = rosterProfile;
            return this;
        }
        @CustomType.Setter
        public Builder securityProfile(SecurityProfileResponse securityProfile) {
            if (securityProfile == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "securityProfile");
            }
            this.securityProfile = securityProfile;
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "state");
            }
            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder title(@Nullable String title) {

            this.title = title;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder virtualMachineProfile(VirtualMachineProfileResponse virtualMachineProfile) {
            if (virtualMachineProfile == null) {
              throw new MissingRequiredPropertyException("GetLabResult", "virtualMachineProfile");
            }
            this.virtualMachineProfile = virtualMachineProfile;
            return this;
        }
        public GetLabResult build() {
            final var _resultValue = new GetLabResult();
            _resultValue.autoShutdownProfile = autoShutdownProfile;
            _resultValue.connectionProfile = connectionProfile;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.labPlanId = labPlanId;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.networkProfile = networkProfile;
            _resultValue.provisioningState = provisioningState;
            _resultValue.rosterProfile = rosterProfile;
            _resultValue.securityProfile = securityProfile;
            _resultValue.state = state;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.title = title;
            _resultValue.type = type;
            _resultValue.virtualMachineProfile = virtualMachineProfile;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy