com.pulumi.azurenative.recoveryservices.outputs.HyperVSiteDetailsResponse 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.recoveryservices.outputs;
import com.pulumi.azurenative.recoveryservices.outputs.HyperVHostDetailsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class HyperVSiteDetailsResponse {
/**
* @return The list of Hyper-V hosts associated with the fabric.
*
*/
private @Nullable List hyperVHosts;
/**
* @return Gets the class type. Overridden in derived classes.
* Expected value is 'HyperVSite'.
*
*/
private String instanceType;
private HyperVSiteDetailsResponse() {}
/**
* @return The list of Hyper-V hosts associated with the fabric.
*
*/
public List hyperVHosts() {
return this.hyperVHosts == null ? List.of() : this.hyperVHosts;
}
/**
* @return Gets the class type. Overridden in derived classes.
* Expected value is 'HyperVSite'.
*
*/
public String instanceType() {
return this.instanceType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HyperVSiteDetailsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List hyperVHosts;
private String instanceType;
public Builder() {}
public Builder(HyperVSiteDetailsResponse defaults) {
Objects.requireNonNull(defaults);
this.hyperVHosts = defaults.hyperVHosts;
this.instanceType = defaults.instanceType;
}
@CustomType.Setter
public Builder hyperVHosts(@Nullable List hyperVHosts) {
this.hyperVHosts = hyperVHosts;
return this;
}
public Builder hyperVHosts(HyperVHostDetailsResponse... hyperVHosts) {
return hyperVHosts(List.of(hyperVHosts));
}
@CustomType.Setter
public Builder instanceType(String instanceType) {
if (instanceType == null) {
throw new MissingRequiredPropertyException("HyperVSiteDetailsResponse", "instanceType");
}
this.instanceType = instanceType;
return this;
}
public HyperVSiteDetailsResponse build() {
final var _resultValue = new HyperVSiteDetailsResponse();
_resultValue.hyperVHosts = hyperVHosts;
_resultValue.instanceType = instanceType;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy