public static class Subnetwork.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Subnetwork.Builder |
addAllSecondaryIpRanges(List<SubnetworkSecondaryRange> secondaryIpRanges)
An array of configurations for secondary IP ranges for VM instances contained in this
subnetwork.
|
Subnetwork.Builder |
addSecondaryIpRanges(SubnetworkSecondaryRange secondaryIpRanges)
An array of configurations for secondary IP ranges for VM instances contained in this
subnetwork.
|
Subnetwork |
build() |
Subnetwork.Builder |
clone() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
Boolean |
getEnableFlowLogs()
Whether to enable flow logging for this subnetwork.
|
String |
getFingerprint()
Fingerprint of this resource.
|
String |
getGatewayAddress()
[Output Only] The gateway address for default routes to reach destination addresses outside
this subnetwork.
|
String |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getIpCidrRange()
The range of internal addresses that are owned by this subnetwork.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getName()
The name of the resource, provided by the client when initially creating the resource.
|
String |
getNetwork()
The URL of the network to which this subnetwork belongs, provided by the client when
initially creating the subnetwork.
|
Boolean |
getPrivateIpGoogleAccess()
Whether the VMs in this subnet can access Google services without assigned external IP
addresses.
|
String |
getRegion()
URL of the region where the Subnetwork resides.
|
List<SubnetworkSecondaryRange> |
getSecondaryIpRangesList()
An array of configurations for secondary IP ranges for VM instances contained in this
subnetwork.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
Subnetwork.Builder |
mergeFrom(Subnetwork other) |
Subnetwork.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Subnetwork.Builder |
setDescription(String description)
An optional description of this resource.
|
Subnetwork.Builder |
setEnableFlowLogs(Boolean enableFlowLogs)
Whether to enable flow logging for this subnetwork.
|
Subnetwork.Builder |
setFingerprint(String fingerprint)
Fingerprint of this resource.
|
Subnetwork.Builder |
setGatewayAddress(String gatewayAddress)
[Output Only] The gateway address for default routes to reach destination addresses outside
this subnetwork.
|
Subnetwork.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
Subnetwork.Builder |
setIpCidrRange(String ipCidrRange)
The range of internal addresses that are owned by this subnetwork.
|
Subnetwork.Builder |
setKind(String kind)
[Output Only] Type of the resource.
|
Subnetwork.Builder |
setName(String name)
The name of the resource, provided by the client when initially creating the resource.
|
Subnetwork.Builder |
setNetwork(String network)
The URL of the network to which this subnetwork belongs, provided by the client when
initially creating the subnetwork.
|
Subnetwork.Builder |
setPrivateIpGoogleAccess(Boolean privateIpGoogleAccess)
Whether the VMs in this subnet can access Google services without assigned external IP
addresses.
|
Subnetwork.Builder |
setRegion(String region)
URL of the region where the Subnetwork resides.
|
Subnetwork.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
public Subnetwork.Builder mergeFrom(Subnetwork other)
public String getCreationTimestamp()
public Subnetwork.Builder setCreationTimestamp(String creationTimestamp)
public String getDescription()
public Subnetwork.Builder setDescription(String description)
public Boolean getEnableFlowLogs()
public Subnetwork.Builder setEnableFlowLogs(Boolean enableFlowLogs)
public String getFingerprint()
To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
public Subnetwork.Builder setFingerprint(String fingerprint)
To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
public String getGatewayAddress()
public Subnetwork.Builder setGatewayAddress(String gatewayAddress)
public String getId()
public Subnetwork.Builder setId(String id)
public String getIpCidrRange()
public Subnetwork.Builder setIpCidrRange(String ipCidrRange)
public String getKind()
public Subnetwork.Builder setKind(String kind)
public String getName()
public Subnetwork.Builder setName(String name)
public String getNetwork()
public Subnetwork.Builder setNetwork(String network)
public Boolean getPrivateIpGoogleAccess()
public Subnetwork.Builder setPrivateIpGoogleAccess(Boolean privateIpGoogleAccess)
public String getRegion()
public Subnetwork.Builder setRegion(String region)
public List<SubnetworkSecondaryRange> getSecondaryIpRangesList()
public Subnetwork.Builder addAllSecondaryIpRanges(List<SubnetworkSecondaryRange> secondaryIpRanges)
public Subnetwork.Builder addSecondaryIpRanges(SubnetworkSecondaryRange secondaryIpRanges)
public String getSelfLink()
public Subnetwork.Builder setSelfLink(String selfLink)
public Subnetwork build()
public Subnetwork.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.