Package org.openapitools.client.model
Class UserOrganization
- java.lang.Object
-
- org.openapitools.client.model.UserOrganization
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class UserOrganization extends Object
UserOrganization
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserOrganization.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_ORGANIZATION_IDstatic StringSERIALIZED_NAME_ROLEstatic StringSERIALIZED_NAME_UPDATED_ATstatic StringSERIALIZED_NAME_USER_ID
-
Constructor Summary
Constructors Constructor Description UserOrganization()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserOrganizationcreatedAt(OffsetDateTime createdAt)booleanequals(Object o)static UserOrganizationfromJson(String jsonString)Create an instance of UserOrganization given an JSON string@NotNull @Valid OffsetDateTimegetCreatedAt()Get createdAt@NotNull @Valid UUIDgetId()Get id@NotNull @Valid UUIDgetOrganizationId()Get organizationId@NotNull IntegergetRole()Get role@NotNull @Valid OffsetDateTimegetUpdatedAt()Get updatedAt@NotNull @Valid UUIDgetUserId()Get userIdinthashCode()UserOrganizationid(UUID id)UserOrganizationorganizationId(UUID organizationId)UserOrganizationrole(Integer role)voidsetCreatedAt(OffsetDateTime createdAt)voidsetId(UUID id)voidsetOrganizationId(UUID organizationId)voidsetRole(Integer role)voidsetUpdatedAt(OffsetDateTime updatedAt)voidsetUserId(UUID userId)StringtoJson()Convert an instance of UserOrganization to an JSON stringStringtoString()UserOrganizationupdatedAt(OffsetDateTime updatedAt)UserOrganizationuserId(UUID userId)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORGANIZATION_ID
public static final String SERIALIZED_NAME_ORGANIZATION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROLE
public static final String SERIALIZED_NAME_ROLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_USER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
createdAt
public UserOrganization createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime getCreatedAt()
Get createdAt- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
id
public UserOrganization id(UUID id)
-
setId
public void setId(UUID id)
-
organizationId
public UserOrganization organizationId(UUID organizationId)
-
getOrganizationId
@Nonnull @NotNull @Valid public @NotNull @Valid UUID getOrganizationId()
Get organizationId- Returns:
- organizationId
-
setOrganizationId
public void setOrganizationId(UUID organizationId)
-
role
public UserOrganization role(Integer role)
-
setRole
public void setRole(Integer role)
-
updatedAt
public UserOrganization updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime getUpdatedAt()
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
userId
public UserOrganization userId(UUID userId)
-
getUserId
@Nonnull @NotNull @Valid public @NotNull @Valid UUID getUserId()
Get userId- Returns:
- userId
-
setUserId
public void setUserId(UUID userId)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to UserOrganization
-
fromJson
public static UserOrganization fromJson(String jsonString) throws IOException
Create an instance of UserOrganization given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UserOrganization
- Throws:
IOException- if the JSON string is invalid with respect to UserOrganization
-
toJson
public String toJson()
Convert an instance of UserOrganization to an JSON string- Returns:
- JSON string
-
-