public static class NetworkInterface.Builder extends Object
Modifier and Type | Method and Description |
---|---|
NetworkInterface.Builder |
addAccessConfigs(AccessConfig accessConfigs)
An array of configurations for this interface.
|
NetworkInterface.Builder |
addAliasIpRanges(AliasIpRange aliasIpRanges)
An array of alias IP ranges for this network interface.
|
NetworkInterface.Builder |
addAllAccessConfigs(List<AccessConfig> accessConfigs)
An array of configurations for this interface.
|
NetworkInterface.Builder |
addAllAliasIpRanges(List<AliasIpRange> aliasIpRanges)
An array of alias IP ranges for this network interface.
|
NetworkInterface |
build() |
NetworkInterface.Builder |
clone() |
List<AccessConfig> |
getAccessConfigsList()
An array of configurations for this interface.
|
List<AliasIpRange> |
getAliasIpRangesList()
An array of alias IP ranges for this network interface.
|
String |
getFingerprint()
Fingerprint hash of contents stored in this network interface.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getName()
[Output Only] The name of the network interface, generated by the server.
|
String |
getNetwork()
URL of the network resource for this instance.
|
String |
getNetworkIP()
An IPv4 internal network address to assign to the instance for this network interface.
|
String |
getSubnetwork()
The URL of the Subnetwork resource for this instance.
|
NetworkInterface.Builder |
mergeFrom(NetworkInterface other) |
NetworkInterface.Builder |
setFingerprint(String fingerprint)
Fingerprint hash of contents stored in this network interface.
|
NetworkInterface.Builder |
setKind(String kind)
[Output Only] Type of the resource.
|
NetworkInterface.Builder |
setName(String name)
[Output Only] The name of the network interface, generated by the server.
|
NetworkInterface.Builder |
setNetwork(String network)
URL of the network resource for this instance.
|
NetworkInterface.Builder |
setNetworkIP(String networkIP)
An IPv4 internal network address to assign to the instance for this network interface.
|
NetworkInterface.Builder |
setSubnetwork(String subnetwork)
The URL of the Subnetwork resource for this instance.
|
public NetworkInterface.Builder mergeFrom(NetworkInterface other)
public List<AccessConfig> getAccessConfigsList()
public NetworkInterface.Builder addAllAccessConfigs(List<AccessConfig> accessConfigs)
public NetworkInterface.Builder addAccessConfigs(AccessConfig accessConfigs)
public List<AliasIpRange> getAliasIpRangesList()
public NetworkInterface.Builder addAllAliasIpRanges(List<AliasIpRange> aliasIpRanges)
public NetworkInterface.Builder addAliasIpRanges(AliasIpRange aliasIpRanges)
public String getFingerprint()
public NetworkInterface.Builder setFingerprint(String fingerprint)
public String getKind()
public NetworkInterface.Builder setKind(String kind)
public String getName()
public NetworkInterface.Builder setName(String name)
public String getNetwork()
This field is optional when creating a firewall rule. If not specified when creating a firewall rule, the default network global/networks/default is used.
If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default
public NetworkInterface.Builder setNetwork(String network)
This field is optional when creating a firewall rule. If not specified when creating a firewall rule, the default network global/networks/default is used.
If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default
public String getNetworkIP()
public NetworkInterface.Builder setNetworkIP(String networkIP)
public String getSubnetwork()
public NetworkInterface.Builder setSubnetwork(String subnetwork)
public NetworkInterface build()
public NetworkInterface.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.