public final class FirewallRule
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 App Engine Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
FirewallRule() |
Modifier and Type | Method and Description |
---|---|
FirewallRule |
clone() |
java.lang.String |
getAction()
The action to take on matched requests.
|
java.lang.String |
getDescription()
An optional string description of this rule.
|
java.lang.Integer |
getPriority()
A positive integer between 1, Int32.MaxValue-1 that defines the order of rule evaluation.
|
java.lang.String |
getSourceRange()
IP address or range, defined using CIDR notation, of requests that this rule applies to.
|
FirewallRule |
set(java.lang.String fieldName,
java.lang.Object value) |
FirewallRule |
setAction(java.lang.String action)
The action to take on matched requests.
|
FirewallRule |
setDescription(java.lang.String description)
An optional string description of this rule.
|
FirewallRule |
setPriority(java.lang.Integer priority)
A positive integer between 1, Int32.MaxValue-1 that defines the order of rule evaluation.
|
FirewallRule |
setSourceRange(java.lang.String sourceRange)
IP address or range, defined using CIDR notation, of requests that this rule applies to.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAction()
null
for nonepublic FirewallRule setAction(java.lang.String action)
action
- action or null
for nonepublic java.lang.String getDescription()
null
for nonepublic FirewallRule setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.Integer getPriority()
null
for nonepublic FirewallRule setPriority(java.lang.Integer priority)
priority
- priority or null
for nonepublic java.lang.String getSourceRange()
null
for nonepublic FirewallRule setSourceRange(java.lang.String sourceRange)
sourceRange
- sourceRange or null
for nonepublic FirewallRule set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public FirewallRule clone()
clone
in class com.google.api.client.json.GenericJson