public class Subnetwork extends SubnetworkInfo
Subnetwork
object with the most
recent information use reload(com.google.cloud.compute.deprecated.Compute.SubnetworkOption...)
. Subnetwork
adds a layer of service-related
functionality over SubnetworkInfo
.Modifier and Type | Class and Description |
---|---|
static class |
Subnetwork.Builder
A builder for
Subnetwork objects. |
Modifier and Type | Method and Description |
---|---|
Operation |
delete(Compute.OperationOption... options)
Deletes this subnetwork.
|
boolean |
equals(Object obj) |
boolean |
exists()
Checks if this subnetwork exists.
|
Compute |
getCompute()
Returns the subnetwork's
Compute object used to issue requests. |
int |
hashCode() |
Subnetwork |
reload(Compute.SubnetworkOption... options)
Fetches current subnetwork' latest information.
|
Subnetwork.Builder |
toBuilder()
Returns a builder for the current subnetwork.
|
getCreationTimestamp, getDescription, getGatewayAddress, getGeneratedId, getIpRange, getNetwork, getSubnetworkId, newBuilder, of, toString
public boolean exists()
true
if this subnetwork exists, false
otherwiseComputeException
- upon failurepublic Subnetwork reload(Compute.SubnetworkOption... options)
null
if the subnetwork does not
exist.options
- subnetwork optionsSubnetwork
object with latest information or null
if not foundComputeException
- upon failurepublic Operation delete(Compute.OperationOption... options)
null
if the
subnetwork was not foundComputeException
- upon failurepublic Compute getCompute()
Compute
object used to issue requests.public Subnetwork.Builder toBuilder()
SubnetworkInfo
toBuilder
in class SubnetworkInfo
public final boolean equals(Object obj)
equals
in class SubnetworkInfo
public final int hashCode()
hashCode
in class SubnetworkInfo
Copyright © 2019 Google LLC. All rights reserved.