/*
 * 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.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;
/**
 * Arguments to update certificates from the Auto-TLS truststore
 */
@Schema(description = "Arguments to update certificates from the Auto-TLS truststore")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiUpdateGlobalTruststoreArguments {
  @SerializedName("newCertLocation")
  private String newCertLocation = null;

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

  public ApiUpdateGlobalTruststoreArguments newCertLocation(String newCertLocation) {
    this.newCertLocation = newCertLocation;
    return this;
  }

   /**
   * The location of the new certificate on the disk to be added to the Auto-TLS truststore. PEM format is required. Specify either this or a NewCertContent.
   * @return newCertLocation
  **/
  @Schema(description = "The location of the new certificate on the disk to be added to the Auto-TLS truststore. PEM format is required. Specify either this or a NewCertContent.")
  public String getNewCertLocation() {
    return newCertLocation;
  }

  public void setNewCertLocation(String newCertLocation) {
    this.newCertLocation = newCertLocation;
  }

  public ApiUpdateGlobalTruststoreArguments newCertContent(String newCertContent) {
    this.newCertContent = newCertContent;
    return this;
  }

   /**
   * The content of the new certificate to be added to the Auto-TLS truststore. Specify either this or a NewCertLocation. &lt;br&gt; The certificate, if specified, needs to be a standard PEM-encoded key as a single string, with all line breaks replaced with the line-feed control character &#x27;\\n&#x27;. &lt;br&gt; A value will typically look like the following string: &lt;br&gt; -----BEGIN CERTIFICATE-----\\n[base-64 encoded key]\\n-----END CERTIFICATE----- &lt;br&gt;
   * @return newCertContent
  **/
  @Schema(description = "The content of the new certificate to be added to the Auto-TLS truststore. Specify either this or a NewCertLocation. <br> The certificate, if specified, needs to be a standard PEM-encoded key as a single string, with all line breaks replaced with the line-feed control character '\\n'. <br> A value will typically look like the following string: <br> -----BEGIN CERTIFICATE-----\\n[base-64 encoded key]\\n-----END CERTIFICATE----- <br>")
  public String getNewCertContent() {
    return newCertContent;
  }

  public void setNewCertContent(String newCertContent) {
    this.newCertContent = newCertContent;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiUpdateGlobalTruststoreArguments apiUpdateGlobalTruststoreArguments = (ApiUpdateGlobalTruststoreArguments) o;
    return Objects.equals(this.newCertLocation, apiUpdateGlobalTruststoreArguments.newCertLocation) &&
        Objects.equals(this.newCertContent, apiUpdateGlobalTruststoreArguments.newCertContent);
  }

  @Override
  public int hashCode() {
    return Objects.hash(newCertLocation, newCertContent);
  }


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

}
