| Modifier and Type | Field and Description |
|---|---|
private boolean |
fromGroup |
private String |
identifier |
private String |
name |
private Set<String> |
users |
| Constructor and Description |
|---|
Builder() |
Builder(Group other)
Initializes the builder with the state of the provided group.
|
| Modifier and Type | Method and Description |
|---|---|
Group.Builder |
addUser(String user)
Adds the given user to the builder's set of users.
|
Group.Builder |
addUsers(Set<String> users)
Adds all users from the provided set to the builder's set of users.
|
Group |
build() |
Group.Builder |
clearUsers()
Clears the builder's set of users so that users is non-null with size 0.
|
Group.Builder |
identifier(String identifier)
Sets the identifier of the builder.
|
Group.Builder |
name(String name)
Sets the name of the builder.
|
Group.Builder |
removeUser(String user)
Removes the given user from the builder's set of users.
|
Group.Builder |
removeUsers(Set<String> users)
Removes all users from the provided set from the builder's set of users.
|
private String identifier
private String name
private final boolean fromGroup
public Builder()
public Builder(Group other)
other - the existing access policy to initialize frompublic Group.Builder identifier(String identifier)
identifier - the identifierIllegalStateException - if this method is called when this builder was constructed from an existing Grouppublic Group.Builder name(String name)
name - the namepublic Group.Builder addUsers(Set<String> users)
users - a set of users to addpublic Group.Builder addUser(String user)
user - the user to addpublic Group.Builder removeUser(String user)
user - the user to removepublic Group.Builder removeUsers(Set<String> users)
users - the users to removepublic Group.Builder clearUsers()
public Group build()
Copyright © 2016 Apache NiFi Project. All rights reserved.