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: 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.
|
static class |
Firewall.Denied
Model definition for FirewallDenied.
|
GenericData.FlagsAbstractMap.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 ALLOW rules specified by this firewall.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
List<Firewall.Denied> |
getDenied()
The list of DENY rules specified by this firewall.
|
String |
getDescription()
An optional description of this resource.
|
List<String> |
getDestinationRanges()
If destination ranges are specified, the firewall rule applies only to traffic that has
destination IP address in these ranges.
|
String |
getDirection()
Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`.
|
Boolean |
getDisabled()
Denotes whether the firewall rule is disabled.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
FirewallLogConfig |
getLogConfig()
This field denotes the logging options for a particular firewall rule.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
String |
getNetwork()
URL of the network resource for this firewall rule.
|
Integer |
getPriority()
Priority for this rule.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
List<String> |
getSourceRanges()
If source ranges are specified, the firewall rule applies only to traffic that has a source IP
address in these ranges.
|
List<String> |
getSourceServiceAccounts()
If source service accounts are specified, the firewall rules apply only to traffic originating
from an instance with a service account in this list.
|
List<String> |
getSourceTags()
If source tags are specified, the firewall rule applies only to traffic with source IPs that
match the primary network interfaces of VM instances that have the tag and are in the same VPC
network.
|
List<String> |
getTargetServiceAccounts()
A list of service accounts indicating sets of instances located in the network that may make
network connections as specified in allowed[].
|
List<String> |
getTargetTags()
A list of tags that controls which instances the firewall rule applies to.
|
Firewall |
set(String fieldName,
Object value) |
Firewall |
setAllowed(List<Firewall.Allowed> allowed)
The list of ALLOW rules specified by this firewall.
|
Firewall |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Firewall |
setDenied(List<Firewall.Denied> denied)
The list of DENY rules specified by this firewall.
|
Firewall |
setDescription(String description)
An optional description of this resource.
|
Firewall |
setDestinationRanges(List<String> destinationRanges)
If destination ranges are specified, the firewall rule applies only to traffic that has
destination IP address in these ranges.
|
Firewall |
setDirection(String direction)
Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`.
|
Firewall |
setDisabled(Boolean disabled)
Denotes whether the firewall rule is disabled.
|
Firewall |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
Firewall |
setKind(String kind)
[Output Only] Type of the resource.
|
Firewall |
setLogConfig(FirewallLogConfig logConfig)
This field denotes the logging options for a particular firewall rule.
|
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 resource for this firewall rule.
|
Firewall |
setPriority(Integer priority)
Priority for this rule.
|
Firewall |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
Firewall |
setSourceRanges(List<String> sourceRanges)
If source ranges are specified, the firewall rule applies only to traffic that has a source IP
address in these ranges.
|
Firewall |
setSourceServiceAccounts(List<String> sourceServiceAccounts)
If source service accounts are specified, the firewall rules apply only to traffic originating
from an instance with a service account in this list.
|
Firewall |
setSourceTags(List<String> sourceTags)
If source tags are specified, the firewall rule applies only to traffic with source IPs that
match the primary network interfaces of VM instances that have the tag and are in the same VPC
network.
|
Firewall |
setTargetServiceAccounts(List<String> targetServiceAccounts)
A list of service accounts indicating sets of instances located in the network that may make
network connections as specified in allowed[].
|
Firewall |
setTargetTags(List<String> targetTags)
A list of tags that controls which instances the firewall rule applies to.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 List<Firewall.Denied> getDenied()
null for nonepublic Firewall setDenied(List<Firewall.Denied> denied)
denied - denied or null for nonepublic String getDescription()
null for nonepublic Firewall setDescription(String description)
description - description or null for nonepublic List<String> getDestinationRanges()
null for nonepublic Firewall setDestinationRanges(List<String> destinationRanges)
destinationRanges - destinationRanges or null for nonepublic String getDirection()
null for nonepublic Firewall setDirection(String direction)
direction - direction or null for nonepublic Boolean getDisabled()
null for nonepublic Firewall setDisabled(Boolean disabled)
disabled - disabled 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 FirewallLogConfig getLogConfig()
null for nonepublic Firewall setLogConfig(FirewallLogConfig logConfig)
logConfig - logConfig 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 Integer getPriority()
null for nonepublic Firewall setPriority(Integer priority)
priority - priority 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> getSourceServiceAccounts()
null for nonepublic Firewall setSourceServiceAccounts(List<String> sourceServiceAccounts)
sourceServiceAccounts - sourceServiceAccounts or null for nonepublic List<String> getSourceTags()
null for nonepublic Firewall setSourceTags(List<String> sourceTags)
sourceTags - sourceTags or null for nonepublic List<String> getTargetServiceAccounts()
null for nonepublic Firewall setTargetServiceAccounts(List<String> targetServiceAccounts)
targetServiceAccounts - targetServiceAccounts 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 GenericJsonpublic Firewall clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.