001package com.box.sdkgen.schemas.v2025r0.hubcopyrequestv2025r0; 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/** Request schema for copying a Box Hub. */ 009@JsonFilter("nullablePropertyFilter") 010public class HubCopyRequestV2025R0 extends SerializableObject { 011 012 /** Title of the Box Hub. It cannot be empty and should be less than 50 characters. */ 013 protected String title; 014 015 /** Description of the Box Hub. */ 016 protected String description; 017 018 public HubCopyRequestV2025R0() { 019 super(); 020 } 021 022 protected HubCopyRequestV2025R0(Builder builder) { 023 super(); 024 this.title = builder.title; 025 this.description = builder.description; 026 markNullableFieldsAsSet(builder.getExplicitlySetNullableFields()); 027 } 028 029 public String getTitle() { 030 return title; 031 } 032 033 public String getDescription() { 034 return description; 035 } 036 037 @Override 038 public boolean equals(Object o) { 039 if (this == o) { 040 return true; 041 } 042 if (o == null || getClass() != o.getClass()) { 043 return false; 044 } 045 HubCopyRequestV2025R0 casted = (HubCopyRequestV2025R0) o; 046 return Objects.equals(title, casted.title) && Objects.equals(description, casted.description); 047 } 048 049 @Override 050 public int hashCode() { 051 return Objects.hash(title, description); 052 } 053 054 @Override 055 public String toString() { 056 return "HubCopyRequestV2025R0{" 057 + "title='" 058 + title 059 + '\'' 060 + ", " 061 + "description='" 062 + description 063 + '\'' 064 + "}"; 065 } 066 067 public static class Builder extends NullableFieldTracker { 068 069 protected String title; 070 071 protected String description; 072 073 public Builder title(String title) { 074 this.title = title; 075 return this; 076 } 077 078 public Builder description(String description) { 079 this.description = description; 080 return this; 081 } 082 083 public HubCopyRequestV2025R0 build() { 084 return new HubCopyRequestV2025R0(this); 085 } 086 } 087}