001package com.box.sdkgen.schemas.v2025r0.archivev2025r0;
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 ArchiveV2025R0OwnedByField extends SerializableObject {
010
011  /** The unique identifier that represents a user who owns the archive. */
012  protected final String id;
013
014  /** The value is always `user`. */
015  protected final String type;
016
017  public ArchiveV2025R0OwnedByField(
018      @JsonProperty("id") String id, @JsonProperty("type") String type) {
019    super();
020    this.id = id;
021    this.type = type;
022  }
023
024  public String getId() {
025    return id;
026  }
027
028  public String getType() {
029    return type;
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    ArchiveV2025R0OwnedByField casted = (ArchiveV2025R0OwnedByField) o;
041    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
042  }
043
044  @Override
045  public int hashCode() {
046    return Objects.hash(id, type);
047  }
048
049  @Override
050  public String toString() {
051    return "ArchiveV2025R0OwnedByField{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
052  }
053}