com.pulumi.linode.outputs.GetInstanceNetworkingIpv4Public Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode cloud 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.linode.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.outputs.GetInstanceNetworkingIpv4PublicVpcNat11;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetInstanceNetworkingIpv4Public {
/**
* @return The address.
*
*/
private String address;
/**
* @return The default gateway for this address.
*
*/
private String gateway;
/**
* @return The Linode instance's ID.
*
*/
private Integer linodeId;
/**
* @return The network prefix.
*
*/
private Integer prefix;
/**
* @return Whether this is a public or private IP address.
*
*/
private Boolean public_;
/**
* @return The reverse DNS assigned to this address.
*
*/
private String rdns;
/**
* @return (Filterable) The Region this address resides in.
*
*/
private String region;
/**
* @return The subnet mask.
*
*/
private String subnetMask;
/**
* @return The type of address this is.
*
*/
private String type;
/**
* @return IPv4 address configured as a 1:1 NAT for this Interface.
*
*/
private GetInstanceNetworkingIpv4PublicVpcNat11 vpcNat11;
private GetInstanceNetworkingIpv4Public() {}
/**
* @return The address.
*
*/
public String address() {
return this.address;
}
/**
* @return The default gateway for this address.
*
*/
public String gateway() {
return this.gateway;
}
/**
* @return The Linode instance's ID.
*
*/
public Integer linodeId() {
return this.linodeId;
}
/**
* @return The network prefix.
*
*/
public Integer prefix() {
return this.prefix;
}
/**
* @return Whether this is a public or private IP address.
*
*/
public Boolean public_() {
return this.public_;
}
/**
* @return The reverse DNS assigned to this address.
*
*/
public String rdns() {
return this.rdns;
}
/**
* @return (Filterable) The Region this address resides in.
*
*/
public String region() {
return this.region;
}
/**
* @return The subnet mask.
*
*/
public String subnetMask() {
return this.subnetMask;
}
/**
* @return The type of address this is.
*
*/
public String type() {
return this.type;
}
/**
* @return IPv4 address configured as a 1:1 NAT for this Interface.
*
*/
public GetInstanceNetworkingIpv4PublicVpcNat11 vpcNat11() {
return this.vpcNat11;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetInstanceNetworkingIpv4Public defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String address;
private String gateway;
private Integer linodeId;
private Integer prefix;
private Boolean public_;
private String rdns;
private String region;
private String subnetMask;
private String type;
private GetInstanceNetworkingIpv4PublicVpcNat11 vpcNat11;
public Builder() {}
public Builder(GetInstanceNetworkingIpv4Public defaults) {
Objects.requireNonNull(defaults);
this.address = defaults.address;
this.gateway = defaults.gateway;
this.linodeId = defaults.linodeId;
this.prefix = defaults.prefix;
this.public_ = defaults.public_;
this.rdns = defaults.rdns;
this.region = defaults.region;
this.subnetMask = defaults.subnetMask;
this.type = defaults.type;
this.vpcNat11 = defaults.vpcNat11;
}
@CustomType.Setter
public Builder address(String address) {
if (address == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "address");
}
this.address = address;
return this;
}
@CustomType.Setter
public Builder gateway(String gateway) {
if (gateway == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "gateway");
}
this.gateway = gateway;
return this;
}
@CustomType.Setter
public Builder linodeId(Integer linodeId) {
if (linodeId == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "linodeId");
}
this.linodeId = linodeId;
return this;
}
@CustomType.Setter
public Builder prefix(Integer prefix) {
if (prefix == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "prefix");
}
this.prefix = prefix;
return this;
}
@CustomType.Setter("public")
public Builder public_(Boolean public_) {
if (public_ == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "public_");
}
this.public_ = public_;
return this;
}
@CustomType.Setter
public Builder rdns(String rdns) {
if (rdns == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "rdns");
}
this.rdns = rdns;
return this;
}
@CustomType.Setter
public Builder region(String region) {
if (region == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "region");
}
this.region = region;
return this;
}
@CustomType.Setter
public Builder subnetMask(String subnetMask) {
if (subnetMask == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "subnetMask");
}
this.subnetMask = subnetMask;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder vpcNat11(GetInstanceNetworkingIpv4PublicVpcNat11 vpcNat11) {
if (vpcNat11 == null) {
throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4Public", "vpcNat11");
}
this.vpcNat11 = vpcNat11;
return this;
}
public GetInstanceNetworkingIpv4Public build() {
final var _resultValue = new GetInstanceNetworkingIpv4Public();
_resultValue.address = address;
_resultValue.gateway = gateway;
_resultValue.linodeId = linodeId;
_resultValue.prefix = prefix;
_resultValue.public_ = public_;
_resultValue.rdns = rdns;
_resultValue.region = region;
_resultValue.subnetMask = subnetMask;
_resultValue.type = type;
_resultValue.vpcNat11 = vpcNat11;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy