content: /*
   * Copyright (c) 2020-2025 Airbyte, Inc., all rights reserved.
   */
  
  package io.airbyte.config;
  
  import com.fasterxml.jackson.annotation.JsonAnyGetter;
  import com.fasterxml.jackson.annotation.JsonAnySetter;
  import com.fasterxml.jackson.annotation.JsonIgnore;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyDescription;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  import io.airbyte.commons.version.Version;
  import jakarta.annotation.Generated;
  import java.io.Serializable;
  import java.util.ArrayList;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  import java.util.UUID;
  
  /**
   * ActorDefinitionBreakingChange
   * <p>
   * describes a breaking change for an actor definition
   *
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "actorDefinitionId",
    "version",
    "migrationDocumentationUrl",
    "upgradeDeadline",
    "message",
    "scopedImpact",
    "deadlineAction"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class ActorDefinitionBreakingChange implements Serializable {
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("actorDefinitionId")
    private UUID actorDefinitionId;
    /**
     * semantic version of the actor definition that introduced the breaking change (Required)
     *
     */
    @JsonProperty("version")
    @JsonPropertyDescription("semantic version of the actor definition that introduced the breaking change")
    private Version version;
    /**
     * URL to documentation describing how to migrate to the new version (Required)
     *
     */
    @JsonProperty("migrationDocumentationUrl")
    @JsonPropertyDescription("URL to documentation describing how to migrate to the new version")
    private String migrationDocumentationUrl;
    /**
     * date when the breaking change will be enforced (Required)
     *
     */
    @JsonProperty("upgradeDeadline")
    @JsonPropertyDescription("date when the breaking change will be enforced")
    private String upgradeDeadline;
    /**
     * message describing the breaking change, in markdown (Required)
     *
     */
    @JsonProperty("message")
    @JsonPropertyDescription("message describing the breaking change, in markdown")
    private String message;
    /**
     * List of scopes that are impacted by the breaking change. If not specified, the breaking change
     * cannot be scoped to reduce impact via the supported scope types.
     *
     */
    @JsonProperty("scopedImpact")
    @JsonPropertyDescription("List of scopes that are impacted by the breaking change. If not specified, the breaking change cannot be scoped to reduce impact via the supported scope types.")
    private List<BreakingChangeScope> scopedImpact = new ArrayList<BreakingChangeScope>();
    /**
     * Action to do when the deadline is reached
     *
     */
    @JsonProperty("deadlineAction")
    @JsonPropertyDescription("Action to do when the deadline is reached")
    private String deadlineAction;
    @JsonIgnore
    private final Map<String, Object> additionalProperties = new HashMap<String, Object>();
    private final static long serialVersionUID = -3545253211800705271L;
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("actorDefinitionId")
    public UUID getActorDefinitionId() {
      return actorDefinitionId;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("actorDefinitionId")
    public void setActorDefinitionId(UUID actorDefinitionId) {
      this.actorDefinitionId = actorDefinitionId;
    }
  
    public ActorDefinitionBreakingChange withActorDefinitionId(UUID actorDefinitionId) {
      this.actorDefinitionId = actorDefinitionId;
      return this;
    }
  
    /**
     * semantic version of the actor definition that introduced the breaking change (Required)
     *
     */
    @JsonProperty("version")
    public Version getVersion() {
      return version;
    }
  
    /**
     * semantic version of the actor definition that introduced the breaking change (Required)
     *
     */
    @JsonProperty("version")
    public void setVersion(Version version) {
      this.version = version;
    }
  
    public ActorDefinitionBreakingChange withVersion(Version version) {
      this.version = version;
      return this;
    }
  
    /**
     * URL to documentation describing how to migrate to the new version (Required)
     *
     */
    @JsonProperty("migrationDocumentationUrl")
    public String getMigrationDocumentationUrl() {
      return migrationDocumentationUrl;
    }
  
    /**
     * URL to documentation describing how to migrate to the new version (Required)
     *
     */
    @JsonProperty("migrationDocumentationUrl")
    public void setMigrationDocumentationUrl(String migrationDocumentationUrl) {
      this.migrationDocumentationUrl = migrationDocumentationUrl;
    }
  
    public ActorDefinitionBreakingChange withMigrationDocumentationUrl(String migrationDocumentationUrl) {
      this.migrationDocumentationUrl = migrationDocumentationUrl;
      return this;
    }
  
    /**
     * date when the breaking change will be enforced (Required)
     *
     */
    @JsonProperty("upgradeDeadline")
    public String getUpgradeDeadline() {
      return upgradeDeadline;
    }
  
    /**
     * date when the breaking change will be enforced (Required)
     *
     */
    @JsonProperty("upgradeDeadline")
    public void setUpgradeDeadline(String upgradeDeadline) {
      this.upgradeDeadline = upgradeDeadline;
    }
  
    public ActorDefinitionBreakingChange withUpgradeDeadline(String upgradeDeadline) {
      this.upgradeDeadline = upgradeDeadline;
      return this;
    }
  
    /**
     * message describing the breaking change, in markdown (Required)
     *
     */
    @JsonProperty("message")
    public String getMessage() {
      return message;
    }
  
    /**
     * message describing the breaking change, in markdown (Required)
     *
     */
    @JsonProperty("message")
    public void setMessage(String message) {
      this.message = message;
    }
  
    public ActorDefinitionBreakingChange withMessage(String message) {
      this.message = message;
      return this;
    }
  
    /**
     * List of scopes that are impacted by the breaking change. If not specified, the breaking change
     * cannot be scoped to reduce impact via the supported scope types.
     *
     */
    @JsonProperty("scopedImpact")
    public List<BreakingChangeScope> getScopedImpact() {
      return scopedImpact;
    }
  
    /**
     * List of scopes that are impacted by the breaking change. If not specified, the breaking change
     * cannot be scoped to reduce impact via the supported scope types.
     *
     */
    @JsonProperty("scopedImpact")
    public void setScopedImpact(List<BreakingChangeScope> scopedImpact) {
      this.scopedImpact = scopedImpact;
    }
  
    public ActorDefinitionBreakingChange withScopedImpact(List<BreakingChangeScope> scopedImpact) {
      this.scopedImpact = scopedImpact;
      return this;
    }
  
    /**
     * Action to do when the deadline is reached
     *
     */
    @JsonProperty("deadlineAction")
    public String getDeadlineAction() {
      return deadlineAction;
    }
  
    /**
     * Action to do when the deadline is reached
     *
     */
    @JsonProperty("deadlineAction")
    public void setDeadlineAction(String deadlineAction) {
      this.deadlineAction = deadlineAction;
    }
  
    public ActorDefinitionBreakingChange withDeadlineAction(String deadlineAction) {
      this.deadlineAction = deadlineAction;
      return this;
    }
  
    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
      return this.additionalProperties;
    }
  
    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
    }
  
    public ActorDefinitionBreakingChange withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(ActorDefinitionBreakingChange.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("actorDefinitionId");
      sb.append('=');
      sb.append(((this.actorDefinitionId == null) ? "<null>" : this.actorDefinitionId));
      sb.append(',');
      sb.append("version");
      sb.append('=');
      sb.append(((this.version == null) ? "<null>" : this.version));
      sb.append(',');
      sb.append("migrationDocumentationUrl");
      sb.append('=');
      sb.append(((this.migrationDocumentationUrl == null) ? "<null>" : this.migrationDocumentationUrl));
      sb.append(',');
      sb.append("upgradeDeadline");
      sb.append('=');
      sb.append(((this.upgradeDeadline == null) ? "<null>" : this.upgradeDeadline));
      sb.append(',');
      sb.append("message");
      sb.append('=');
      sb.append(((this.message == null) ? "<null>" : this.message));
      sb.append(',');
      sb.append("scopedImpact");
      sb.append('=');
      sb.append(((this.scopedImpact == null) ? "<null>" : this.scopedImpact));
      sb.append(',');
      sb.append("deadlineAction");
      sb.append('=');
      sb.append(((this.deadlineAction == null) ? "<null>" : this.deadlineAction));
      sb.append(',');
      sb.append("additionalProperties");
      sb.append('=');
      sb.append(((this.additionalProperties == null) ? "<null>" : this.additionalProperties));
      sb.append(',');
      if (sb.charAt((sb.length() - 1)) == ',') {
        sb.setCharAt((sb.length() - 1), ']');
      } else {
        sb.append(']');
      }
      return sb.toString();
    }
  
    @Override
    public int hashCode() {
      int result = 1;
      result = ((result * 31) + ((this.actorDefinitionId == null) ? 0 : this.actorDefinitionId.hashCode()));
      result = ((result * 31) + ((this.scopedImpact == null) ? 0 : this.scopedImpact.hashCode()));
      result = ((result * 31) + ((this.migrationDocumentationUrl == null) ? 0 : this.migrationDocumentationUrl.hashCode()));
      result = ((result * 31) + ((this.additionalProperties == null) ? 0 : this.additionalProperties.hashCode()));
      result = ((result * 31) + ((this.message == null) ? 0 : this.message.hashCode()));
      result = ((result * 31) + ((this.deadlineAction == null) ? 0 : this.deadlineAction.hashCode()));
      result = ((result * 31) + ((this.version == null) ? 0 : this.version.hashCode()));
      result = ((result * 31) + ((this.upgradeDeadline == null) ? 0 : this.upgradeDeadline.hashCode()));
      return result;
    }
  
    @Override
    public boolean equals(Object other) {
      if (other == this) {
        return true;
      }
      if ((other instanceof ActorDefinitionBreakingChange) == false) {
        return false;
      }
      ActorDefinitionBreakingChange rhs = ((ActorDefinitionBreakingChange) other);
      return (((((((((this.actorDefinitionId == rhs.actorDefinitionId)
          || ((this.actorDefinitionId != null) && this.actorDefinitionId.equals(rhs.actorDefinitionId)))
          && ((this.scopedImpact == rhs.scopedImpact) || ((this.scopedImpact != null) && this.scopedImpact.equals(rhs.scopedImpact))))
          && ((this.migrationDocumentationUrl == rhs.migrationDocumentationUrl)
              || ((this.migrationDocumentationUrl != null) && this.migrationDocumentationUrl.equals(rhs.migrationDocumentationUrl))))
          && ((this.additionalProperties == rhs.additionalProperties)
              || ((this.additionalProperties != null) && this.additionalProperties.equals(rhs.additionalProperties))))
          && ((this.message == rhs.message) || ((this.message != null) && this.message.equals(rhs.message))))
          && ((this.deadlineAction == rhs.deadlineAction) || ((this.deadlineAction != null) && this.deadlineAction.equals(rhs.deadlineAction))))
          && ((this.version == rhs.version) || ((this.version != null) && this.version.equals(rhs.version))))
          && ((this.upgradeDeadline == rhs.upgradeDeadline) || ((this.upgradeDeadline != null) && this.upgradeDeadline.equals(rhs.upgradeDeadline))));
    }
  
  }
  