Modifier and Type | Method and Description |
---|---|
Firewall.Builder |
addAllAllowed(List<Allowed> allowed)
The list of ALLOW rules specified by this firewall.
|
Firewall.Builder |
addAllDenied(List<Denied> denied)
The list of DENY rules specified by this firewall.
|
Firewall.Builder |
addAllDestinationRanges(List<String> destinationRanges)
If destination ranges are specified, the firewall will apply only to traffic that has
destination IP address in these ranges.
|
Firewall.Builder |
addAllowed(Allowed allowed)
The list of ALLOW rules specified by this firewall.
|
Firewall.Builder |
addAllSourceRanges(List<String> sourceRanges)
If source ranges are specified, the firewall will apply only to traffic that has source IP
address in these ranges.
|
Firewall.Builder |
addAllSourceServiceAccounts(List<String> sourceServiceAccounts)
If source service accounts are specified, the firewall will apply only to traffic originating
from an instance with a service account in this list.
|
Firewall.Builder |
addAllSourceTags(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.Builder |
addAllTargetServiceAccounts(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.Builder |
addAllTargetTags(List<String> targetTags)
A list of tags that controls which instances the firewall rule applies to.
|
Firewall.Builder |
addDenied(Denied denied)
The list of DENY rules specified by this firewall.
|
Firewall.Builder |
addDestinationRanges(String destinationRanges)
If destination ranges are specified, the firewall will apply only to traffic that has
destination IP address in these ranges.
|
Firewall.Builder |
addSourceRanges(String sourceRanges)
If source ranges are specified, the firewall will apply only to traffic that has source IP
address in these ranges.
|
Firewall.Builder |
addSourceServiceAccounts(String sourceServiceAccounts)
If source service accounts are specified, the firewall will apply only to traffic originating
from an instance with a service account in this list.
|
Firewall.Builder |
addSourceTags(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.Builder |
addTargetServiceAccounts(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.Builder |
addTargetTags(String targetTags)
A list of tags that controls which instances the firewall rule applies to.
|
Firewall |
build() |
Firewall.Builder |
clone() |
List<Allowed> |
getAllowedList()
The list of ALLOW rules specified by this firewall.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
List<Denied> |
getDeniedList()
The list of DENY rules specified by this firewall.
|
String |
getDescription()
An optional description of this resource.
|
List<String> |
getDestinationRangesList()
If destination ranges are specified, the firewall will apply only to traffic that has
destination IP address in these ranges.
|
String |
getDirection()
Direction of traffic to which this firewall applies; default is INGRESS.
|
Boolean |
getDisabled()
Denotes whether the firewall rule is disabled, i.e not applied to the network it is
associated with.
|
String |
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> |
getSourceRangesList()
If source ranges are specified, the firewall will apply only to traffic that has source IP
address in these ranges.
|
List<String> |
getSourceServiceAccountsList()
If source service accounts are specified, the firewall will apply only to traffic originating
from an instance with a service account in this list.
|
List<String> |
getSourceTagsList()
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> |
getTargetServiceAccountsList()
A list of service accounts indicating sets of instances located in the network that may make
network connections as specified in allowed[].
|
List<String> |
getTargetTagsList()
A list of tags that controls which instances the firewall rule applies to.
|
Firewall.Builder |
mergeFrom(Firewall other) |
Firewall.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Firewall.Builder |
setDescription(String description)
An optional description of this resource.
|
Firewall.Builder |
setDirection(String direction)
Direction of traffic to which this firewall applies; default is INGRESS.
|
Firewall.Builder |
setDisabled(Boolean disabled)
Denotes whether the firewall rule is disabled, i.e not applied to the network it is
associated with.
|
Firewall.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
Firewall.Builder |
setKind(String kind)
[Output Only] Type of the resource.
|
Firewall.Builder |
setLogConfig(FirewallLogConfig logConfig)
This field denotes the logging options for a particular firewall rule.
|
Firewall.Builder |
setName(String name)
Name of the resource; provided by the client when the resource is created.
|
Firewall.Builder |
setNetwork(String network)
URL of the network resource for this firewall rule.
|
Firewall.Builder |
setPriority(Integer priority)
Priority for this rule.
|
Firewall.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
public Firewall.Builder mergeFrom(Firewall other)
public List<Allowed> getAllowedList()
public Firewall.Builder addAllAllowed(List<Allowed> allowed)
public Firewall.Builder addAllowed(Allowed allowed)
public String getCreationTimestamp()
public Firewall.Builder setCreationTimestamp(String creationTimestamp)
public List<Denied> getDeniedList()
public Firewall.Builder addAllDenied(List<Denied> denied)
public Firewall.Builder addDenied(Denied denied)
public String getDescription()
public Firewall.Builder setDescription(String description)
public List<String> getDestinationRangesList()
public Firewall.Builder addAllDestinationRanges(List<String> destinationRanges)
public Firewall.Builder addDestinationRanges(String destinationRanges)
public String getDirection()
public Firewall.Builder setDirection(String direction)
public Boolean getDisabled()
public Firewall.Builder setDisabled(Boolean disabled)
public String getId()
public Firewall.Builder setId(String id)
public String getKind()
public Firewall.Builder setKind(String kind)
public FirewallLogConfig getLogConfig()
public Firewall.Builder setLogConfig(FirewallLogConfig logConfig)
public String getName()
public Firewall.Builder setName(String name)
public String getNetwork()
public Firewall.Builder setNetwork(String network)
public Integer getPriority()
public Firewall.Builder setPriority(Integer priority)
public String getSelfLink()
public Firewall.Builder setSelfLink(String selfLink)
public List<String> getSourceRangesList()
public Firewall.Builder addAllSourceRanges(List<String> sourceRanges)
public Firewall.Builder addSourceRanges(String sourceRanges)
public List<String> getSourceServiceAccountsList()
public Firewall.Builder addAllSourceServiceAccounts(List<String> sourceServiceAccounts)
public Firewall.Builder addSourceServiceAccounts(String sourceServiceAccounts)
public List<String> getSourceTagsList()
public Firewall.Builder addAllSourceTags(List<String> sourceTags)
public Firewall.Builder addSourceTags(String sourceTags)
public List<String> getTargetServiceAccountsList()
public Firewall.Builder addAllTargetServiceAccounts(List<String> targetServiceAccounts)
public Firewall.Builder addTargetServiceAccounts(String targetServiceAccounts)
public List<String> getTargetTagsList()
public Firewall.Builder addAllTargetTags(List<String> targetTags)
public Firewall.Builder addTargetTags(String targetTags)
public Firewall build()
public Firewall.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.