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

Model.Kmsegressv2keyssymKeyInformation 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 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 Request 
 */
@ApiModel(description = "Egress Key Information Request ")

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

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

  @SerializedName("keyType")
  private String keyType = 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("status")
  private String status = null;

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

  public Kmsegressv2keyssymKeyInformation 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 Kmsegressv2keyssymKeyInformation 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 Kmsegressv2keyssymKeyInformation 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 Kmsegressv2keyssymKeyInformation 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 Kmsegressv2keyssymKeyInformation 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 Kmsegressv2keyssymKeyInformation 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 Kmsegressv2keyssymKeyInformation 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 Kmsegressv2keyssymKeyInformation 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 Kmsegressv2keyssymKeyInformation expiryDuration(String expiryDuration) {
    this.expiryDuration = expiryDuration;
    return this;
  }

   /**
   * Key expiry duration in days 
   * @return expiryDuration
  **/
  @ApiModelProperty(value = "Key expiry duration in days ")
  public String getExpiryDuration() {
    return expiryDuration;
  }

  public void setExpiryDuration(String expiryDuration) {
    this.expiryDuration = expiryDuration;
  }


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

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


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Kmsegressv2keyssymKeyInformation {\n");
    
    if (provider != null) sb.append("    provider: ").append(toIndentedString(provider)).append("\n");
    if (tenant != null) sb.append("    tenant: ").append(toIndentedString(tenant)).append("\n");
    if (keyType != null) sb.append("    keyType: ").append(toIndentedString(keyType)).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 (status != null) sb.append("    status: ").append(toIndentedString(status)).append("\n");
    if (expiryDuration != null) sb.append("    expiryDuration: ").append(toIndentedString(expiryDuration)).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