public final class Firewall extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json
Modifier and Type | Class and Description |
---|---|
static class |
Firewall.Allowed
Model definition for FirewallAllowed.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Firewall() |
Modifier and Type | Method and Description |
---|---|
Firewall |
clone() |
List<Firewall.Allowed> |
getAllowed()
The list of rules specified by this firewall.
|
String |
getCreationTimestamp()
Creation timestamp in RFC3339 text format (output only).
|
String |
getDescription()
An optional textual description of the resource; provided by the client when the resource is
created.
|
BigInteger |
getId()
Unique identifier for the resource; defined by the server (output only).
|
String |
getKind()
Type of the resource.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
String |
getNetwork()
URL of the network to which this firewall is applied; provided by the client when the firewall
is created.
|
String |
getSelfLink()
Server defined URL for the resource (output only).
|
List<String> |
getSourceRanges()
A list of IP address blocks expressed in CIDR format which this rule applies to.
|
List<String> |
getSourceTags()
A list of instance tags which this rule applies to.
|
List<String> |
getTargetTags()
A list of instance tags indicating sets of instances located on network which may make network
connections as specified in allowed.
|
Firewall |
set(String fieldName,
Object value) |
Firewall |
setAllowed(List<Firewall.Allowed> allowed)
The list of rules specified by this firewall.
|
Firewall |
setCreationTimestamp(String creationTimestamp)
Creation timestamp in RFC3339 text format (output only).
|
Firewall |
setDescription(String description)
An optional textual description of the resource; provided by the client when the resource is
created.
|
Firewall |
setId(BigInteger id)
Unique identifier for the resource; defined by the server (output only).
|
Firewall |
setKind(String kind)
Type of the resource.
|
Firewall |
setName(String name)
Name of the resource; provided by the client when the resource is created.
|
Firewall |
setNetwork(String network)
URL of the network to which this firewall is applied; provided by the client when the firewall
is created.
|
Firewall |
setSelfLink(String selfLink)
Server defined URL for the resource (output only).
|
Firewall |
setSourceRanges(List<String> sourceRanges)
A list of IP address blocks expressed in CIDR format which this rule applies to.
|
Firewall |
setSourceTags(List<String> sourceTags)
A list of instance tags which this rule applies to.
|
Firewall |
setTargetTags(List<String> targetTags)
A list of instance tags indicating sets of instances located on network which may make network
connections as specified in allowed.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public List<Firewall.Allowed> getAllowed()
null
for nonepublic Firewall setAllowed(List<Firewall.Allowed> allowed)
allowed
- allowed or null
for nonepublic String getCreationTimestamp()
null
for nonepublic Firewall setCreationTimestamp(String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic String getDescription()
null
for nonepublic Firewall setDescription(String description)
description
- description or null
for nonepublic BigInteger getId()
null
for nonepublic Firewall setId(BigInteger id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic Firewall setKind(String kind)
kind
- kind or null
for nonepublic String getName()
null
for nonepublic Firewall setName(String name)
name
- name or null
for nonepublic String getNetwork()
null
for nonepublic Firewall setNetwork(String network)
network
- network or null
for nonepublic String getSelfLink()
null
for nonepublic Firewall setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic List<String> getSourceRanges()
null
for nonepublic Firewall setSourceRanges(List<String> sourceRanges)
sourceRanges
- sourceRanges or null
for nonepublic List<String> getSourceTags()
null
for nonepublic Firewall setSourceTags(List<String> sourceTags)
sourceTags
- sourceTags or null
for nonepublic List<String> getTargetTags()
null
for nonepublic Firewall setTargetTags(List<String> targetTags)
targetTags
- targetTags or null
for nonepublic Firewall set(String fieldName, Object value)
set
in class GenericJson
public Firewall clone()
clone
in class GenericJson