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 |
|---|---|
String |
address()
Returns the static external IP address represented by this object.
|
<T extends AddressId> |
addressId()
Returns the address identity.
|
static AddressInfo.Builder |
builder(AddressId addressId)
Returns a builder for the
AddressInfo object given it's identity. |
Long |
creationTimestamp()
Returns the creation timestamp in milliseconds since epoch.
|
String |
description()
Returns an optional textual description of the address.
|
boolean |
equals(Object obj) |
String |
generatedId()
Returns the service-generated unique identifier for the address.
|
int |
hashCode() |
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.Status |
status()
Returns the status of the address.
|
AddressInfo.Builder |
toBuilder()
Returns a builder for the
AddressInfo object. |
String |
toString() |
<T extends AddressInfo.Usage> |
usage()
Returns the usage information of the address.
|
public String address()
public Long creationTimestamp()
public String description()
public String generatedId()
public <T extends AddressId> T addressId()
GlobalAddressId for a global address, returns
RegionAddressId for a region address.public AddressInfo.Status status()
public <T extends AddressInfo.Usage> T usage()
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 builder(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 © 2016 Google. All rights reserved.