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