Modifier and Type | Method and Description |
---|---|
Allowed.Builder |
addAllPorts(List<String> ports)
An optional list of ports to which this rule applies.
|
Allowed.Builder |
addPorts(String ports)
An optional list of ports to which this rule applies.
|
Allowed |
build() |
Allowed.Builder |
clone() |
String |
getIPProtocol()
The IP protocol to which this rule applies.
|
List<String> |
getPortsList()
An optional list of ports to which this rule applies.
|
Allowed.Builder |
mergeFrom(Allowed other) |
Allowed.Builder |
setIPProtocol(String iPProtocol)
The IP protocol to which this rule applies.
|
public Allowed.Builder mergeFrom(Allowed other)
public String getIPProtocol()
public Allowed.Builder setIPProtocol(String iPProtocol)
public List<String> getPortsList()
Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
public Allowed.Builder addAllPorts(List<String> ports)
Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
public Allowed.Builder addPorts(String ports)
Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
public Allowed build()
public Allowed.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.