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

com.pulumi.azurenative.labservices.outputs.GetEnvironmentResult 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.LatestOperationResultResponse;
import com.pulumi.azurenative.labservices.outputs.NetworkInterfaceResponse;
import com.pulumi.azurenative.labservices.outputs.ResourceSetResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetEnvironmentResult {
    /**
     * @return The name or email address of the user who has claimed the environment
     * 
     */
    private String claimedByUserName;
    /**
     * @return The AAD object Id of the user who has claimed the environment
     * 
     */
    private String claimedByUserObjectId;
    /**
     * @return The user principal Id of the user who has claimed the environment
     * 
     */
    private String claimedByUserPrincipalId;
    /**
     * @return The identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return Is the environment claimed or not
     * 
     */
    private Boolean isClaimed;
    /**
     * @return Last known power state of the environment
     * 
     */
    private String lastKnownPowerState;
    /**
     * @return The details of the latest operation. ex: status, error
     * 
     */
    private LatestOperationResultResponse latestOperationResult;
    /**
     * @return The location of the resource.
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return Network details of the environment
     * 
     */
    private NetworkInterfaceResponse networkInterface;
    /**
     * @return When the password was last reset on the environment.
     * 
     */
    private String passwordLastReset;
    /**
     * @return The provisioning status of the resource.
     * 
     */
    private @Nullable String provisioningState;
    /**
     * @return The set of a VM and the setting id it was created for
     * 
     */
    private @Nullable ResourceSetResponse resourceSets;
    /**
     * @return The tags of the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return How long the environment has been used by a lab user
     * 
     */
    private String totalUsage;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    private @Nullable String uniqueIdentifier;

    private GetEnvironmentResult() {}
    /**
     * @return The name or email address of the user who has claimed the environment
     * 
     */
    public String claimedByUserName() {
        return this.claimedByUserName;
    }
    /**
     * @return The AAD object Id of the user who has claimed the environment
     * 
     */
    public String claimedByUserObjectId() {
        return this.claimedByUserObjectId;
    }
    /**
     * @return The user principal Id of the user who has claimed the environment
     * 
     */
    public String claimedByUserPrincipalId() {
        return this.claimedByUserPrincipalId;
    }
    /**
     * @return The identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Is the environment claimed or not
     * 
     */
    public Boolean isClaimed() {
        return this.isClaimed;
    }
    /**
     * @return Last known power state of the environment
     * 
     */
    public String lastKnownPowerState() {
        return this.lastKnownPowerState;
    }
    /**
     * @return The details of the latest operation. ex: status, error
     * 
     */
    public LatestOperationResultResponse latestOperationResult() {
        return this.latestOperationResult;
    }
    /**
     * @return The location of the resource.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Network details of the environment
     * 
     */
    public NetworkInterfaceResponse networkInterface() {
        return this.networkInterface;
    }
    /**
     * @return When the password was last reset on the environment.
     * 
     */
    public String passwordLastReset() {
        return this.passwordLastReset;
    }
    /**
     * @return The provisioning status of the resource.
     * 
     */
    public Optional provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }
    /**
     * @return The set of a VM and the setting id it was created for
     * 
     */
    public Optional resourceSets() {
        return Optional.ofNullable(this.resourceSets);
    }
    /**
     * @return The tags of the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return How long the environment has been used by a lab user
     * 
     */
    public String totalUsage() {
        return this.totalUsage;
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    public Optional uniqueIdentifier() {
        return Optional.ofNullable(this.uniqueIdentifier);
    }

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

    public static Builder builder(GetEnvironmentResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String claimedByUserName;
        private String claimedByUserObjectId;
        private String claimedByUserPrincipalId;
        private String id;
        private Boolean isClaimed;
        private String lastKnownPowerState;
        private LatestOperationResultResponse latestOperationResult;
        private @Nullable String location;
        private String name;
        private NetworkInterfaceResponse networkInterface;
        private String passwordLastReset;
        private @Nullable String provisioningState;
        private @Nullable ResourceSetResponse resourceSets;
        private @Nullable Map tags;
        private String totalUsage;
        private String type;
        private @Nullable String uniqueIdentifier;
        public Builder() {}
        public Builder(GetEnvironmentResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.claimedByUserName = defaults.claimedByUserName;
    	      this.claimedByUserObjectId = defaults.claimedByUserObjectId;
    	      this.claimedByUserPrincipalId = defaults.claimedByUserPrincipalId;
    	      this.id = defaults.id;
    	      this.isClaimed = defaults.isClaimed;
    	      this.lastKnownPowerState = defaults.lastKnownPowerState;
    	      this.latestOperationResult = defaults.latestOperationResult;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.networkInterface = defaults.networkInterface;
    	      this.passwordLastReset = defaults.passwordLastReset;
    	      this.provisioningState = defaults.provisioningState;
    	      this.resourceSets = defaults.resourceSets;
    	      this.tags = defaults.tags;
    	      this.totalUsage = defaults.totalUsage;
    	      this.type = defaults.type;
    	      this.uniqueIdentifier = defaults.uniqueIdentifier;
        }

        @CustomType.Setter
        public Builder claimedByUserName(String claimedByUserName) {
            if (claimedByUserName == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "claimedByUserName");
            }
            this.claimedByUserName = claimedByUserName;
            return this;
        }
        @CustomType.Setter
        public Builder claimedByUserObjectId(String claimedByUserObjectId) {
            if (claimedByUserObjectId == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "claimedByUserObjectId");
            }
            this.claimedByUserObjectId = claimedByUserObjectId;
            return this;
        }
        @CustomType.Setter
        public Builder claimedByUserPrincipalId(String claimedByUserPrincipalId) {
            if (claimedByUserPrincipalId == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "claimedByUserPrincipalId");
            }
            this.claimedByUserPrincipalId = claimedByUserPrincipalId;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isClaimed(Boolean isClaimed) {
            if (isClaimed == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "isClaimed");
            }
            this.isClaimed = isClaimed;
            return this;
        }
        @CustomType.Setter
        public Builder lastKnownPowerState(String lastKnownPowerState) {
            if (lastKnownPowerState == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "lastKnownPowerState");
            }
            this.lastKnownPowerState = lastKnownPowerState;
            return this;
        }
        @CustomType.Setter
        public Builder latestOperationResult(LatestOperationResultResponse latestOperationResult) {
            if (latestOperationResult == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "latestOperationResult");
            }
            this.latestOperationResult = latestOperationResult;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkInterface(NetworkInterfaceResponse networkInterface) {
            if (networkInterface == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "networkInterface");
            }
            this.networkInterface = networkInterface;
            return this;
        }
        @CustomType.Setter
        public Builder passwordLastReset(String passwordLastReset) {
            if (passwordLastReset == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "passwordLastReset");
            }
            this.passwordLastReset = passwordLastReset;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(@Nullable String provisioningState) {

            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder resourceSets(@Nullable ResourceSetResponse resourceSets) {

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

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder totalUsage(String totalUsage) {
            if (totalUsage == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "totalUsage");
            }
            this.totalUsage = totalUsage;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder uniqueIdentifier(@Nullable String uniqueIdentifier) {

            this.uniqueIdentifier = uniqueIdentifier;
            return this;
        }
        public GetEnvironmentResult build() {
            final var _resultValue = new GetEnvironmentResult();
            _resultValue.claimedByUserName = claimedByUserName;
            _resultValue.claimedByUserObjectId = claimedByUserObjectId;
            _resultValue.claimedByUserPrincipalId = claimedByUserPrincipalId;
            _resultValue.id = id;
            _resultValue.isClaimed = isClaimed;
            _resultValue.lastKnownPowerState = lastKnownPowerState;
            _resultValue.latestOperationResult = latestOperationResult;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.networkInterface = networkInterface;
            _resultValue.passwordLastReset = passwordLastReset;
            _resultValue.provisioningState = provisioningState;
            _resultValue.resourceSets = resourceSets;
            _resultValue.tags = tags;
            _resultValue.totalUsage = totalUsage;
            _resultValue.type = type;
            _resultValue.uniqueIdentifier = uniqueIdentifier;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy