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