com.pulumi.azurenative.scvmm.outputs.GetAvailabilitySetResult 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.scvmm.outputs;
import com.pulumi.azurenative.scvmm.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.scvmm.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetAvailabilitySetResult {
/**
* @return Name of the availability set.
*
*/
private @Nullable String availabilitySetName;
/**
* @return The extended location.
*
*/
private @Nullable ExtendedLocationResponse extendedLocation;
/**
* @return Resource Id
*
*/
private String id;
/**
* @return Gets or sets the location.
*
*/
private @Nullable String location;
/**
* @return Resource Name
*
*/
private String name;
/**
* @return Gets or sets the provisioning state.
*
*/
private String provisioningState;
/**
* @return The system data.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource tags
*
*/
private @Nullable Map tags;
/**
* @return Resource Type
*
*/
private String type;
/**
* @return ARM Id of the vmmServer resource in which this resource resides.
*
*/
private @Nullable String vmmServerId;
private GetAvailabilitySetResult() {}
/**
* @return Name of the availability set.
*
*/
public Optional availabilitySetName() {
return Optional.ofNullable(this.availabilitySetName);
}
/**
* @return The extended location.
*
*/
public Optional extendedLocation() {
return Optional.ofNullable(this.extendedLocation);
}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets the location.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return Resource Name
*
*/
public String name() {
return this.name;
}
/**
* @return Gets or sets the provisioning state.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The system data.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource tags
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Resource Type
*
*/
public String type() {
return this.type;
}
/**
* @return ARM Id of the vmmServer resource in which this resource resides.
*
*/
public Optional vmmServerId() {
return Optional.ofNullable(this.vmmServerId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAvailabilitySetResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String availabilitySetName;
private @Nullable ExtendedLocationResponse extendedLocation;
private String id;
private @Nullable String location;
private String name;
private String provisioningState;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private @Nullable String vmmServerId;
public Builder() {}
public Builder(GetAvailabilitySetResult defaults) {
Objects.requireNonNull(defaults);
this.availabilitySetName = defaults.availabilitySetName;
this.extendedLocation = defaults.extendedLocation;
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.vmmServerId = defaults.vmmServerId;
}
@CustomType.Setter
public Builder availabilitySetName(@Nullable String availabilitySetName) {
this.availabilitySetName = availabilitySetName;
return this;
}
@CustomType.Setter
public Builder extendedLocation(@Nullable ExtendedLocationResponse extendedLocation) {
this.extendedLocation = extendedLocation;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAvailabilitySetResult", "id");
}
this.id = id;
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("GetAvailabilitySetResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetAvailabilitySetResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetAvailabilitySetResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetAvailabilitySetResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder vmmServerId(@Nullable String vmmServerId) {
this.vmmServerId = vmmServerId;
return this;
}
public GetAvailabilitySetResult build() {
final var _resultValue = new GetAvailabilitySetResult();
_resultValue.availabilitySetName = availabilitySetName;
_resultValue.extendedLocation = extendedLocation;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.vmmServerId = vmmServerId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy