public final class Firewall
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Firewall.Allowed
Model definition for FirewallAllowed.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Firewall() |
| Modifier and Type | Method and Description |
|---|---|
Firewall |
clone() |
java.util.List<Firewall.Allowed> |
getAllowed()
The list of rules specified by this firewall.
|
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getKind()
[Output Ony] Type of the resource.
|
java.lang.String |
getName()
Name of the resource; provided by the client when the resource is created.
|
java.lang.String |
getNetwork()
URL of the network resource for this firewall rule.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.util.List<java.lang.String> |
getSourceRanges()
The IP address blocks that this rule applies to, expressed in CIDR format.
|
java.util.List<java.lang.String> |
getSourceTags()
A list of instance tags which this rule applies to.
|
java.util.List<java.lang.String> |
getTargetTags()
A list of instance tags indicating sets of instances located in the network that may make
network connections as specified in allowed[].
|
Firewall |
set(java.lang.String fieldName,
java.lang.Object value) |
Firewall |
setAllowed(java.util.List<Firewall.Allowed> allowed)
The list of rules specified by this firewall.
|
Firewall |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Firewall |
setDescription(java.lang.String description)
An optional description of this resource.
|
Firewall |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
Firewall |
setKind(java.lang.String kind)
[Output Ony] Type of the resource.
|
Firewall |
setName(java.lang.String name)
Name of the resource; provided by the client when the resource is created.
|
Firewall |
setNetwork(java.lang.String network)
URL of the network resource for this firewall rule.
|
Firewall |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
Firewall |
setSourceRanges(java.util.List<java.lang.String> sourceRanges)
The IP address blocks that this rule applies to, expressed in CIDR format.
|
Firewall |
setSourceTags(java.util.List<java.lang.String> sourceTags)
A list of instance tags which this rule applies to.
|
Firewall |
setTargetTags(java.util.List<java.lang.String> targetTags)
A list of instance tags indicating sets of instances located in the network that may make
network connections as specified in allowed[].
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.util.List<Firewall.Allowed> getAllowed()
null for nonepublic Firewall setAllowed(java.util.List<Firewall.Allowed> allowed)
allowed - allowed or null for nonepublic java.lang.String getCreationTimestamp()
null for nonepublic Firewall setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic java.lang.String getDescription()
null for nonepublic Firewall setDescription(java.lang.String description)
description - description or null for nonepublic java.math.BigInteger getId()
null for nonepublic Firewall setId(java.math.BigInteger id)
id - id or null for nonepublic java.lang.String getKind()
null for nonepublic Firewall setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getName()
null for nonepublic Firewall setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getNetwork()
null for nonepublic Firewall setNetwork(java.lang.String network)
network - network or null for nonepublic java.lang.String getSelfLink()
null for nonepublic Firewall setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.util.List<java.lang.String> getSourceRanges()
null for nonepublic Firewall setSourceRanges(java.util.List<java.lang.String> sourceRanges)
sourceRanges - sourceRanges or null for nonepublic java.util.List<java.lang.String> getSourceTags()
null for nonepublic Firewall setSourceTags(java.util.List<java.lang.String> sourceTags)
sourceTags - sourceTags or null for nonepublic java.util.List<java.lang.String> getTargetTags()
null for nonepublic Firewall setTargetTags(java.util.List<java.lang.String> targetTags)
targetTags - targetTags or null for nonepublic Firewall set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Firewall clone()
clone in class com.google.api.client.json.GenericJson