com.pulumi.azurenative.network.outputs.IPConfigurationResponse 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.network.outputs;
import com.pulumi.azurenative.network.outputs.PublicIPAddressResponse;
import com.pulumi.azurenative.network.outputs.SubnetResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IPConfigurationResponse {
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
*
*/
private @Nullable String name;
/**
* @return The private IP address of the IP configuration.
*
*/
private @Nullable String privateIPAddress;
/**
* @return The private IP address allocation method.
*
*/
private @Nullable String privateIPAllocationMethod;
/**
* @return The provisioning state of the IP configuration resource.
*
*/
private String provisioningState;
/**
* @return The reference to the public IP resource.
*
*/
private @Nullable PublicIPAddressResponse publicIPAddress;
/**
* @return The reference to the subnet resource.
*
*/
private @Nullable SubnetResponse subnet;
private IPConfigurationResponse() {}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The private IP address of the IP configuration.
*
*/
public Optional privateIPAddress() {
return Optional.ofNullable(this.privateIPAddress);
}
/**
* @return The private IP address allocation method.
*
*/
public Optional privateIPAllocationMethod() {
return Optional.ofNullable(this.privateIPAllocationMethod);
}
/**
* @return The provisioning state of the IP configuration resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The reference to the public IP resource.
*
*/
public Optional publicIPAddress() {
return Optional.ofNullable(this.publicIPAddress);
}
/**
* @return The reference to the subnet resource.
*
*/
public Optional subnet() {
return Optional.ofNullable(this.subnet);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IPConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String etag;
private @Nullable String id;
private @Nullable String name;
private @Nullable String privateIPAddress;
private @Nullable String privateIPAllocationMethod;
private String provisioningState;
private @Nullable PublicIPAddressResponse publicIPAddress;
private @Nullable SubnetResponse subnet;
public Builder() {}
public Builder(IPConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.etag = defaults.etag;
this.id = defaults.id;
this.name = defaults.name;
this.privateIPAddress = defaults.privateIPAddress;
this.privateIPAllocationMethod = defaults.privateIPAllocationMethod;
this.provisioningState = defaults.provisioningState;
this.publicIPAddress = defaults.publicIPAddress;
this.subnet = defaults.subnet;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("IPConfigurationResponse", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder privateIPAddress(@Nullable String privateIPAddress) {
this.privateIPAddress = privateIPAddress;
return this;
}
@CustomType.Setter
public Builder privateIPAllocationMethod(@Nullable String privateIPAllocationMethod) {
this.privateIPAllocationMethod = privateIPAllocationMethod;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("IPConfigurationResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder publicIPAddress(@Nullable PublicIPAddressResponse publicIPAddress) {
this.publicIPAddress = publicIPAddress;
return this;
}
@CustomType.Setter
public Builder subnet(@Nullable SubnetResponse subnet) {
this.subnet = subnet;
return this;
}
public IPConfigurationResponse build() {
final var _resultValue = new IPConfigurationResponse();
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.privateIPAddress = privateIPAddress;
_resultValue.privateIPAllocationMethod = privateIPAllocationMethod;
_resultValue.provisioningState = provisioningState;
_resultValue.publicIPAddress = publicIPAddress;
_resultValue.subnet = subnet;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy