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

com.wultra.app.onboardingserver.provider.zenid.model.api.SystemNullableSystemDrawingRectangleF Maven / Gradle / Ivy

The newest version!
/*
 * ZenidWeb
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 * 
 *
 * 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.wultra.app.onboardingserver.provider.zenid.model.api;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
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.wultra.app.onboardingserver.provider.zenid.model.api.SystemDrawingPointF;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


import com.wultra.app.onboardingserver.provider.zenid.model.ApiClient;
/**
 * SystemNullableSystemDrawingRectangleF
 */
@JsonPropertyOrder({
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_LOCATION,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_SIZE,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_X,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_Y,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_WIDTH,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_HEIGHT,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_LEFT,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_TOP,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_RIGHT,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_BOTTOM,
  SystemNullableSystemDrawingRectangleF.JSON_PROPERTY_IS_EMPTY
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class SystemNullableSystemDrawingRectangleF {
  public static final String JSON_PROPERTY_LOCATION = "Location";
  private SystemDrawingPointF location;

  public static final String JSON_PROPERTY_SIZE = "Size";
  private String size;

  public static final String JSON_PROPERTY_X = "X";
  private Float X;

  public static final String JSON_PROPERTY_Y = "Y";
  private Float Y;

  public static final String JSON_PROPERTY_WIDTH = "Width";
  private Float width;

  public static final String JSON_PROPERTY_HEIGHT = "Height";
  private Float height;

  public static final String JSON_PROPERTY_LEFT = "Left";
  private Float left;

  public static final String JSON_PROPERTY_TOP = "Top";
  private Float top;

  public static final String JSON_PROPERTY_RIGHT = "Right";
  private Float right;

  public static final String JSON_PROPERTY_BOTTOM = "Bottom";
  private Float bottom;

  public static final String JSON_PROPERTY_IS_EMPTY = "IsEmpty";
  private Boolean isEmpty;

  public SystemNullableSystemDrawingRectangleF() { 
  }

  @JsonCreator
  public SystemNullableSystemDrawingRectangleF(
    @JsonProperty(JSON_PROPERTY_LEFT) Float left, 
    @JsonProperty(JSON_PROPERTY_TOP) Float top, 
    @JsonProperty(JSON_PROPERTY_RIGHT) Float right, 
    @JsonProperty(JSON_PROPERTY_BOTTOM) Float bottom, 
    @JsonProperty(JSON_PROPERTY_IS_EMPTY) Boolean isEmpty
  ) {
  this();
    this.left = left;
    this.top = top;
    this.right = right;
    this.bottom = bottom;
    this.isEmpty = isEmpty;
  }

  public SystemNullableSystemDrawingRectangleF location(SystemDrawingPointF location) {
    this.location = location;
    return this;
  }

  /**
   * Get location
   * @return location
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LOCATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public SystemDrawingPointF getLocation() {
    return location;
  }


  @JsonProperty(JSON_PROPERTY_LOCATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLocation(SystemDrawingPointF location) {
    this.location = location;
  }


  public SystemNullableSystemDrawingRectangleF size(String size) {
    this.size = size;
    return this;
  }

  /**
   * Get size
   * @return size
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_SIZE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getSize() {
    return size;
  }


  @JsonProperty(JSON_PROPERTY_SIZE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setSize(String size) {
    this.size = size;
  }


  public SystemNullableSystemDrawingRectangleF X(Float X) {
    this.X = X;
    return this;
  }

  /**
   * Get X
   * @return X
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_X)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Float getX() {
    return X;
  }


  @JsonProperty(JSON_PROPERTY_X)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setX(Float X) {
    this.X = X;
  }


  public SystemNullableSystemDrawingRectangleF Y(Float Y) {
    this.Y = Y;
    return this;
  }

  /**
   * Get Y
   * @return Y
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_Y)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Float getY() {
    return Y;
  }


  @JsonProperty(JSON_PROPERTY_Y)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setY(Float Y) {
    this.Y = Y;
  }


  public SystemNullableSystemDrawingRectangleF width(Float width) {
    this.width = width;
    return this;
  }

  /**
   * Get width
   * @return width
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_WIDTH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Float getWidth() {
    return width;
  }


  @JsonProperty(JSON_PROPERTY_WIDTH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setWidth(Float width) {
    this.width = width;
  }


  public SystemNullableSystemDrawingRectangleF height(Float height) {
    this.height = height;
    return this;
  }

  /**
   * Get height
   * @return height
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_HEIGHT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Float getHeight() {
    return height;
  }


  @JsonProperty(JSON_PROPERTY_HEIGHT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setHeight(Float height) {
    this.height = height;
  }


  /**
   * Get left
   * @return left
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LEFT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Float getLeft() {
    return left;
  }




  /**
   * Get top
   * @return top
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_TOP)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Float getTop() {
    return top;
  }




  /**
   * Get right
   * @return right
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_RIGHT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Float getRight() {
    return right;
  }




  /**
   * Get bottom
   * @return bottom
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_BOTTOM)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Float getBottom() {
    return bottom;
  }




  /**
   * Get isEmpty
   * @return isEmpty
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_IS_EMPTY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Boolean getIsEmpty() {
    return isEmpty;
  }




  /**
   * Return true if this System.Nullable[System.Drawing.RectangleF] object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SystemNullableSystemDrawingRectangleF systemNullableSystemDrawingRectangleF = (SystemNullableSystemDrawingRectangleF) o;
    return Objects.equals(this.location, systemNullableSystemDrawingRectangleF.location) &&
        Objects.equals(this.size, systemNullableSystemDrawingRectangleF.size) &&
        Objects.equals(this.X, systemNullableSystemDrawingRectangleF.X) &&
        Objects.equals(this.Y, systemNullableSystemDrawingRectangleF.Y) &&
        Objects.equals(this.width, systemNullableSystemDrawingRectangleF.width) &&
        Objects.equals(this.height, systemNullableSystemDrawingRectangleF.height) &&
        Objects.equals(this.left, systemNullableSystemDrawingRectangleF.left) &&
        Objects.equals(this.top, systemNullableSystemDrawingRectangleF.top) &&
        Objects.equals(this.right, systemNullableSystemDrawingRectangleF.right) &&
        Objects.equals(this.bottom, systemNullableSystemDrawingRectangleF.bottom) &&
        Objects.equals(this.isEmpty, systemNullableSystemDrawingRectangleF.isEmpty);
  }

  @Override
  public int hashCode() {
    return Objects.hash(location, size, X, Y, width, height, left, top, right, bottom, isEmpty);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SystemNullableSystemDrawingRectangleF {\n");
    sb.append("    location: ").append(toIndentedString(location)).append("\n");
    sb.append("    size: ").append(toIndentedString(size)).append("\n");
    sb.append("    X: ").append(toIndentedString(X)).append("\n");
    sb.append("    Y: ").append(toIndentedString(Y)).append("\n");
    sb.append("    width: ").append(toIndentedString(width)).append("\n");
    sb.append("    height: ").append(toIndentedString(height)).append("\n");
    sb.append("    left: ").append(toIndentedString(left)).append("\n");
    sb.append("    top: ").append(toIndentedString(top)).append("\n");
    sb.append("    right: ").append(toIndentedString(right)).append("\n");
    sb.append("    bottom: ").append(toIndentedString(bottom)).append("\n");
    sb.append("    isEmpty: ").append(toIndentedString(isEmpty)).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    ");
  }

  /**
   * Convert the instance into URL query string.
   *
   * @return URL query string
   */
  public String toUrlQueryString() {
    return toUrlQueryString(null);
  }

  /**
   * Convert the instance into URL query string.
   *
   * @param prefix prefix of the query string
   * @return URL query string
   */
  public String toUrlQueryString(String prefix) {
    String suffix = "";
    String containerSuffix = "";
    String containerPrefix = "";
    if (prefix == null) {
      // style=form, explode=true, e.g. /pet?name=cat&type=manx
      prefix = "";
    } else {
      // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
      prefix = prefix + "[";
      suffix = "]";
      containerSuffix = "]";
      containerPrefix = "[";
    }

    StringJoiner joiner = new StringJoiner("&");

    // add `Location` to the URL query string
    if (getLocation() != null) {
      joiner.add(getLocation().toUrlQueryString(prefix + "Location" + suffix));
    }

    // add `Size` to the URL query string
    if (getSize() != null) {
      joiner.add(String.format("%sSize%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `X` to the URL query string
    if (getX() != null) {
      joiner.add(String.format("%sX%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getX()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `Y` to the URL query string
    if (getY() != null) {
      joiner.add(String.format("%sY%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getY()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `Width` to the URL query string
    if (getWidth() != null) {
      joiner.add(String.format("%sWidth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWidth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `Height` to the URL query string
    if (getHeight() != null) {
      joiner.add(String.format("%sHeight%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getHeight()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `Left` to the URL query string
    if (getLeft() != null) {
      joiner.add(String.format("%sLeft%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLeft()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `Top` to the URL query string
    if (getTop() != null) {
      joiner.add(String.format("%sTop%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTop()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `Right` to the URL query string
    if (getRight() != null) {
      joiner.add(String.format("%sRight%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRight()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `Bottom` to the URL query string
    if (getBottom() != null) {
      joiner.add(String.format("%sBottom%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBottom()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `IsEmpty` to the URL query string
    if (getIsEmpty() != null) {
      joiner.add(String.format("%sIsEmpty%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIsEmpty()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    return joiner.toString();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy