001package com.box.sdkgen.schemas.keywordskillcard; 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 KeywordSkillCardEntriesField extends SerializableObject { 010 011 /** The text of the keyword. */ 012 protected String text; 013 014 public KeywordSkillCardEntriesField() { 015 super(); 016 } 017 018 protected KeywordSkillCardEntriesField(Builder builder) { 019 super(); 020 this.text = builder.text; 021 markNullableFieldsAsSet(builder.getExplicitlySetNullableFields()); 022 } 023 024 public String getText() { 025 return text; 026 } 027 028 @Override 029 public boolean equals(Object o) { 030 if (this == o) { 031 return true; 032 } 033 if (o == null || getClass() != o.getClass()) { 034 return false; 035 } 036 KeywordSkillCardEntriesField casted = (KeywordSkillCardEntriesField) o; 037 return Objects.equals(text, casted.text); 038 } 039 040 @Override 041 public int hashCode() { 042 return Objects.hash(text); 043 } 044 045 @Override 046 public String toString() { 047 return "KeywordSkillCardEntriesField{" + "text='" + text + '\'' + "}"; 048 } 049 050 public static class Builder extends NullableFieldTracker { 051 052 protected String text; 053 054 public Builder text(String text) { 055 this.text = text; 056 return this; 057 } 058 059 public KeywordSkillCardEntriesField build() { 060 return new KeywordSkillCardEntriesField(this); 061 } 062 } 063}