public static final class NetworkInterface.AccessConfig extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NetworkInterface.AccessConfig.Builder |
static class |
NetworkInterface.AccessConfig.Type
The type of network access configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns the name of the access configuration.
|
String |
getNatIp()
Returns an external IP address associated with this instance.
|
NetworkInterface.AccessConfig.Type |
getType()
Returns the type of network access configuration.
|
int |
hashCode() |
static NetworkInterface.AccessConfig.Builder |
newBuilder()
Returns a builder for an
AccessConfig object. |
static NetworkInterface.AccessConfig |
of()
Returns an
AccessConfig object. |
static NetworkInterface.AccessConfig |
of(String natIp)
Returns an
AccessConfig object given the static external IP address. |
NetworkInterface.AccessConfig.Builder |
toBuilder()
Returns a builder for the current access configuration.
|
String |
toString() |
public String getName()
public String getNatIp()
public NetworkInterface.AccessConfig.Type getType()
NetworkInterface.AccessConfig.Type.ONE_TO_ONE_NAT
.public NetworkInterface.AccessConfig.Builder toBuilder()
public static NetworkInterface.AccessConfig.Builder newBuilder()
AccessConfig
object.public static NetworkInterface.AccessConfig of(String natIp)
AccessConfig
object given the static external IP address.public static NetworkInterface.AccessConfig of()
AccessConfig
object. IP address for this access configuration will be
taken from a pool of ephemeral addresses.Copyright © 2019 Google LLC. All rights reserved.