com.ziqni.admin.sdk.model.Space Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces. Change log: 2024-02-27 Added rewards reduced to the LeaderboardEntry response
*
* The version of the OpenAPI document: 3.0.17
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ziqni.admin.sdk.model.ModelDefault;
import com.ziqni.admin.sdk.model.SpaceAllOf;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Space
*/
@JsonPropertyOrder({
Space.JSON_PROPERTY_ID,
Space.JSON_PROPERTY_SPACE_NAME,
Space.JSON_PROPERTY_CREATED,
Space.JSON_PROPERTY_ACCOUNT_TYPE,
Space.JSON_PROPERTY_MASTER_SPACE,
Space.JSON_PROPERTY_BASE_CURRENCY_U_O_M
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Space {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_SPACE_NAME = "spaceName";
private String spaceName;
public static final String JSON_PROPERTY_CREATED = "created";
private OffsetDateTime created;
public static final String JSON_PROPERTY_ACCOUNT_TYPE = "accountType";
private String accountType;
public static final String JSON_PROPERTY_MASTER_SPACE = "masterSpace";
private String masterSpace;
public static final String JSON_PROPERTY_BASE_CURRENCY_U_O_M = "baseCurrencyUOM";
private String baseCurrencyUOM;
public Space id(String id) {
this.id = id;
return this;
}
/**
* A unique system generated identifier
* @return id
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "sc1samQmVr61KgaPQq7x", required = true, value = "A unique system generated identifier")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setId(String id) {
this.id = id;
}
public Space spaceName(String spaceName) {
this.spaceName = spaceName;
return this;
}
/**
* This is the space name which is linked to the account
* @return spaceName
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "Your_space_name", required = true, value = "This is the space name which is linked to the account")
@JsonProperty(JSON_PROPERTY_SPACE_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSpaceName() {
return spaceName;
}
@JsonProperty(JSON_PROPERTY_SPACE_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSpaceName(String spaceName) {
this.spaceName = spaceName;
}
public Space created(OffsetDateTime created) {
this.created = created;
return this;
}
/**
* ISO8601 timestamp for when a Model was created. All records are stored in UTC time zone
* @return created
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "ISO8601 timestamp for when a Model was created. All records are stored in UTC time zone")
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getCreated() {
return created;
}
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreated(OffsetDateTime created) {
this.created = created;
}
public Space accountType(String accountType) {
this.accountType = accountType;
return this;
}
/**
* Type of account; personal or company or vendor
* @return accountType
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "company", required = true, value = "Type of account; personal or company or vendor")
@JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getAccountType() {
return accountType;
}
@JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAccountType(String accountType) {
this.accountType = accountType;
}
public Space masterSpace(String masterSpace) {
this.masterSpace = masterSpace;
return this;
}
/**
* The master account for this account
* @return masterSpace
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "sc1samQmVr61KgaPQq7x", value = "The master account for this account")
@JsonProperty(JSON_PROPERTY_MASTER_SPACE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMasterSpace() {
return masterSpace;
}
@JsonProperty(JSON_PROPERTY_MASTER_SPACE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMasterSpace(String masterSpace) {
this.masterSpace = masterSpace;
}
public Space baseCurrencyUOM(String baseCurrencyUOM) {
this.baseCurrencyUOM = baseCurrencyUOM;
return this;
}
/**
* The base currency used by this accounts
* @return baseCurrencyUOM
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The base currency used by this accounts")
@JsonProperty(JSON_PROPERTY_BASE_CURRENCY_U_O_M)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBaseCurrencyUOM() {
return baseCurrencyUOM;
}
@JsonProperty(JSON_PROPERTY_BASE_CURRENCY_U_O_M)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBaseCurrencyUOM(String baseCurrencyUOM) {
this.baseCurrencyUOM = baseCurrencyUOM;
}
/**
* Return true if this Space object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Space space = (Space) o;
return Objects.equals(this.id, space.id) &&
Objects.equals(this.spaceName, space.spaceName) &&
Objects.equals(this.created, space.created) &&
Objects.equals(this.accountType, space.accountType) &&
Objects.equals(this.masterSpace, space.masterSpace) &&
Objects.equals(this.baseCurrencyUOM, space.baseCurrencyUOM);
}
@Override
public int hashCode() {
return Objects.hash(id, spaceName, created, accountType, masterSpace, baseCurrencyUOM);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Space {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" spaceName: ").append(toIndentedString(spaceName)).append("\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n");
sb.append(" masterSpace: ").append(toIndentedString(masterSpace)).append("\n");
sb.append(" baseCurrencyUOM: ").append(toIndentedString(baseCurrencyUOM)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy