/*
 * 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.ApiMapEntry;
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.List;
/**
 * A host endPoint for a service.
 */
@Schema(description = "A host endPoint for a service.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiEndPointHost {
  @SerializedName("uri")
  private String uri = null;

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

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

  public ApiEndPointHost uri(String uri) {
    this.uri = uri;
    return this;
  }

   /**
   * Uri for the endPoint.
   * @return uri
  **/
  @Schema(description = "Uri for the endPoint.")
  public String getUri() {
    return uri;
  }

  public void setUri(String uri) {
    this.uri = uri;
  }

  public ApiEndPointHost endPointConfigs(List<ApiMapEntry> endPointConfigs) {
    this.endPointConfigs = endPointConfigs;
    return this;
  }

  public ApiEndPointHost addEndPointConfigsItem(ApiMapEntry endPointConfigsItem) {
    if (this.endPointConfigs == null) {
      this.endPointConfigs = new ArrayList<>();
    }
    this.endPointConfigs.add(endPointConfigsItem);
    return this;
  }

   /**
   * EndPointHost specific configs.
   * @return endPointConfigs
  **/
  @Schema(description = "EndPointHost specific configs.")
  public List<ApiMapEntry> getEndPointConfigs() {
    return endPointConfigs;
  }

  public void setEndPointConfigs(List<ApiMapEntry> endPointConfigs) {
    this.endPointConfigs = endPointConfigs;
  }

  public ApiEndPointHost type(String type) {
    this.type = type;
    return this;
  }

   /**
   * Get endPointHost type.
   * @return type
  **/
  @Schema(description = "Get endPointHost type.")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiEndPointHost apiEndPointHost = (ApiEndPointHost) o;
    return Objects.equals(this.uri, apiEndPointHost.uri) &&
        Objects.equals(this.endPointConfigs, apiEndPointHost.endPointConfigs) &&
        Objects.equals(this.type, apiEndPointHost.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(uri, endPointConfigs, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiEndPointHost {\n");
    
    sb.append("    uri: ").append(toIndentedString(uri)).append("\n");
    sb.append("    endPointConfigs: ").append(toIndentedString(endPointConfigs)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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    ");
  }

}
