com.pulumi.azurenative.labservices.outputs.LabDetailsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LabDetailsResponse {
/**
* @return The Id of the lab.
*
*/
private @Nullable String id;
/**
* @return Name of the lab
*
*/
private @Nullable String name;
/**
* @return The provisioning state of the lab.
*
*/
private @Nullable String provisioningState;
/**
* @return The maximum duration a user can use a VM in this lab.
*
*/
private String usageQuota;
private LabDetailsResponse() {}
/**
* @return The Id of the lab.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Name of the lab
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The provisioning state of the lab.
*
*/
public Optional provisioningState() {
return Optional.ofNullable(this.provisioningState);
}
/**
* @return The maximum duration a user can use a VM in this lab.
*
*/
public String usageQuota() {
return this.usageQuota;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LabDetailsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String id;
private @Nullable String name;
private @Nullable String provisioningState;
private String usageQuota;
public Builder() {}
public Builder(LabDetailsResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.usageQuota = defaults.usageQuota;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(@Nullable String provisioningState) {
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder usageQuota(String usageQuota) {
if (usageQuota == null) {
throw new MissingRequiredPropertyException("LabDetailsResponse", "usageQuota");
}
this.usageQuota = usageQuota;
return this;
}
public LabDetailsResponse build() {
final var _resultValue = new LabDetailsResponse();
_resultValue.id = id;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.usageQuota = usageQuota;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy