Class BetaSessionWorkData
-
- All Implemented Interfaces:
public final class BetaSessionWorkDataWork data for session work items.
This resource type is used when work represents a session that needs to be executed in a self-hosted environment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaSessionWorkData.BuilderA builder for BetaSessionWorkData.
-
Method Summary
Modifier and Type Method Description final Stringid()Session identifier (e.g., 'session_... final JsonValue_type()Type of work dataExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("session")final JsonField<String>_id()Returns the raw JSON value of id. final Map<String, JsonValue>_additionalProperties()final BetaSessionWorkData.BuildertoBuilder()final BetaSessionWorkDatavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaSessionWorkData.Builderbuilder()Returns a mutable builder for constructing an instance of BetaSessionWorkData. -
-
Method Detail
-
_type
final JsonValue _type()
Type of work data
Expected to always return the following:
JsonValue.from("session")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaSessionWorkData.Builder toBuilder()
-
validate
final BetaSessionWorkData 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 BetaSessionWorkData.Builder builder()
Returns a mutable builder for constructing an instance of BetaSessionWorkData.
The following fields are required:
.id()
-
-
-
-