org.jclouds.googlecomputeengine.domain
Class Network
java.lang.Object
org.jclouds.googlecomputeengine.domain.Resource
org.jclouds.googlecomputeengine.domain.Network
@Beta
public final class Network
- extends Resource
Represents a network used to enable instance communication.
- Author:
- David Alves
- See Also:
| Nested classes/interfaces inherited from class org.jclouds.googlecomputeengine.domain.Resource |
Resource.Kind |
Network
@ConstructorProperties(value={"id","creationTimestamp","selfLink","name","description","IPv4Range","gatewayIPv4"})
protected Network(String id,
Date creationTimestamp,
URI selfLink,
String name,
String description,
String IPv4Range,
String gatewayIPv4)
getIPv4Range
public String getIPv4Range()
- Returns:
- Required; The range of internal addresses that are legal on this network. This range is a CIDR
specification, for example: 192.168.0.0/16.
getGatewayIPv4
public com.google.common.base.Optional<String> getGatewayIPv4()
- This must be within the range specified by IPv4Range, and is typically the first usable address in that range.
If not specified, the default value is the first usable address in IPv4Range.
- Returns:
- an optional address that is used for default routing to other networks.
string
protected com.google.common.base.Objects.ToStringHelper string()
-
- Overrides:
string in class Resource
toString
public String toString()
-
- Overrides:
toString in class Resource
builder
public static Network.Builder builder()
toBuilder
public Network.Builder toBuilder()
- Overrides:
toBuilder in class Resource
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.