001package com.box.sdkgen.schemas.filefull; 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 FileFullRepresentationsEntriesPropertiesField extends SerializableObject { 010 011 /** The width by height size of this representation in pixels. */ 012 protected String dimensions; 013 014 /** Indicates if the representation is build up out of multiple pages. */ 015 protected String paged; 016 017 /** Indicates if the representation can be used as a thumbnail of the file. */ 018 protected String thumb; 019 020 public FileFullRepresentationsEntriesPropertiesField() { 021 super(); 022 } 023 024 protected FileFullRepresentationsEntriesPropertiesField(Builder builder) { 025 super(); 026 this.dimensions = builder.dimensions; 027 this.paged = builder.paged; 028 this.thumb = builder.thumb; 029 markNullableFieldsAsSet(builder.getExplicitlySetNullableFields()); 030 } 031 032 public String getDimensions() { 033 return dimensions; 034 } 035 036 public String getPaged() { 037 return paged; 038 } 039 040 public String getThumb() { 041 return thumb; 042 } 043 044 @Override 045 public boolean equals(Object o) { 046 if (this == o) { 047 return true; 048 } 049 if (o == null || getClass() != o.getClass()) { 050 return false; 051 } 052 FileFullRepresentationsEntriesPropertiesField casted = 053 (FileFullRepresentationsEntriesPropertiesField) o; 054 return Objects.equals(dimensions, casted.dimensions) 055 && Objects.equals(paged, casted.paged) 056 && Objects.equals(thumb, casted.thumb); 057 } 058 059 @Override 060 public int hashCode() { 061 return Objects.hash(dimensions, paged, thumb); 062 } 063 064 @Override 065 public String toString() { 066 return "FileFullRepresentationsEntriesPropertiesField{" 067 + "dimensions='" 068 + dimensions 069 + '\'' 070 + ", " 071 + "paged='" 072 + paged 073 + '\'' 074 + ", " 075 + "thumb='" 076 + thumb 077 + '\'' 078 + "}"; 079 } 080 081 public static class Builder extends NullableFieldTracker { 082 083 protected String dimensions; 084 085 protected String paged; 086 087 protected String thumb; 088 089 public Builder dimensions(String dimensions) { 090 this.dimensions = dimensions; 091 return this; 092 } 093 094 public Builder paged(String paged) { 095 this.paged = paged; 096 return this; 097 } 098 099 public Builder thumb(String thumb) { 100 this.thumb = thumb; 101 return this; 102 } 103 104 public FileFullRepresentationsEntriesPropertiesField build() { 105 return new FileFullRepresentationsEntriesPropertiesField(this); 106 } 107 } 108}