001package com.box.sdkgen.schemas.templatesignerinput;
002
003import com.box.sdkgen.internal.NullableFieldTracker;
004import com.box.sdkgen.internal.SerializableObject;
005import com.fasterxml.jackson.annotation.JsonFilter;
006import java.util.Objects;
007
008@JsonFilter("nullablePropertyFilter")
009public class TemplateSignerInputDimensionsField extends SerializableObject {
010
011  /** Relative width to the page the input is on, ranging from 0 to 1. */
012  protected Double width;
013
014  /** Relative height to the page the input is on, ranging from 0 to 1. */
015  protected Double height;
016
017  public TemplateSignerInputDimensionsField() {
018    super();
019  }
020
021  protected TemplateSignerInputDimensionsField(Builder builder) {
022    super();
023    this.width = builder.width;
024    this.height = builder.height;
025    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
026  }
027
028  public Double getWidth() {
029    return width;
030  }
031
032  public Double getHeight() {
033    return height;
034  }
035
036  @Override
037  public boolean equals(Object o) {
038    if (this == o) {
039      return true;
040    }
041    if (o == null || getClass() != o.getClass()) {
042      return false;
043    }
044    TemplateSignerInputDimensionsField casted = (TemplateSignerInputDimensionsField) o;
045    return Objects.equals(width, casted.width) && Objects.equals(height, casted.height);
046  }
047
048  @Override
049  public int hashCode() {
050    return Objects.hash(width, height);
051  }
052
053  @Override
054  public String toString() {
055    return "TemplateSignerInputDimensionsField{"
056        + "width='"
057        + width
058        + '\''
059        + ", "
060        + "height='"
061        + height
062        + '\''
063        + "}";
064  }
065
066  public static class Builder extends NullableFieldTracker {
067
068    protected Double width;
069
070    protected Double height;
071
072    public Builder width(Double width) {
073      this.width = width;
074      return this;
075    }
076
077    public Builder height(Double height) {
078      this.height = height;
079      return this;
080    }
081
082    public TemplateSignerInputDimensionsField build() {
083      return new TemplateSignerInputDimensionsField(this);
084    }
085  }
086}