001package com.box.sdkgen.schemas.eventsource; 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 EventSourceClassificationField extends SerializableObject { 010 011 /** The classification's name. */ 012 protected String name; 013 014 public EventSourceClassificationField() { 015 super(); 016 } 017 018 protected EventSourceClassificationField(Builder builder) { 019 super(); 020 this.name = builder.name; 021 markNullableFieldsAsSet(builder.getExplicitlySetNullableFields()); 022 } 023 024 public String getName() { 025 return name; 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 EventSourceClassificationField casted = (EventSourceClassificationField) o; 037 return Objects.equals(name, casted.name); 038 } 039 040 @Override 041 public int hashCode() { 042 return Objects.hash(name); 043 } 044 045 @Override 046 public String toString() { 047 return "EventSourceClassificationField{" + "name='" + name + '\'' + "}"; 048 } 049 050 public static class Builder extends NullableFieldTracker { 051 052 protected String name; 053 054 public Builder name(String name) { 055 this.name = name; 056 return this; 057 } 058 059 public EventSourceClassificationField build() { 060 return new EventSourceClassificationField(this); 061 } 062 } 063}