Class Invite.Builder
-
- All Implemented Interfaces:
public final class Invite.BuilderA builder for Invite.
-
-
Method Summary
Modifier and Type Method Description final Invite.Builderid(String id)The identifier, which can be referenced in API endpoints final Invite.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final Invite.BuildercreatedAt(Long createdAt)The Unix timestamp (in seconds) of when the invite was sent. final Invite.BuildercreatedAt(JsonField<Long> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final Invite.Builderemail(String email)The email address of the individual to whom the invite was sent final Invite.Builderemail(JsonField<String> email)Sets Builder.email to an arbitrary JSON value. final Invite.Builderobject_(JsonValue object_)Sets the field to an arbitrary JSON value. final Invite.Builderprojects(List<Invite.Project> projects)The projects that were granted membership upon acceptance of the invite. final Invite.Builderprojects(JsonField<List<Invite.Project>> projects)Sets Builder.projects to an arbitrary JSON value. final Invite.BuilderaddProject(Invite.Project project)Adds a single Project to projects. final Invite.Builderrole(Invite.Role role)ownerorreaderfinal Invite.Builderrole(JsonField<Invite.Role> role)Sets Builder.role to an arbitrary JSON value. final Invite.Builderstatus(Invite.Status status)accepted,expired, orpendingfinal Invite.Builderstatus(JsonField<Invite.Status> status)Sets Builder.status to an arbitrary JSON value. final Invite.BuilderacceptedAt(Long acceptedAt)The Unix timestamp (in seconds) of when the invite was accepted. final Invite.BuilderacceptedAt(Long acceptedAt)Alias for Builder.acceptedAt. final Invite.BuilderacceptedAt(Optional<Long> acceptedAt)Alias for calling Builder.acceptedAt with acceptedAt.orElse(null).final Invite.BuilderacceptedAt(JsonField<Long> acceptedAt)Sets Builder.acceptedAt to an arbitrary JSON value. final Invite.BuilderexpiresAt(Long expiresAt)The Unix timestamp (in seconds) of when the invite expires. final Invite.BuilderexpiresAt(Long expiresAt)Alias for Builder.expiresAt. final Invite.BuilderexpiresAt(Optional<Long> expiresAt)Alias for calling Builder.expiresAt with expiresAt.orElse(null).final Invite.BuilderexpiresAt(JsonField<Long> expiresAt)Sets Builder.expiresAt to an arbitrary JSON value. final Invite.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Invite.BuilderputAdditionalProperty(String key, JsonValue value)final Invite.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Invite.BuilderremoveAdditionalProperty(String key)final Invite.BuilderremoveAllAdditionalProperties(Set<String> keys)final Invitebuild()Returns an immutable instance of Invite. -
-
Method Detail
-
id
final Invite.Builder id(String id)
The identifier, which can be referenced in API endpoints
-
id
final Invite.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final Invite.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) of when the invite was sent.
-
createdAt
final Invite.Builder createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
email
final Invite.Builder email(String email)
The email address of the individual to whom the invite was sent
-
email
final Invite.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.
-
object_
final Invite.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("organization.invite")This method is primarily for setting the field to an undocumented or not yet supported value.
-
projects
final Invite.Builder projects(List<Invite.Project> projects)
The projects that were granted membership upon acceptance of the invite.
-
projects
final Invite.Builder projects(JsonField<List<Invite.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 Invite.Builder addProject(Invite.Project project)
-
role
final Invite.Builder role(Invite.Role role)
ownerorreader
-
role
final Invite.Builder role(JsonField<Invite.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.
-
status
final Invite.Builder status(Invite.Status status)
accepted,expired, orpending
-
status
final Invite.Builder status(JsonField<Invite.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
acceptedAt
final Invite.Builder acceptedAt(Long acceptedAt)
The Unix timestamp (in seconds) of when the invite was accepted.
-
acceptedAt
final Invite.Builder acceptedAt(Long acceptedAt)
Alias for Builder.acceptedAt.
This unboxed primitive overload exists for backwards compatibility.
-
acceptedAt
final Invite.Builder acceptedAt(Optional<Long> acceptedAt)
Alias for calling Builder.acceptedAt with
acceptedAt.orElse(null).
-
acceptedAt
final Invite.Builder acceptedAt(JsonField<Long> acceptedAt)
Sets Builder.acceptedAt to an arbitrary JSON value.
You should usually call Builder.acceptedAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiresAt
final Invite.Builder expiresAt(Long expiresAt)
The Unix timestamp (in seconds) of when the invite expires.
-
expiresAt
final Invite.Builder expiresAt(Long expiresAt)
Alias for Builder.expiresAt.
This unboxed primitive overload exists for backwards compatibility.
-
expiresAt
final Invite.Builder expiresAt(Optional<Long> expiresAt)
Alias for calling Builder.expiresAt with
expiresAt.orElse(null).
-
expiresAt
final Invite.Builder expiresAt(JsonField<Long> expiresAt)
Sets Builder.expiresAt to an arbitrary JSON value.
You should usually call Builder.expiresAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Invite.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Invite.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Invite.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Invite.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Invite.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-