public static final class PolicyRequest.EnvironmentBuilder extends Object
Modifier and Type | Method and Description |
---|---|
PolicyRequest.EnvironmentBuilder |
add(String key,
Collection<String> values)
Adds given values for the given key to the environment.
|
PolicyRequest.EnvironmentBuilder |
add(String key,
String singleValue)
Adds a new singleton entry value to the environment.
|
PolicyRequest.Builder |
build()
Returns a builder containing the environment.
|
PolicyRequest.EnvironmentBuilder |
ip(String address)
Adds the given IP to the environment.
|
public PolicyRequest.EnvironmentBuilder ip(String address)
address
- The IP address to add.EnvironmentBuilder
.public PolicyRequest.EnvironmentBuilder add(String key, String singleValue)
key
- The environment key to set.singleValue
- The value to add.EnvironmentBuilder
.public PolicyRequest.EnvironmentBuilder add(String key, Collection<String> values)
key
- The environment key.values
- The values to add.EnvironmentBuilder
.public PolicyRequest.Builder build()
Copyright 2011-2017 ForgeRock AS.