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

Model.InlineResponse2013KeyInformation Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
/*
 * CyberSource Merged Spec
 * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
 *
 * OpenAPI spec version: 0.0.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 Model;

import java.util.Objects;
import java.util.Arrays;
import Model.InlineResponse2013KeyInformationErrorInformation;
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;

/**
 * Egress Key Information 
 */
@ApiModel(description = "Egress Key Information ")

public class InlineResponse2013KeyInformation {
  @SerializedName("provider")
  private String provider = null;

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

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

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

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

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

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

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

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

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

  @SerializedName("errorInformation")
  private InlineResponse2013KeyInformationErrorInformation errorInformation = null;

  public InlineResponse2013KeyInformation provider(String provider) {
    this.provider = provider;
    return this;
  }

   /**
   * Provider name 
   * @return provider
  **/
  @ApiModelProperty(value = "Provider name ")
  public String getProvider() {
    return provider;
  }

  public void setProvider(String provider) {
    this.provider = provider;
  }

  public InlineResponse2013KeyInformation tenant(String tenant) {
    this.tenant = tenant;
    return this;
  }

   /**
   * Tenant name 
   * @return tenant
  **/
  @ApiModelProperty(value = "Tenant name ")
  public String getTenant() {
    return tenant;
  }

  public void setTenant(String tenant) {
    this.tenant = tenant;
  }

  public InlineResponse2013KeyInformation organizationId(String organizationId) {
    this.organizationId = organizationId;
    return this;
  }

   /**
   * Organization Id 
   * @return organizationId
  **/
  @ApiModelProperty(value = "Organization Id ")
  public String getOrganizationId() {
    return organizationId;
  }

  public void setOrganizationId(String organizationId) {
    this.organizationId = organizationId;
  }

  public InlineResponse2013KeyInformation clientKeyId(String clientKeyId) {
    this.clientKeyId = clientKeyId;
    return this;
  }

   /**
   * Client key Id 
   * @return clientKeyId
  **/
  @ApiModelProperty(value = "Client key Id ")
  public String getClientKeyId() {
    return clientKeyId;
  }

  public void setClientKeyId(String clientKeyId) {
    this.clientKeyId = clientKeyId;
  }

  public InlineResponse2013KeyInformation keyId(String keyId) {
    this.keyId = keyId;
    return this;
  }

   /**
   * Key Serial Number 
   * @return keyId
  **/
  @ApiModelProperty(value = "Key Serial Number ")
  public String getKeyId() {
    return keyId;
  }

  public void setKeyId(String keyId) {
    this.keyId = keyId;
  }

  public InlineResponse2013KeyInformation key(String key) {
    this.key = key;
    return this;
  }

   /**
   * Value of the key 
   * @return key
  **/
  @ApiModelProperty(value = "Value of the key ")
  public String getKey() {
    return key;
  }

  public void setKey(String key) {
    this.key = key;
  }

  public InlineResponse2013KeyInformation keyType(String keyType) {
    this.keyType = keyType;
    return this;
  }

   /**
   * Type of the key 
   * @return keyType
  **/
  @ApiModelProperty(value = "Type of the key ")
  public String getKeyType() {
    return keyType;
  }

  public void setKeyType(String keyType) {
    this.keyType = keyType;
  }

  public InlineResponse2013KeyInformation status(String status) {
    this.status = status;
    return this;
  }

   /**
   * The status of the key 
   * @return status
  **/
  @ApiModelProperty(value = "The status of the key ")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public InlineResponse2013KeyInformation expirationDate(String expirationDate) {
    this.expirationDate = expirationDate;
    return this;
  }

   /**
   * The expiration time in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. 
   * @return expirationDate
  **/
  @ApiModelProperty(value = "The expiration time in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ")
  public String getExpirationDate() {
    return expirationDate;
  }

  public void setExpirationDate(String expirationDate) {
    this.expirationDate = expirationDate;
  }

  public InlineResponse2013KeyInformation message(String message) {
    this.message = message;
    return this;
  }

   /**
   * Message in case of failed key 
   * @return message
  **/
  @ApiModelProperty(value = "Message in case of failed key ")
  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public InlineResponse2013KeyInformation errorInformation(InlineResponse2013KeyInformationErrorInformation errorInformation) {
    this.errorInformation = errorInformation;
    return this;
  }

   /**
   * Get errorInformation
   * @return errorInformation
  **/
  @ApiModelProperty(value = "")
  public InlineResponse2013KeyInformationErrorInformation getErrorInformation() {
    return errorInformation;
  }

  public void setErrorInformation(InlineResponse2013KeyInformationErrorInformation errorInformation) {
    this.errorInformation = errorInformation;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InlineResponse2013KeyInformation inlineResponse2013KeyInformation = (InlineResponse2013KeyInformation) o;
    return Objects.equals(this.provider, inlineResponse2013KeyInformation.provider) &&
        Objects.equals(this.tenant, inlineResponse2013KeyInformation.tenant) &&
        Objects.equals(this.organizationId, inlineResponse2013KeyInformation.organizationId) &&
        Objects.equals(this.clientKeyId, inlineResponse2013KeyInformation.clientKeyId) &&
        Objects.equals(this.keyId, inlineResponse2013KeyInformation.keyId) &&
        Objects.equals(this.key, inlineResponse2013KeyInformation.key) &&
        Objects.equals(this.keyType, inlineResponse2013KeyInformation.keyType) &&
        Objects.equals(this.status, inlineResponse2013KeyInformation.status) &&
        Objects.equals(this.expirationDate, inlineResponse2013KeyInformation.expirationDate) &&
        Objects.equals(this.message, inlineResponse2013KeyInformation.message) &&
        Objects.equals(this.errorInformation, inlineResponse2013KeyInformation.errorInformation);
  }

  @Override
  public int hashCode() {
    return Objects.hash(provider, tenant, organizationId, clientKeyId, keyId, key, keyType, status, expirationDate, message, errorInformation);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InlineResponse2013KeyInformation {\n");
    
    if (provider != null) sb.append("    provider: ").append(toIndentedString(provider)).append("\n");
    if (tenant != null) sb.append("    tenant: ").append(toIndentedString(tenant)).append("\n");
    if (organizationId != null) sb.append("    organizationId: ").append(toIndentedString(organizationId)).append("\n");
    if (clientKeyId != null) sb.append("    clientKeyId: ").append(toIndentedString(clientKeyId)).append("\n");
    if (keyId != null) sb.append("    keyId: ").append(toIndentedString(keyId)).append("\n");
    if (key != null) sb.append("    key: ").append(toIndentedString(key)).append("\n");
    if (keyType != null) sb.append("    keyType: ").append(toIndentedString(keyType)).append("\n");
    if (status != null) sb.append("    status: ").append(toIndentedString(status)).append("\n");
    if (expirationDate != null) sb.append("    expirationDate: ").append(toIndentedString(expirationDate)).append("\n");
    if (message != null) sb.append("    message: ").append(toIndentedString(message)).append("\n");
    if (errorInformation != null) sb.append("    errorInformation: ").append(toIndentedString(errorInformation)).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    ");
  }
  
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy