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