com.pulumi.azure.compute.outputs.GetVirtualMachineScaleSetResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.compute.outputs;
import com.pulumi.azure.compute.outputs.GetVirtualMachineScaleSetIdentity;
import com.pulumi.azure.compute.outputs.GetVirtualMachineScaleSetInstance;
import com.pulumi.azure.compute.outputs.GetVirtualMachineScaleSetNetworkInterface;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetVirtualMachineScaleSetResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return A `identity` block as defined below.
*
*/
private List identities;
/**
* @return A list of `instances` blocks as defined below.
*
*/
private List instances;
/**
* @return The Azure Region in which this Virtual Machine Scale Set exists.
*
*/
private String location;
/**
* @return The name of the public IP address configuration
*
*/
private String name;
/**
* @return A list of `network_interface` blocks as defined below.
*
*/
private List networkInterfaces;
private String resourceGroupName;
private GetVirtualMachineScaleSetResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return A `identity` block as defined below.
*
*/
public List identities() {
return this.identities;
}
/**
* @return A list of `instances` blocks as defined below.
*
*/
public List instances() {
return this.instances;
}
/**
* @return The Azure Region in which this Virtual Machine Scale Set exists.
*
*/
public String location() {
return this.location;
}
/**
* @return The name of the public IP address configuration
*
*/
public String name() {
return this.name;
}
/**
* @return A list of `network_interface` blocks as defined below.
*
*/
public List networkInterfaces() {
return this.networkInterfaces;
}
public String resourceGroupName() {
return this.resourceGroupName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVirtualMachineScaleSetResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private List identities;
private List instances;
private String location;
private String name;
private List networkInterfaces;
private String resourceGroupName;
public Builder() {}
public Builder(GetVirtualMachineScaleSetResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.identities = defaults.identities;
this.instances = defaults.instances;
this.location = defaults.location;
this.name = defaults.name;
this.networkInterfaces = defaults.networkInterfaces;
this.resourceGroupName = defaults.resourceGroupName;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identities(List identities) {
if (identities == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetResult", "identities");
}
this.identities = identities;
return this;
}
public Builder identities(GetVirtualMachineScaleSetIdentity... identities) {
return identities(List.of(identities));
}
@CustomType.Setter
public Builder instances(List instances) {
if (instances == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetResult", "instances");
}
this.instances = instances;
return this;
}
public Builder instances(GetVirtualMachineScaleSetInstance... instances) {
return instances(List.of(instances));
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder networkInterfaces(List networkInterfaces) {
if (networkInterfaces == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetResult", "networkInterfaces");
}
this.networkInterfaces = networkInterfaces;
return this;
}
public Builder networkInterfaces(GetVirtualMachineScaleSetNetworkInterface... networkInterfaces) {
return networkInterfaces(List.of(networkInterfaces));
}
@CustomType.Setter
public Builder resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
public GetVirtualMachineScaleSetResult build() {
final var _resultValue = new GetVirtualMachineScaleSetResult();
_resultValue.id = id;
_resultValue.identities = identities;
_resultValue.instances = instances;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.networkInterfaces = networkInterfaces;
_resultValue.resourceGroupName = resourceGroupName;
return _resultValue;
}
}
}