Package com.ironcorelabs.sdk
Class GroupCreateOpts
- java.lang.Object
-
- com.ironcorelabs.sdk.GroupCreateOpts
-
public final class GroupCreateOpts extends java.lang.Object
Options for group creation.
-
-
Constructor Summary
Constructors Constructor Description GroupCreateOpts()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupCreateOpts
create(GroupId id, GroupName name, boolean addAsAdmin, boolean addAsMember, UserId owner, UserId[] admins, UserId[] members, boolean needsRotation)
void
delete()
protected void
finalize()
-
-
-
Method Detail
-
create
public static GroupCreateOpts create(GroupId id, GroupName name, boolean addAsAdmin, boolean addAsMember, UserId owner, UserId[] admins, UserId[] members, boolean needsRotation)
- Parameters:
id
- unique id of a group within a segment. If null, the server will assign an id.name
- human readable name of the group. Does not need to be unique.addAsAdmin
- if true (default), the creating user will be added as a group admin.addAsMember
- if true (default), the creating user will be added to the group's membership.owner
- if null (default), the creating user will be the owner of the group, else the specified user will be the owner and automatically added as an admin.admins
- list of users to be added as admins of the group. This list takes priority over `addAsAdmin`, so the creating user will be added as an admin even if `addAsAdmin` is false.members
- list of users to be added as members of the group. This list takes priority over `addAsMember`, so the creating user will be added as a member even if `addAsMember` is false.needsRotation
- if true, the group will be marked as needing its private key rotated.
-
delete
public void delete()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-