All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.svix.models.EndpointMtlsConfigIn Maven / Gradle / Ivy

There is a newer version: 1.36.0
Show newest version
/*
 * Svix API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.1.1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.svix.models;

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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * EndpointMtlsConfigIn
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-11T19:05:15.341369Z[Etc/UTC]")
public class EndpointMtlsConfigIn {
  public static final String SERIALIZED_NAME_IDENTITY = "identity";
  @SerializedName(SERIALIZED_NAME_IDENTITY)
  private String identity;

  public static final String SERIALIZED_NAME_SERVER_CA_CERT = "serverCaCert";
  @SerializedName(SERIALIZED_NAME_SERVER_CA_CERT)
  private String serverCaCert;


  public EndpointMtlsConfigIn identity(String identity) {
    
    this.identity = identity;
    return this;
  }

   /**
   * A PEM encoded private key and X509 certificate to identify the webhook sender.
   * @return identity
  **/
  @ApiModelProperty(required = true, value = "A PEM encoded private key and X509 certificate to identify the webhook sender.")

  public String getIdentity() {
    return identity;
  }


  public void setIdentity(String identity) {
    this.identity = identity;
  }


  public EndpointMtlsConfigIn serverCaCert(String serverCaCert) {
    
    this.serverCaCert = serverCaCert;
    return this;
  }

   /**
   * A PEM encoded X509 certificate used to verify the webhook receiver's certificate.
   * @return serverCaCert
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A PEM encoded X509 certificate used to verify the webhook receiver's certificate.")

  public String getServerCaCert() {
    return serverCaCert;
  }


  public void setServerCaCert(String serverCaCert) {
    this.serverCaCert = serverCaCert;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EndpointMtlsConfigIn endpointMtlsConfigIn = (EndpointMtlsConfigIn) o;
    return Objects.equals(this.identity, endpointMtlsConfigIn.identity) &&
        Objects.equals(this.serverCaCert, endpointMtlsConfigIn.serverCaCert);
  }

  @Override
  public int hashCode() {
    return Objects.hash(identity, serverCaCert);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EndpointMtlsConfigIn {\n");
    sb.append("    identity: ").append(toIndentedString(identity)).append("\n");
    sb.append("    serverCaCert: ").append(toIndentedString(serverCaCert)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy