public class Address extends AddressInfo
Address
adds a layer of service-related functionality over AddressInfo. Objects of this class are
immutable. To get an Address object with the most recent information use reload(com.google.cloud.compute.deprecated.Compute.AddressOption...).| Modifier and Type | Class and Description |
|---|---|
static class |
Address.Builder
A builder for
Address objects. |
AddressInfo.GlobalForwardingUsage, AddressInfo.InstanceUsage, AddressInfo.RegionForwardingUsage, AddressInfo.Status, AddressInfo.Usage| Modifier and Type | Method and Description |
|---|---|
Operation |
delete(Compute.OperationOption... options)
Deletes this address.
|
boolean |
equals(Object obj) |
boolean |
exists()
Checks if this address exists.
|
Compute |
getCompute()
Returns the address's
Compute object used to issue requests. |
int |
hashCode() |
Address |
reload(Compute.AddressOption... options)
Fetches the current address' latest information.
|
Address.Builder |
toBuilder()
Returns a builder for the
AddressInfo object. |
getAddress, getAddressId, getCreationTimestamp, getDescription, getGeneratedId, getStatus, getUsage, newBuilder, of, of, of, of, toStringpublic boolean exists()
true if this address exists, false otherwiseComputeException - upon failurepublic Address reload(Compute.AddressOption... options)
null if the address does not
exist.options - address optionsAddress object with latest information or null if not foundComputeException - upon failurepublic Operation delete(Compute.OperationOption... options)
Operation object if delete request was successfully sent, null if
the address was not foundComputeException - upon failurepublic Compute getCompute()
Compute object used to issue requests.public Address.Builder toBuilder()
AddressInfoAddressInfo object.toBuilder in class AddressInfopublic final boolean equals(Object obj)
equals in class AddressInfopublic final int hashCode()
hashCode in class AddressInfoCopyright © 2019 Google LLC. All rights reserved.