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.
|
SubnetworkLogConfig |
getLogConfig()
This field denotes the VPC flow logging options for this subnetwork.
|
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 |
getPurpose()
The purpose of the resource.
|
String |
getRegion()
URL of the region where the Subnetwork resides.
|
String |
getRole()
The role of subnetwork.
|
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.
|
String |
getState()
[Output Only] The state of the subnetwork, which can be one of READY or DRAINING.
|
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 |
setLogConfig(SubnetworkLogConfig logConfig)
This field denotes the VPC flow logging options for this subnetwork.
|
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 |
setPurpose(String purpose)
The purpose of the resource.
|
Subnetwork.Builder |
setRegion(String region)
URL of the region where the Subnetwork resides.
|
Subnetwork.Builder |
setRole(String role)
The role of subnetwork.
|
Subnetwork.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
Subnetwork.Builder |
setState(String state)
[Output Only] The state of the subnetwork, which can be one of READY or DRAINING.
|
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 SubnetworkLogConfig getLogConfig()
public Subnetwork.Builder setLogConfig(SubnetworkLogConfig logConfig)
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 getPurpose()
public Subnetwork.Builder setPurpose(String purpose)
public String getRegion()
public Subnetwork.Builder setRegion(String region)
public String getRole()
public Subnetwork.Builder setRole(String role)
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 String getState()
public Subnetwork.Builder setState(String state)
public Subnetwork build()
public Subnetwork.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.