package com.airlock.iam.admin.infrastructure.transfer.response;

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

@JsonTypeName("sms.status")
public class SmsDeliveryStatusData {
   public static final String SMS_DELIVERY_STATUS_TYPE = "sms.status";
   @NotNull
   @Schema(
      description = "The status of the SMS delivery. Possible values are: <ul> <li>unknown</li> <li>pending</li> <li>delivered</li> <li>not_delivered</li> </ul>"
   )
   private String status;

   @SuppressFBWarnings(justification = "generated code")
   public String getStatus() {
      return this.status;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setStatus(String status) {
      this.status = status;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof SmsDeliveryStatusData other)) {
         return false;
      } else {
         if (!other.canEqual(this)) {
            return false;
         }

         Object this$status = this.status;
         Object other$status = other.status;
         return this$status == null ? other$status == null : this$status.equals(other$status);
      }
   }

   @SuppressFBWarnings(justification = "generated code")
   protected boolean canEqual(Object other) {
      return other instanceof SmsDeliveryStatusData;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $status = this.status;
      return result * 59 + ($status == null ? 43 : $status.hashCode());
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "SmsDeliveryStatusData(status=" + this.getStatus() + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public SmsDeliveryStatusData(String status) {
      this.status = status;
   }

   @SuppressFBWarnings(justification = "generated code")
   public SmsDeliveryStatusData() {
   }
}
