com.svix.models.EndpointMtlsConfigIn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of svix Show documentation
Show all versions of svix Show documentation
Svix webhooks API client and webhook verification library
/*
* 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 ");
}
}