public static final class NetworkTypes.FilterSpec.Builder
extends java.lang.Object
NetworkTypes.FilterSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
NetworkTypes.FilterSpec . |
Modifier and Type | Method and Description |
---|---|
NetworkTypes.FilterSpec |
build() |
NetworkTypes.FilterSpec.Builder |
setDatacenters(java.util.Set<java.lang.String> datacenters)
Datacenters that must contain the network for the network to match the filter.
|
NetworkTypes.FilterSpec.Builder |
setFolders(java.util.Set<java.lang.String> folders)
Folders that must contain the network for the network to match the filter.
|
NetworkTypes.FilterSpec.Builder |
setNames(java.util.Set<java.lang.String> names)
Names that networks must have to match the filter (see
NetworkTypes.Summary.getName() ). |
NetworkTypes.FilterSpec.Builder |
setNetworks(java.util.Set<java.lang.String> networks)
Identifiers of networks that can match the filter.
|
NetworkTypes.FilterSpec.Builder |
setTypes(java.util.Set<NetworkTypes.Type> types)
Types that networks must have to match the filter (see
NetworkTypes.Summary.getType() ). |
public Builder()
NetworkTypes.FilterSpec
.public NetworkTypes.FilterSpec.Builder setNetworks(java.util.Set<java.lang.String> networks)
null
or empty, networks with any identifier match the filter.networks
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: Network
. When methods return
a value of this class as a return value, the property will contain identifiers
for the resource type: Network
.public NetworkTypes.FilterSpec.Builder setNames(java.util.Set<java.lang.String> names)
NetworkTypes.Summary.getName()
).
If null
or empty, networks with any name match the filter.names
- New value for the property.public NetworkTypes.FilterSpec.Builder setTypes(java.util.Set<NetworkTypes.Type> types)
NetworkTypes.Summary.getType()
).
If null
, networks with any type match the filter.types
- New value for the property.public NetworkTypes.FilterSpec.Builder setFolders(java.util.Set<java.lang.String> folders)
null
or empty, networks in any folder match the filter.folders
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: Folder
. When methods return a
value of this class as a return value, the property will contain identifiers for
the resource type: Folder
.public NetworkTypes.FilterSpec.Builder setDatacenters(java.util.Set<java.lang.String> datacenters)
null
or empty, networks in any datacenter match the filter.datacenters
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: Datacenter
. When methods
return a value of this class as a return value, the property will contain
identifiers for the resource type: Datacenter
.public NetworkTypes.FilterSpec build()