Class InviteCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class InviteCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
email
final InviteCreateParams.Body.Builder email(String email)
Send an email to this address
-
email
final InviteCreateParams.Body.Builder email(JsonField<String> email)
Sets Builder.email to an arbitrary JSON value.
You should usually call Builder.email with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
role
final InviteCreateParams.Body.Builder role(InviteCreateParams.Role role)
ownerorreader
-
role
final InviteCreateParams.Body.Builder role(JsonField<InviteCreateParams.Role> role)
Sets Builder.role to an arbitrary JSON value.
You should usually call Builder.role with a well-typed Role value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
projects
final InviteCreateParams.Body.Builder projects(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.
-
projects
final InviteCreateParams.Body.Builder projects(JsonField<List<InviteCreateParams.Project>> projects)
Sets Builder.projects to an arbitrary JSON value.
You should usually call Builder.projects with a well-typed
List<Project>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addProject
final InviteCreateParams.Body.Builder addProject(InviteCreateParams.Project project)
-
additionalProperties
final InviteCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final InviteCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final InviteCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final InviteCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final InviteCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final InviteCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.email() .role()
-
-
-
-