001package com.box.sdkgen.managers.folderlocks;
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 CreateFolderLockRequestBodyFolderField extends SerializableObject {
010
011  /** The content type the lock is being applied to. Only `folder` is supported. */
012  protected final String type;
013
014  /** The ID of the folder. */
015  protected final String id;
016
017  public CreateFolderLockRequestBodyFolderField(
018      @JsonProperty("type") String type, @JsonProperty("id") String id) {
019    super();
020    this.type = type;
021    this.id = id;
022  }
023
024  public String getType() {
025    return type;
026  }
027
028  public String getId() {
029    return id;
030  }
031
032  @Override
033  public boolean equals(Object o) {
034    if (this == o) {
035      return true;
036    }
037    if (o == null || getClass() != o.getClass()) {
038      return false;
039    }
040    CreateFolderLockRequestBodyFolderField casted = (CreateFolderLockRequestBodyFolderField) o;
041    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
042  }
043
044  @Override
045  public int hashCode() {
046    return Objects.hash(type, id);
047  }
048
049  @Override
050  public String toString() {
051    return "CreateFolderLockRequestBodyFolderField{"
052        + "type='"
053        + type
054        + '\''
055        + ", "
056        + "id='"
057        + id
058        + '\''
059        + "}";
060  }
061}