com.pulumi.azurenative.compute.outputs.DedicatedHostInstanceViewResponse 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.compute.outputs;
import com.pulumi.azurenative.compute.outputs.DedicatedHostAvailableCapacityResponse;
import com.pulumi.azurenative.compute.outputs.InstanceViewStatusResponse;
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 DedicatedHostInstanceViewResponse {
/**
* @return Specifies the unique id of the dedicated physical machine on which the dedicated host resides.
*
*/
private String assetId;
/**
* @return Unutilized capacity of the dedicated host.
*
*/
private @Nullable DedicatedHostAvailableCapacityResponse availableCapacity;
/**
* @return The resource status information.
*
*/
private @Nullable List statuses;
private DedicatedHostInstanceViewResponse() {}
/**
* @return Specifies the unique id of the dedicated physical machine on which the dedicated host resides.
*
*/
public String assetId() {
return this.assetId;
}
/**
* @return Unutilized capacity of the dedicated host.
*
*/
public Optional availableCapacity() {
return Optional.ofNullable(this.availableCapacity);
}
/**
* @return The resource status information.
*
*/
public List statuses() {
return this.statuses == null ? List.of() : this.statuses;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DedicatedHostInstanceViewResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String assetId;
private @Nullable DedicatedHostAvailableCapacityResponse availableCapacity;
private @Nullable List statuses;
public Builder() {}
public Builder(DedicatedHostInstanceViewResponse defaults) {
Objects.requireNonNull(defaults);
this.assetId = defaults.assetId;
this.availableCapacity = defaults.availableCapacity;
this.statuses = defaults.statuses;
}
@CustomType.Setter
public Builder assetId(String assetId) {
if (assetId == null) {
throw new MissingRequiredPropertyException("DedicatedHostInstanceViewResponse", "assetId");
}
this.assetId = assetId;
return this;
}
@CustomType.Setter
public Builder availableCapacity(@Nullable DedicatedHostAvailableCapacityResponse availableCapacity) {
this.availableCapacity = availableCapacity;
return this;
}
@CustomType.Setter
public Builder statuses(@Nullable List statuses) {
this.statuses = statuses;
return this;
}
public Builder statuses(InstanceViewStatusResponse... statuses) {
return statuses(List.of(statuses));
}
public DedicatedHostInstanceViewResponse build() {
final var _resultValue = new DedicatedHostInstanceViewResponse();
_resultValue.assetId = assetId;
_resultValue.availableCapacity = availableCapacity;
_resultValue.statuses = statuses;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy