@Beta public final class Firewall extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Firewall.Builder |
static class |
Firewall.Rule
A Firewall rule.
|
Resource.KindcreationTimestamp, description, id, kind, name, selfLink| Modifier | Constructor and Description |
|---|---|
protected |
Firewall(String id,
Date creationTimestamp,
URI selfLink,
String name,
String description,
URI network,
Set<String> sourceRanges,
Set<String> sourceTags,
Set<String> targetTags,
Set<Firewall.Rule> allowed) |
| Modifier and Type | Method and Description |
|---|---|
static Firewall.Builder |
builder() |
Set<Firewall.Rule> |
getAllowed()
Each rule specifies a protocol and port-range tuple that describes a permitted connection.
|
URI |
getNetwork() |
Set<String> |
getSourceRanges()
One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or
the tag of the source matches.
|
Set<String> |
getSourceTags() |
Set<String> |
getTargetTags()
If no targetTags are specified, the firewall rule applies to all instances on the specified network.
|
protected com.google.common.base.Objects.ToStringHelper |
string() |
Firewall.Builder |
toBuilder() |
String |
toString() |
equals, getCreationTimestamp, getDescription, getId, getKind, getName, getSelfLink, hashCode@ConstructorProperties(value={"id","creationTimestamp","selfLink","name","description","network","sourceRanges","sourceTags","targetTags","allowed"}) protected Firewall(String id, Date creationTimestamp, URI selfLink, String name, String description, URI network, Set<String> sourceRanges, Set<String> sourceTags, Set<String> targetTags, Set<Firewall.Rule> allowed)
public URI getNetwork()
public Set<String> getSourceRanges()
public Set<String> getSourceTags()
public Set<String> getTargetTags()
public Set<Firewall.Rule> getAllowed()
protected com.google.common.base.Objects.ToStringHelper string()
public static Firewall.Builder builder()
public Firewall.Builder toBuilder()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.