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

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.net.URI;

@JsonTypeName("iam.instance")
public class IamInstanceData {
   public static final String IAM_INSTANCE = "iam.instance";
   private String name;
   private String tag;
   private String version;
   private URI docsUrl;
   private String skin;
   private boolean skinFromParamAllowed;

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   public URI getDocsUrl() {
      return this.docsUrl;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public boolean isSkinFromParamAllowed() {
      return this.skinFromParamAllowed;
   }

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   public void setDocsUrl(URI docsUrl) {
      this.docsUrl = docsUrl;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public void setSkinFromParamAllowed(boolean skinFromParamAllowed) {
      this.skinFromParamAllowed = skinFromParamAllowed;
   }

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

         if (this.skinFromParamAllowed != other.skinFromParamAllowed) {
            return false;
         }

         Object this$name = this.name;
         Object other$name = other.name;
         if (this$name == null ? other$name == null : this$name.equals(other$name)) {
            Object this$tag = this.tag;
            Object other$tag = other.tag;
            if (this$tag == null ? other$tag == null : this$tag.equals(other$tag)) {
               Object this$version = this.version;
               Object other$version = other.version;
               if (this$version == null ? other$version == null : this$version.equals(other$version)) {
                  Object this$docsUrl = this.docsUrl;
                  Object other$docsUrl = other.docsUrl;
                  if (this$docsUrl == null ? other$docsUrl == null : this$docsUrl.equals(other$docsUrl)) {
                     Object this$skin = this.skin;
                     Object other$skin = other.skin;
                     return this$skin == null ? other$skin == null : this$skin.equals(other$skin);
                  } else {
                     return false;
                  }
               } else {
                  return false;
               }
            } else {
               return false;
            }
         } else {
            return false;
         }
      }
   }

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      result = result * 59 + (this.skinFromParamAllowed ? 79 : 97);
      Object $name = this.name;
      result = result * 59 + ($name == null ? 43 : $name.hashCode());
      Object $tag = this.tag;
      result = result * 59 + ($tag == null ? 43 : $tag.hashCode());
      Object $version = this.version;
      result = result * 59 + ($version == null ? 43 : $version.hashCode());
      Object $docsUrl = this.docsUrl;
      result = result * 59 + ($docsUrl == null ? 43 : $docsUrl.hashCode());
      Object $skin = this.skin;
      return result * 59 + ($skin == null ? 43 : $skin.hashCode());
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "IamInstanceData(name="
         + this.getName()
         + ", tag="
         + this.getTag()
         + ", version="
         + this.getVersion()
         + ", docsUrl="
         + this.getDocsUrl()
         + ", skin="
         + this.getSkin()
         + ", skinFromParamAllowed="
         + this.isSkinFromParamAllowed()
         + ")";
   }

   @SuppressFBWarnings(justification = "generated code")
   public IamInstanceData(String name, String tag, String version, URI docsUrl, String skin, boolean skinFromParamAllowed) {
      this.name = name;
      this.tag = tag;
      this.version = version;
      this.docsUrl = docsUrl;
      this.skin = skin;
      this.skinFromParamAllowed = skinFromParamAllowed;
   }

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