Class ProjectUser.Builder
-
- All Implemented Interfaces:
public final class ProjectUser.BuilderA builder for ProjectUser.
-
-
Method Summary
Modifier and Type Method Description final ProjectUser.Builderid(String id)The identifier, which can be referenced in API endpoints final ProjectUser.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ProjectUser.BuilderaddedAt(Long addedAt)The Unix timestamp (in seconds) of when the project was added. final ProjectUser.BuilderaddedAt(JsonField<Long> addedAt)Sets Builder.addedAt to an arbitrary JSON value. final ProjectUser.Builderobject_(JsonValue object_)Sets the field to an arbitrary JSON value. final ProjectUser.Builderrole(String role)ownerormemberfinal ProjectUser.Builderrole(JsonField<String> role)Sets Builder.role to an arbitrary JSON value. final ProjectUser.Builderemail(String email)The email address of the user final ProjectUser.Builderemail(Optional<String> email)Alias for calling Builder.email with email.orElse(null).final ProjectUser.Builderemail(JsonField<String> email)Sets Builder.email to an arbitrary JSON value. final ProjectUser.Buildername(String name)The name of the user final ProjectUser.Buildername(Optional<String> name)Alias for calling Builder.name with name.orElse(null).final ProjectUser.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final ProjectUser.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ProjectUser.BuilderputAdditionalProperty(String key, JsonValue value)final ProjectUser.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ProjectUser.BuilderremoveAdditionalProperty(String key)final ProjectUser.BuilderremoveAllAdditionalProperties(Set<String> keys)final ProjectUserbuild()Returns an immutable instance of ProjectUser. -
-
Method Detail
-
id
final ProjectUser.Builder id(String id)
The identifier, which can be referenced in API endpoints
-
id
final ProjectUser.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.
-
addedAt
final ProjectUser.Builder addedAt(Long addedAt)
The Unix timestamp (in seconds) of when the project was added.
-
addedAt
final ProjectUser.Builder addedAt(JsonField<Long> addedAt)
Sets Builder.addedAt to an arbitrary JSON value.
You should usually call Builder.addedAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final ProjectUser.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.project.user")This method is primarily for setting the field to an undocumented or not yet supported value.
-
role
final ProjectUser.Builder role(String role)
ownerormember
-
role
final ProjectUser.Builder role(JsonField<String> role)
Sets Builder.role to an arbitrary JSON value.
You should usually call Builder.role with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
email
final ProjectUser.Builder email(String email)
The email address of the user
-
email
final ProjectUser.Builder email(Optional<String> email)
Alias for calling Builder.email with
email.orElse(null).
-
email
final ProjectUser.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.
-
name
final ProjectUser.Builder name(String name)
The name of the user
-
name
final ProjectUser.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final ProjectUser.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ProjectUser.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ProjectUser.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ProjectUser.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ProjectUser.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ProjectUser.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ProjectUser build()
Returns an immutable instance of ProjectUser.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .addedAt() .role()
-
-
-
-