Class InviteCreateParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class InviteCreateParams implements Params
Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classInviteCreateParams.BuilderA builder for InviteCreateParams.
public final classInviteCreateParams.Bodypublic final classInviteCreateParams.Roleownerorreaderpublic final classInviteCreateParams.Project
-
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>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final InviteCreateParams.BuildertoBuilder()final InviteCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static InviteCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of InviteCreateParams. -
-
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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final InviteCreateParams.Builder toBuilder()
-
_body
final InviteCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static InviteCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of InviteCreateParams.
The following fields are required:
.email() .role()
-
-
-
-