public class AddressInfo extends Object implements Serializable
RegionAddressId
identity. Compute Engine also allows you to create global
addresses that are used for global forwarding rules. Both global addresses and global forwarding
rules can only be used for HTTP load balancing. To create a global address, use a GlobalAddressId
identity.Modifier and Type | Class and Description |
---|---|
static class |
AddressInfo.Builder
A builder for
AddressInfo objects. |
static class |
AddressInfo.GlobalForwardingUsage
Usage information for a Google Compute Engine global address assigned to one or more global
forwarding rules.
|
static class |
AddressInfo.InstanceUsage
Usage information for a Google Compute Engine region address assigned to a virtual machine
instance.
|
static class |
AddressInfo.RegionForwardingUsage
Usage information for a Google Compute Engine region address assigned to one or more region
forwarding rules.
|
static class |
AddressInfo.Status
The status of the address.
|
static class |
AddressInfo.Usage
Base class for a Google Compute Engine address's usage information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAddress()
Returns the static external IP address represented by this object.
|
<T extends AddressId> |
getAddressId()
Returns the address identity.
|
Long |
getCreationTimestamp()
Returns the creation timestamp in milliseconds since epoch.
|
String |
getDescription()
Returns an optional textual description of the address.
|
String |
getGeneratedId()
Returns the service-generated unique identifier for the address.
|
AddressInfo.Status |
getStatus()
Returns the status of the address.
|
<T extends AddressInfo.Usage> |
getUsage()
Returns the usage information of the address.
|
int |
hashCode() |
static AddressInfo.Builder |
newBuilder(AddressId addressId)
Returns a builder for the
AddressInfo object given it's identity. |
static AddressInfo |
of(AddressId addressId)
Returns an
AddressInfo object for the provided identity. |
static AddressInfo |
of(RegionId regionId,
String name)
Returns an
AddressInfo object for the provided region identity and name. |
static AddressInfo |
of(String name)
Returns an
AddressInfo object for the provided name. |
static AddressInfo |
of(String region,
String name)
Returns an
AddressInfo object for the provided region and address names. |
AddressInfo.Builder |
toBuilder()
Returns a builder for the
AddressInfo object. |
String |
toString() |
public String getAddress()
public Long getCreationTimestamp()
public String getDescription()
public String getGeneratedId()
public <T extends AddressId> T getAddressId()
GlobalAddressId
for a global address, returns
RegionAddressId
for a region address.public AddressInfo.Status getStatus()
public <T extends AddressInfo.Usage> T getUsage()
AddressInfo.InstanceUsage
object for
region addresses that are assigned to VM instances. Returns a AddressInfo.RegionForwardingUsage
object for region addresses assigned to region forwarding rules. Returns a AddressInfo.GlobalForwardingUsage
object for global addresses assigned to global forwarding rules. Returns
null
if the address is not in use.public AddressInfo.Builder toBuilder()
AddressInfo
object.public static AddressInfo.Builder newBuilder(AddressId addressId)
AddressInfo
object given it's identity.public static AddressInfo of(AddressId addressId)
AddressInfo
object for the provided identity.public static AddressInfo of(String name)
AddressInfo
object for the provided name. The object corresponds to a global
address.public static AddressInfo of(RegionId regionId, String name)
AddressInfo
object for the provided region identity and name. The object
corresponds to a region address.public static AddressInfo of(String region, String name)
AddressInfo
object for the provided region and address names. The object
corresponds to a region address.Copyright © 2019 Google LLC. All rights reserved.