com.pulumi.azurenative.workloads.outputs.ApplicationServerFullResourceNamesResponse 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.workloads.outputs;
import com.pulumi.azurenative.workloads.outputs.VirtualMachineResourceNamesResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApplicationServerFullResourceNamesResponse {
/**
* @return The full name for availability set. In case name is not provided, it will be defaulted to {SID}-App-AvSet.
*
*/
private @Nullable String availabilitySetName;
/**
* @return The list of virtual machine naming details.
*
*/
private @Nullable List virtualMachines;
private ApplicationServerFullResourceNamesResponse() {}
/**
* @return The full name for availability set. In case name is not provided, it will be defaulted to {SID}-App-AvSet.
*
*/
public Optional availabilitySetName() {
return Optional.ofNullable(this.availabilitySetName);
}
/**
* @return The list of virtual machine naming details.
*
*/
public List virtualMachines() {
return this.virtualMachines == null ? List.of() : this.virtualMachines;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApplicationServerFullResourceNamesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String availabilitySetName;
private @Nullable List virtualMachines;
public Builder() {}
public Builder(ApplicationServerFullResourceNamesResponse defaults) {
Objects.requireNonNull(defaults);
this.availabilitySetName = defaults.availabilitySetName;
this.virtualMachines = defaults.virtualMachines;
}
@CustomType.Setter
public Builder availabilitySetName(@Nullable String availabilitySetName) {
this.availabilitySetName = availabilitySetName;
return this;
}
@CustomType.Setter
public Builder virtualMachines(@Nullable List virtualMachines) {
this.virtualMachines = virtualMachines;
return this;
}
public Builder virtualMachines(VirtualMachineResourceNamesResponse... virtualMachines) {
return virtualMachines(List.of(virtualMachines));
}
public ApplicationServerFullResourceNamesResponse build() {
final var _resultValue = new ApplicationServerFullResourceNamesResponse();
_resultValue.availabilitySetName = availabilitySetName;
_resultValue.virtualMachines = virtualMachines;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy