Class InviteCreateParams.Body
-
- All Implemented Interfaces:
public final class InviteCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classInviteCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Stringemail()Send an email to this address final InviteCreateParams.Rolerole()ownerorreaderfinal Optional<List<InviteCreateParams.Project>>projects()An array of projects to which membership is granted at the same time the org invite is accepted. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<InviteCreateParams.Role>_role()Returns the raw JSON value of role. final JsonField<List<InviteCreateParams.Project>>_projects()Returns the raw JSON value of projects. final Map<String, JsonValue>_additionalProperties()final InviteCreateParams.Body.BuildertoBuilder()final InviteCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static InviteCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
role
final InviteCreateParams.Role role()
ownerorreader
-
projects
final Optional<List<InviteCreateParams.Project>> projects()
An array of projects to which membership is granted at the same time the org invite is accepted. If omitted, the user will be invited to the default project for compatibility with legacy behavior. If empty list is passed, the user will not be invited to any projects, including the default one.
-
_email
final JsonField<String> _email()
Returns the raw JSON value of email.
Unlike email, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<InviteCreateParams.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_projects
final JsonField<List<InviteCreateParams.Project>> _projects()
Returns the raw JSON value of projects.
Unlike projects, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final InviteCreateParams.Body.Builder toBuilder()
-
validate
final InviteCreateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static InviteCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.email() .role()
-
-
-
-