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

com.volcengine.kms.model.GetParametersForImportResponse Maven / Gradle / Ivy

There is a newer version: 0.1.136
Show newest version
/*
 * kms
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: common-version
 * 
 *
 * 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.volcengine.kms.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;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * GetParametersForImportResponse
 */



public class GetParametersForImportResponse extends com.volcengine.model.AbstractResponse {
  @SerializedName("ImportToken")
  private String importToken = null;

  @SerializedName("KeyID")
  private String keyID = null;

  @SerializedName("KeyringID")
  private String keyringID = null;

  @SerializedName("PublicKey")
  private String publicKey = null;

  @SerializedName("TokenExpireTime")
  private String tokenExpireTime = null;

  public GetParametersForImportResponse importToken(String importToken) {
    this.importToken = importToken;
    return this;
  }

   /**
   * Get importToken
   * @return importToken
  **/
  @Schema(description = "")
  public String getImportToken() {
    return importToken;
  }

  public void setImportToken(String importToken) {
    this.importToken = importToken;
  }

  public GetParametersForImportResponse keyID(String keyID) {
    this.keyID = keyID;
    return this;
  }

   /**
   * Get keyID
   * @return keyID
  **/
  @Schema(description = "")
  public String getKeyID() {
    return keyID;
  }

  public void setKeyID(String keyID) {
    this.keyID = keyID;
  }

  public GetParametersForImportResponse keyringID(String keyringID) {
    this.keyringID = keyringID;
    return this;
  }

   /**
   * Get keyringID
   * @return keyringID
  **/
  @Schema(description = "")
  public String getKeyringID() {
    return keyringID;
  }

  public void setKeyringID(String keyringID) {
    this.keyringID = keyringID;
  }

  public GetParametersForImportResponse publicKey(String publicKey) {
    this.publicKey = publicKey;
    return this;
  }

   /**
   * Get publicKey
   * @return publicKey
  **/
  @Schema(description = "")
  public String getPublicKey() {
    return publicKey;
  }

  public void setPublicKey(String publicKey) {
    this.publicKey = publicKey;
  }

  public GetParametersForImportResponse tokenExpireTime(String tokenExpireTime) {
    this.tokenExpireTime = tokenExpireTime;
    return this;
  }

   /**
   * Get tokenExpireTime
   * @return tokenExpireTime
  **/
  @Schema(description = "")
  public String getTokenExpireTime() {
    return tokenExpireTime;
  }

  public void setTokenExpireTime(String tokenExpireTime) {
    this.tokenExpireTime = tokenExpireTime;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetParametersForImportResponse getParametersForImportResponse = (GetParametersForImportResponse) o;
    return Objects.equals(this.importToken, getParametersForImportResponse.importToken) &&
        Objects.equals(this.keyID, getParametersForImportResponse.keyID) &&
        Objects.equals(this.keyringID, getParametersForImportResponse.keyringID) &&
        Objects.equals(this.publicKey, getParametersForImportResponse.publicKey) &&
        Objects.equals(this.tokenExpireTime, getParametersForImportResponse.tokenExpireTime);
  }

  @Override
  public int hashCode() {
    return Objects.hash(importToken, keyID, keyringID, publicKey, tokenExpireTime);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetParametersForImportResponse {\n");
    
    sb.append("    importToken: ").append(toIndentedString(importToken)).append("\n");
    sb.append("    keyID: ").append(toIndentedString(keyID)).append("\n");
    sb.append("    keyringID: ").append(toIndentedString(keyringID)).append("\n");
    sb.append("    publicKey: ").append(toIndentedString(publicKey)).append("\n");
    sb.append("    tokenExpireTime: ").append(toIndentedString(tokenExpireTime)).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 - 2024 Weber Informatics LLC | Privacy Policy