All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ziqni.admin.sdk.model.UpdateSpaceRequest Maven / Gradle / Ivy

There is a newer version: 1.0.21
Show newest version
/*
 * ZIQNI Admin API
 * Ziqni Application Services are used to manage and configure spaces.
 *
 * The version of the OpenAPI document: 3.0.1
 * 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * UpdateSpaceRequest
 */
@JsonPropertyOrder({
  UpdateSpaceRequest.JSON_PROPERTY_ACCOUNT_TYPE,
  UpdateSpaceRequest.JSON_PROPERTY_MASTER_SPACE,
  UpdateSpaceRequest.JSON_PROPERTY_UNITS_OF_MEASURE,
  UpdateSpaceRequest.JSON_PROPERTY_CONSTRAINTS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UpdateSpaceRequest {
  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_UNITS_OF_MEASURE = "unitsOfMeasure";
  private List unitsOfMeasure = null;

  public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
  private List constraints = null;


  public UpdateSpaceRequest accountType(String accountType) {
    this.accountType = accountType;
    return this;
  }

   /**
   * Type of account; personal or company or vendor
   * @return accountType
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "company", value = "Type of account; personal or company or vendor")
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getAccountType() {
    return accountType;
  }


  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAccountType(String accountType) {
    this.accountType = accountType;
  }


  public UpdateSpaceRequest 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 UpdateSpaceRequest unitsOfMeasure(List unitsOfMeasure) {
    this.unitsOfMeasure = unitsOfMeasure;
    return this;
  }

  public UpdateSpaceRequest addUnitsOfMeasureItem(String unitsOfMeasureItem) {
    if (this.unitsOfMeasure == null) {
      this.unitsOfMeasure = new ArrayList<>();
    }
    this.unitsOfMeasure.add(unitsOfMeasureItem);
    return this;
  }

   /**
   * Foreign key to unit of measure id.
   * @return unitsOfMeasure
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Foreign key to unit of measure id.")
  @JsonProperty(JSON_PROPERTY_UNITS_OF_MEASURE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getUnitsOfMeasure() {
    return unitsOfMeasure;
  }


  @JsonProperty(JSON_PROPERTY_UNITS_OF_MEASURE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setUnitsOfMeasure(List unitsOfMeasure) {
    this.unitsOfMeasure = unitsOfMeasure;
  }


  public UpdateSpaceRequest constraints(List constraints) {
    this.constraints = constraints;
    return this;
  }

  public UpdateSpaceRequest addConstraintsItem(String constraintsItem) {
    if (this.constraints == null) {
      this.constraints = new ArrayList<>();
    }
    this.constraints.add(constraintsItem);
    return this;
  }

   /**
   * Additional constraints, if set means true
   * @return constraints
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "- wysiwygEditor", value = "Additional constraints, if set means true")
  @JsonProperty(JSON_PROPERTY_CONSTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getConstraints() {
    return constraints;
  }


  @JsonProperty(JSON_PROPERTY_CONSTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setConstraints(List constraints) {
    this.constraints = constraints;
  }


  /**
   * Return true if this UpdateSpaceRequest object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateSpaceRequest updateSpaceRequest = (UpdateSpaceRequest) o;
    return Objects.equals(this.accountType, updateSpaceRequest.accountType) &&
        Objects.equals(this.masterSpace, updateSpaceRequest.masterSpace) &&
        Objects.equals(this.unitsOfMeasure, updateSpaceRequest.unitsOfMeasure) &&
        Objects.equals(this.constraints, updateSpaceRequest.constraints);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountType, masterSpace, unitsOfMeasure, constraints);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateSpaceRequest {\n");
    sb.append("    accountType: ").append(toIndentedString(accountType)).append("\n");
    sb.append("    masterSpace: ").append(toIndentedString(masterSpace)).append("\n");
    sb.append("    unitsOfMeasure: ").append(toIndentedString(unitsOfMeasure)).append("\n");
    sb.append("    constraints: ").append(toIndentedString(constraints)).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 - 2024 Weber Informatics LLC | Privacy Policy