001package com.box.sdkgen.managers.folders; 002 003import com.box.sdkgen.internal.SerializableObject; 004import com.fasterxml.jackson.annotation.JsonFilter; 005import com.fasterxml.jackson.annotation.JsonProperty; 006import java.util.Objects; 007 008@JsonFilter("nullablePropertyFilter") 009public class CreateFolderRequestBodyParentField extends SerializableObject { 010 011 /** The ID of parent folder. */ 012 protected final String id; 013 014 public CreateFolderRequestBodyParentField(@JsonProperty("id") String id) { 015 super(); 016 this.id = id; 017 } 018 019 public String getId() { 020 return id; 021 } 022 023 @Override 024 public boolean equals(Object o) { 025 if (this == o) { 026 return true; 027 } 028 if (o == null || getClass() != o.getClass()) { 029 return false; 030 } 031 CreateFolderRequestBodyParentField casted = (CreateFolderRequestBodyParentField) o; 032 return Objects.equals(id, casted.id); 033 } 034 035 @Override 036 public int hashCode() { 037 return Objects.hash(id); 038 } 039 040 @Override 041 public String toString() { 042 return "CreateFolderRequestBodyParentField{" + "id='" + id + '\'' + "}"; 043 } 044}