com.pulumi.azurenative.compute.outputs.DedicatedHostInstanceViewWithNameResponse 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 DedicatedHostInstanceViewWithNameResponse {
/**
* @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 name of the dedicated host.
*
*/
private String name;
/**
* @return The resource status information.
*
*/
private @Nullable List statuses;
private DedicatedHostInstanceViewWithNameResponse() {}
/**
* @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 name of the dedicated host.
*
*/
public String name() {
return this.name;
}
/**
* @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(DedicatedHostInstanceViewWithNameResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String assetId;
private @Nullable DedicatedHostAvailableCapacityResponse availableCapacity;
private String name;
private @Nullable List statuses;
public Builder() {}
public Builder(DedicatedHostInstanceViewWithNameResponse defaults) {
Objects.requireNonNull(defaults);
this.assetId = defaults.assetId;
this.availableCapacity = defaults.availableCapacity;
this.name = defaults.name;
this.statuses = defaults.statuses;
}
@CustomType.Setter
public Builder assetId(String assetId) {
if (assetId == null) {
throw new MissingRequiredPropertyException("DedicatedHostInstanceViewWithNameResponse", "assetId");
}
this.assetId = assetId;
return this;
}
@CustomType.Setter
public Builder availableCapacity(@Nullable DedicatedHostAvailableCapacityResponse availableCapacity) {
this.availableCapacity = availableCapacity;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("DedicatedHostInstanceViewWithNameResponse", "name");
}
this.name = name;
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 DedicatedHostInstanceViewWithNameResponse build() {
final var _resultValue = new DedicatedHostInstanceViewWithNameResponse();
_resultValue.assetId = assetId;
_resultValue.availableCapacity = availableCapacity;
_resultValue.name = name;
_resultValue.statuses = statuses;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy