/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v57</h1>       <p>Introduced in Cloudera Manager 7.13.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.13.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.cloudera.api.swagger.model;

import java.util.Objects;
import java.util.Arrays;
import com.cloudera.api.swagger.model.ApiHdfsReplicationSourcePath;
import com.cloudera.api.swagger.model.ApiHiveReplicationTableFilters;
import com.cloudera.api.swagger.model.ApiIcebergReplicationTableFilters;
import com.cloudera.api.swagger.model.ApiMapEntry;
import com.cloudera.api.swagger.model.ApiServiceRef;
import com.cloudera.api.swagger.model.IcebergReplicationSafetyValve;
import com.cloudera.api.swagger.model.SourceStorageFilter;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * ApiAtlasReplicationRemoteArgs
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiAtlasReplicationRemoteArgs {
  @SerializedName("sourceService")
  private ApiServiceRef sourceService = null;

  @SerializedName("safetyValvesSource")
  private Map<String, IcebergReplicationSafetyValve> safetyValvesSource = null;

  @SerializedName("altStagingLocation")
  private String altStagingLocation = null;

  @SerializedName("alternateTargetDataRoot")
  private String alternateTargetDataRoot = null;

  @SerializedName("sourceStorageFilter")
  private SourceStorageFilter sourceStorageFilter = null;

  @SerializedName("locationMapping")
  private List<ApiMapEntry> locationMapping = null;

  @SerializedName("policyOptions")
  private Map<String, String> policyOptions = null;

  @SerializedName("stagingDir")
  private String stagingDir = null;

  @SerializedName("matchType")
  private String matchType = null;

  @SerializedName("atlasEntityRegexPattern")
  private String atlasEntityRegexPattern = null;

  @SerializedName("atlasEntityType")
  private List<String> atlasEntityType = null;

  @SerializedName("fetchType")
  private String fetchType = null;

  @SerializedName("skipLineage")
  private Boolean skipLineage = null;

  @SerializedName("atlasChangeMarker")
  private String atlasChangeMarker = null;

  @SerializedName("tableTypeForAtlas")
  private String tableTypeForAtlas = null;

  @SerializedName("hiveReplicationTableFilters")
  private ApiHiveReplicationTableFilters hiveReplicationTableFilters = null;

  @SerializedName("icebergReplicationTableFilters")
  private ApiIcebergReplicationTableFilters icebergReplicationTableFilters = null;

  @SerializedName("hdfsReplicationSourcePath")
  private ApiHdfsReplicationSourcePath hdfsReplicationSourcePath = null;

  public ApiAtlasReplicationRemoteArgs sourceService(ApiServiceRef sourceService) {
    this.sourceService = sourceService;
    return this;
  }

   /**
   * Get sourceService
   * @return sourceService
  **/
  @Schema(description = "")
  public ApiServiceRef getSourceService() {
    return sourceService;
  }

  public void setSourceService(ApiServiceRef sourceService) {
    this.sourceService = sourceService;
  }

  public ApiAtlasReplicationRemoteArgs safetyValvesSource(Map<String, IcebergReplicationSafetyValve> safetyValvesSource) {
    this.safetyValvesSource = safetyValvesSource;
    return this;
  }

  public ApiAtlasReplicationRemoteArgs putSafetyValvesSourceItem(String key, IcebergReplicationSafetyValve safetyValvesSourceItem) {
    if (this.safetyValvesSource == null) {
      this.safetyValvesSource = new HashMap<>();
    }
    this.safetyValvesSource.put(key, safetyValvesSourceItem);
    return this;
  }

   /**
   * Get safetyValvesSource
   * @return safetyValvesSource
  **/
  @Schema(description = "")
  public Map<String, IcebergReplicationSafetyValve> getSafetyValvesSource() {
    return safetyValvesSource;
  }

  public void setSafetyValvesSource(Map<String, IcebergReplicationSafetyValve> safetyValvesSource) {
    this.safetyValvesSource = safetyValvesSource;
  }

  public ApiAtlasReplicationRemoteArgs altStagingLocation(String altStagingLocation) {
    this.altStagingLocation = altStagingLocation;
    return this;
  }

   /**
   * Get altStagingLocation
   * @return altStagingLocation
  **/
  @Schema(description = "")
  public String getAltStagingLocation() {
    return altStagingLocation;
  }

  public void setAltStagingLocation(String altStagingLocation) {
    this.altStagingLocation = altStagingLocation;
  }

  public ApiAtlasReplicationRemoteArgs alternateTargetDataRoot(String alternateTargetDataRoot) {
    this.alternateTargetDataRoot = alternateTargetDataRoot;
    return this;
  }

   /**
   * Get alternateTargetDataRoot
   * @return alternateTargetDataRoot
  **/
  @Schema(description = "")
  public String getAlternateTargetDataRoot() {
    return alternateTargetDataRoot;
  }

  public void setAlternateTargetDataRoot(String alternateTargetDataRoot) {
    this.alternateTargetDataRoot = alternateTargetDataRoot;
  }

  public ApiAtlasReplicationRemoteArgs sourceStorageFilter(SourceStorageFilter sourceStorageFilter) {
    this.sourceStorageFilter = sourceStorageFilter;
    return this;
  }

   /**
   * Get sourceStorageFilter
   * @return sourceStorageFilter
  **/
  @Schema(description = "")
  public SourceStorageFilter getSourceStorageFilter() {
    return sourceStorageFilter;
  }

  public void setSourceStorageFilter(SourceStorageFilter sourceStorageFilter) {
    this.sourceStorageFilter = sourceStorageFilter;
  }

  public ApiAtlasReplicationRemoteArgs locationMapping(List<ApiMapEntry> locationMapping) {
    this.locationMapping = locationMapping;
    return this;
  }

  public ApiAtlasReplicationRemoteArgs addLocationMappingItem(ApiMapEntry locationMappingItem) {
    if (this.locationMapping == null) {
      this.locationMapping = new ArrayList<>();
    }
    this.locationMapping.add(locationMappingItem);
    return this;
  }

   /**
   * Get locationMapping
   * @return locationMapping
  **/
  @Schema(description = "")
  public List<ApiMapEntry> getLocationMapping() {
    return locationMapping;
  }

  public void setLocationMapping(List<ApiMapEntry> locationMapping) {
    this.locationMapping = locationMapping;
  }

  public ApiAtlasReplicationRemoteArgs policyOptions(Map<String, String> policyOptions) {
    this.policyOptions = policyOptions;
    return this;
  }

  public ApiAtlasReplicationRemoteArgs putPolicyOptionsItem(String key, String policyOptionsItem) {
    if (this.policyOptions == null) {
      this.policyOptions = new HashMap<>();
    }
    this.policyOptions.put(key, policyOptionsItem);
    return this;
  }

   /**
   * Get policyOptions
   * @return policyOptions
  **/
  @Schema(description = "")
  public Map<String, String> getPolicyOptions() {
    return policyOptions;
  }

  public void setPolicyOptions(Map<String, String> policyOptions) {
    this.policyOptions = policyOptions;
  }

  public ApiAtlasReplicationRemoteArgs stagingDir(String stagingDir) {
    this.stagingDir = stagingDir;
    return this;
  }

   /**
   * Get stagingDir
   * @return stagingDir
  **/
  @Schema(description = "")
  public String getStagingDir() {
    return stagingDir;
  }

  public void setStagingDir(String stagingDir) {
    this.stagingDir = stagingDir;
  }

  public ApiAtlasReplicationRemoteArgs matchType(String matchType) {
    this.matchType = matchType;
    return this;
  }

   /**
   * Get matchType
   * @return matchType
  **/
  @Schema(description = "")
  public String getMatchType() {
    return matchType;
  }

  public void setMatchType(String matchType) {
    this.matchType = matchType;
  }

  public ApiAtlasReplicationRemoteArgs atlasEntityRegexPattern(String atlasEntityRegexPattern) {
    this.atlasEntityRegexPattern = atlasEntityRegexPattern;
    return this;
  }

   /**
   * Get atlasEntityRegexPattern
   * @return atlasEntityRegexPattern
  **/
  @Schema(description = "")
  public String getAtlasEntityRegexPattern() {
    return atlasEntityRegexPattern;
  }

  public void setAtlasEntityRegexPattern(String atlasEntityRegexPattern) {
    this.atlasEntityRegexPattern = atlasEntityRegexPattern;
  }

  public ApiAtlasReplicationRemoteArgs atlasEntityType(List<String> atlasEntityType) {
    this.atlasEntityType = atlasEntityType;
    return this;
  }

  public ApiAtlasReplicationRemoteArgs addAtlasEntityTypeItem(String atlasEntityTypeItem) {
    if (this.atlasEntityType == null) {
      this.atlasEntityType = new ArrayList<>();
    }
    this.atlasEntityType.add(atlasEntityTypeItem);
    return this;
  }

   /**
   * Get atlasEntityType
   * @return atlasEntityType
  **/
  @Schema(description = "")
  public List<String> getAtlasEntityType() {
    return atlasEntityType;
  }

  public void setAtlasEntityType(List<String> atlasEntityType) {
    this.atlasEntityType = atlasEntityType;
  }

  public ApiAtlasReplicationRemoteArgs fetchType(String fetchType) {
    this.fetchType = fetchType;
    return this;
  }

   /**
   * Get fetchType
   * @return fetchType
  **/
  @Schema(description = "")
  public String getFetchType() {
    return fetchType;
  }

  public void setFetchType(String fetchType) {
    this.fetchType = fetchType;
  }

  public ApiAtlasReplicationRemoteArgs skipLineage(Boolean skipLineage) {
    this.skipLineage = skipLineage;
    return this;
  }

   /**
   * Get skipLineage
   * @return skipLineage
  **/
  @Schema(required = true, description = "")
  public Boolean isSkipLineage() {
    return skipLineage;
  }

  public void setSkipLineage(Boolean skipLineage) {
    this.skipLineage = skipLineage;
  }

  public ApiAtlasReplicationRemoteArgs atlasChangeMarker(String atlasChangeMarker) {
    this.atlasChangeMarker = atlasChangeMarker;
    return this;
  }

   /**
   * Get atlasChangeMarker
   * @return atlasChangeMarker
  **/
  @Schema(description = "")
  public String getAtlasChangeMarker() {
    return atlasChangeMarker;
  }

  public void setAtlasChangeMarker(String atlasChangeMarker) {
    this.atlasChangeMarker = atlasChangeMarker;
  }

  public ApiAtlasReplicationRemoteArgs tableTypeForAtlas(String tableTypeForAtlas) {
    this.tableTypeForAtlas = tableTypeForAtlas;
    return this;
  }

   /**
   * Get tableTypeForAtlas
   * @return tableTypeForAtlas
  **/
  @Schema(description = "")
  public String getTableTypeForAtlas() {
    return tableTypeForAtlas;
  }

  public void setTableTypeForAtlas(String tableTypeForAtlas) {
    this.tableTypeForAtlas = tableTypeForAtlas;
  }

  public ApiAtlasReplicationRemoteArgs hiveReplicationTableFilters(ApiHiveReplicationTableFilters hiveReplicationTableFilters) {
    this.hiveReplicationTableFilters = hiveReplicationTableFilters;
    return this;
  }

   /**
   * Get hiveReplicationTableFilters
   * @return hiveReplicationTableFilters
  **/
  @Schema(description = "")
  public ApiHiveReplicationTableFilters getHiveReplicationTableFilters() {
    return hiveReplicationTableFilters;
  }

  public void setHiveReplicationTableFilters(ApiHiveReplicationTableFilters hiveReplicationTableFilters) {
    this.hiveReplicationTableFilters = hiveReplicationTableFilters;
  }

  public ApiAtlasReplicationRemoteArgs icebergReplicationTableFilters(ApiIcebergReplicationTableFilters icebergReplicationTableFilters) {
    this.icebergReplicationTableFilters = icebergReplicationTableFilters;
    return this;
  }

   /**
   * Get icebergReplicationTableFilters
   * @return icebergReplicationTableFilters
  **/
  @Schema(description = "")
  public ApiIcebergReplicationTableFilters getIcebergReplicationTableFilters() {
    return icebergReplicationTableFilters;
  }

  public void setIcebergReplicationTableFilters(ApiIcebergReplicationTableFilters icebergReplicationTableFilters) {
    this.icebergReplicationTableFilters = icebergReplicationTableFilters;
  }

  public ApiAtlasReplicationRemoteArgs hdfsReplicationSourcePath(ApiHdfsReplicationSourcePath hdfsReplicationSourcePath) {
    this.hdfsReplicationSourcePath = hdfsReplicationSourcePath;
    return this;
  }

   /**
   * Get hdfsReplicationSourcePath
   * @return hdfsReplicationSourcePath
  **/
  @Schema(description = "")
  public ApiHdfsReplicationSourcePath getHdfsReplicationSourcePath() {
    return hdfsReplicationSourcePath;
  }

  public void setHdfsReplicationSourcePath(ApiHdfsReplicationSourcePath hdfsReplicationSourcePath) {
    this.hdfsReplicationSourcePath = hdfsReplicationSourcePath;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiAtlasReplicationRemoteArgs apiAtlasReplicationRemoteArgs = (ApiAtlasReplicationRemoteArgs) o;
    return Objects.equals(this.sourceService, apiAtlasReplicationRemoteArgs.sourceService) &&
        Objects.equals(this.safetyValvesSource, apiAtlasReplicationRemoteArgs.safetyValvesSource) &&
        Objects.equals(this.altStagingLocation, apiAtlasReplicationRemoteArgs.altStagingLocation) &&
        Objects.equals(this.alternateTargetDataRoot, apiAtlasReplicationRemoteArgs.alternateTargetDataRoot) &&
        Objects.equals(this.sourceStorageFilter, apiAtlasReplicationRemoteArgs.sourceStorageFilter) &&
        Objects.equals(this.locationMapping, apiAtlasReplicationRemoteArgs.locationMapping) &&
        Objects.equals(this.policyOptions, apiAtlasReplicationRemoteArgs.policyOptions) &&
        Objects.equals(this.stagingDir, apiAtlasReplicationRemoteArgs.stagingDir) &&
        Objects.equals(this.matchType, apiAtlasReplicationRemoteArgs.matchType) &&
        Objects.equals(this.atlasEntityRegexPattern, apiAtlasReplicationRemoteArgs.atlasEntityRegexPattern) &&
        Objects.equals(this.atlasEntityType, apiAtlasReplicationRemoteArgs.atlasEntityType) &&
        Objects.equals(this.fetchType, apiAtlasReplicationRemoteArgs.fetchType) &&
        Objects.equals(this.skipLineage, apiAtlasReplicationRemoteArgs.skipLineage) &&
        Objects.equals(this.atlasChangeMarker, apiAtlasReplicationRemoteArgs.atlasChangeMarker) &&
        Objects.equals(this.tableTypeForAtlas, apiAtlasReplicationRemoteArgs.tableTypeForAtlas) &&
        Objects.equals(this.hiveReplicationTableFilters, apiAtlasReplicationRemoteArgs.hiveReplicationTableFilters) &&
        Objects.equals(this.icebergReplicationTableFilters, apiAtlasReplicationRemoteArgs.icebergReplicationTableFilters) &&
        Objects.equals(this.hdfsReplicationSourcePath, apiAtlasReplicationRemoteArgs.hdfsReplicationSourcePath);
  }

  @Override
  public int hashCode() {
    return Objects.hash(sourceService, safetyValvesSource, altStagingLocation, alternateTargetDataRoot, sourceStorageFilter, locationMapping, policyOptions, stagingDir, matchType, atlasEntityRegexPattern, atlasEntityType, fetchType, skipLineage, atlasChangeMarker, tableTypeForAtlas, hiveReplicationTableFilters, icebergReplicationTableFilters, hdfsReplicationSourcePath);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiAtlasReplicationRemoteArgs {\n");
    
    sb.append("    sourceService: ").append(toIndentedString(sourceService)).append("\n");
    sb.append("    safetyValvesSource: ").append(toIndentedString(safetyValvesSource)).append("\n");
    sb.append("    altStagingLocation: ").append(toIndentedString(altStagingLocation)).append("\n");
    sb.append("    alternateTargetDataRoot: ").append(toIndentedString(alternateTargetDataRoot)).append("\n");
    sb.append("    sourceStorageFilter: ").append(toIndentedString(sourceStorageFilter)).append("\n");
    sb.append("    locationMapping: ").append(toIndentedString(locationMapping)).append("\n");
    sb.append("    policyOptions: ").append(toIndentedString(policyOptions)).append("\n");
    sb.append("    stagingDir: ").append(toIndentedString(stagingDir)).append("\n");
    sb.append("    matchType: ").append(toIndentedString(matchType)).append("\n");
    sb.append("    atlasEntityRegexPattern: ").append(toIndentedString(atlasEntityRegexPattern)).append("\n");
    sb.append("    atlasEntityType: ").append(toIndentedString(atlasEntityType)).append("\n");
    sb.append("    fetchType: ").append(toIndentedString(fetchType)).append("\n");
    sb.append("    skipLineage: ").append(toIndentedString(skipLineage)).append("\n");
    sb.append("    atlasChangeMarker: ").append(toIndentedString(atlasChangeMarker)).append("\n");
    sb.append("    tableTypeForAtlas: ").append(toIndentedString(tableTypeForAtlas)).append("\n");
    sb.append("    hiveReplicationTableFilters: ").append(toIndentedString(hiveReplicationTableFilters)).append("\n");
    sb.append("    icebergReplicationTableFilters: ").append(toIndentedString(icebergReplicationTableFilters)).append("\n");
    sb.append("    hdfsReplicationSourcePath: ").append(toIndentedString(hdfsReplicationSourcePath)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
