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

com.akeyless.auth.swagger.model.SecretAccessCredsReplyObj Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
/*
 * Auth - Application API
 * Auth manages access policies for services that need access policies management for their clients. Auth also issues temporary credentials for the services' clients and validates them for the services
 *
 * OpenAPI spec version: 1.0.2
 * Contact: [email protected]
 *
 * 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.akeyless.auth.swagger.model;

import java.util.Objects;
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;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Temporary access credentials to get an access to the secret key protected fragments from KFM instances together with the KFMs host names and the encrypted secret value.
 */
@ApiModel(description = "Temporary access credentials to get an access to the secret key protected fragments from KFM instances together with the KFMs host names and the encrypted secret value.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-21T16:11:23.052+02:00")
public class SecretAccessCredsReplyObj {
  @SerializedName("KFMsHostsDNSMap")
  private Map kfMsHostsDNSMap = null;

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

  @SerializedName("expiry")
  private Long expiry = null;

  @SerializedName("item_id")
  private Long itemId = null;

  @SerializedName("item_name")
  private String itemName = null;

  @SerializedName("item_type")
  private String itemType = null;

  @SerializedName("item_version")
  private Integer itemVersion = null;

  @SerializedName("protected_key_type")
  private String protectedKeyType = null;

  @SerializedName("restricted_dd")
  private String restrictedDd = null;

  @SerializedName("secret_enc_val")
  private String secretEncVal = null;

  public SecretAccessCredsReplyObj kfMsHostsDNSMap(Map kfMsHostsDNSMap) {
    this.kfMsHostsDNSMap = kfMsHostsDNSMap;
    return this;
  }

  public SecretAccessCredsReplyObj putKfMsHostsDNSMapItem(String key, String kfMsHostsDNSMapItem) {
    if (this.kfMsHostsDNSMap == null) {
      this.kfMsHostsDNSMap = new HashMap();
    }
    this.kfMsHostsDNSMap.put(key, kfMsHostsDNSMapItem);
    return this;
  }

   /**
   * Mapping between the serial number of the key protected fragments and the KFMs hosts DNS in which they are stored
   * @return kfMsHostsDNSMap
  **/
  @ApiModelProperty(value = "Mapping between the serial number of the key protected fragments and the KFMs hosts DNS in which they are stored")
  public Map getKfMsHostsDNSMap() {
    return kfMsHostsDNSMap;
  }

  public void setKfMsHostsDNSMap(Map kfMsHostsDNSMap) {
    this.kfMsHostsDNSMap = kfMsHostsDNSMap;
  }

  public SecretAccessCredsReplyObj credential(String credential) {
    this.credential = credential;
    return this;
  }

   /**
   * Temporary credentials string (JWT format)
   * @return credential
  **/
  @ApiModelProperty(value = "Temporary credentials string (JWT format)")
  public String getCredential() {
    return credential;
  }

  public void setCredential(String credential) {
    this.credential = credential;
  }

  public SecretAccessCredsReplyObj expiry(Long expiry) {
    this.expiry = expiry;
    return this;
  }

   /**
   * Credentials expiration date
   * @return expiry
  **/
  @ApiModelProperty(value = "Credentials expiration date")
  public Long getExpiry() {
    return expiry;
  }

  public void setExpiry(Long expiry) {
    this.expiry = expiry;
  }

  public SecretAccessCredsReplyObj itemId(Long itemId) {
    this.itemId = itemId;
    return this;
  }

   /**
   * Get itemId
   * @return itemId
  **/
  @ApiModelProperty(value = "")
  public Long getItemId() {
    return itemId;
  }

  public void setItemId(Long itemId) {
    this.itemId = itemId;
  }

  public SecretAccessCredsReplyObj itemName(String itemName) {
    this.itemName = itemName;
    return this;
  }

   /**
   * The name, id, version and type of the secret item
   * @return itemName
  **/
  @ApiModelProperty(value = "The name, id, version and type of the secret item")
  public String getItemName() {
    return itemName;
  }

  public void setItemName(String itemName) {
    this.itemName = itemName;
  }

  public SecretAccessCredsReplyObj itemType(String itemType) {
    this.itemType = itemType;
    return this;
  }

   /**
   * Get itemType
   * @return itemType
  **/
  @ApiModelProperty(value = "")
  public String getItemType() {
    return itemType;
  }

  public void setItemType(String itemType) {
    this.itemType = itemType;
  }

  public SecretAccessCredsReplyObj itemVersion(Integer itemVersion) {
    this.itemVersion = itemVersion;
    return this;
  }

   /**
   * Get itemVersion
   * @return itemVersion
  **/
  @ApiModelProperty(value = "")
  public Integer getItemVersion() {
    return itemVersion;
  }

  public void setItemVersion(Integer itemVersion) {
    this.itemVersion = itemVersion;
  }

  public SecretAccessCredsReplyObj protectedKeyType(String protectedKeyType) {
    this.protectedKeyType = protectedKeyType;
    return this;
  }

   /**
   * The protected key type
   * @return protectedKeyType
  **/
  @ApiModelProperty(value = "The protected key type")
  public String getProtectedKeyType() {
    return protectedKeyType;
  }

  public void setProtectedKeyType(String protectedKeyType) {
    this.protectedKeyType = protectedKeyType;
  }

  public SecretAccessCredsReplyObj restrictedDd(String restrictedDd) {
    this.restrictedDd = restrictedDd;
    return this;
  }

   /**
   * Restricted derivation data for the protected key derive operation
   * @return restrictedDd
  **/
  @ApiModelProperty(value = "Restricted derivation data for the protected key derive operation")
  public String getRestrictedDd() {
    return restrictedDd;
  }

  public void setRestrictedDd(String restrictedDd) {
    this.restrictedDd = restrictedDd;
  }

  public SecretAccessCredsReplyObj secretEncVal(String secretEncVal) {
    this.secretEncVal = secretEncVal;
    return this;
  }

   /**
   * The encrypted secret value.
   * @return secretEncVal
  **/
  @ApiModelProperty(value = "The encrypted secret value.")
  public String getSecretEncVal() {
    return secretEncVal;
  }

  public void setSecretEncVal(String secretEncVal) {
    this.secretEncVal = secretEncVal;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SecretAccessCredsReplyObj secretAccessCredsReplyObj = (SecretAccessCredsReplyObj) o;
    return Objects.equals(this.kfMsHostsDNSMap, secretAccessCredsReplyObj.kfMsHostsDNSMap) &&
        Objects.equals(this.credential, secretAccessCredsReplyObj.credential) &&
        Objects.equals(this.expiry, secretAccessCredsReplyObj.expiry) &&
        Objects.equals(this.itemId, secretAccessCredsReplyObj.itemId) &&
        Objects.equals(this.itemName, secretAccessCredsReplyObj.itemName) &&
        Objects.equals(this.itemType, secretAccessCredsReplyObj.itemType) &&
        Objects.equals(this.itemVersion, secretAccessCredsReplyObj.itemVersion) &&
        Objects.equals(this.protectedKeyType, secretAccessCredsReplyObj.protectedKeyType) &&
        Objects.equals(this.restrictedDd, secretAccessCredsReplyObj.restrictedDd) &&
        Objects.equals(this.secretEncVal, secretAccessCredsReplyObj.secretEncVal);
  }

  @Override
  public int hashCode() {
    return Objects.hash(kfMsHostsDNSMap, credential, expiry, itemId, itemName, itemType, itemVersion, protectedKeyType, restrictedDd, secretEncVal);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SecretAccessCredsReplyObj {\n");
    
    sb.append("    kfMsHostsDNSMap: ").append(toIndentedString(kfMsHostsDNSMap)).append("\n");
    sb.append("    credential: ").append(toIndentedString(credential)).append("\n");
    sb.append("    expiry: ").append(toIndentedString(expiry)).append("\n");
    sb.append("    itemId: ").append(toIndentedString(itemId)).append("\n");
    sb.append("    itemName: ").append(toIndentedString(itemName)).append("\n");
    sb.append("    itemType: ").append(toIndentedString(itemType)).append("\n");
    sb.append("    itemVersion: ").append(toIndentedString(itemVersion)).append("\n");
    sb.append("    protectedKeyType: ").append(toIndentedString(protectedKeyType)).append("\n");
    sb.append("    restrictedDd: ").append(toIndentedString(restrictedDd)).append("\n");
    sb.append("    secretEncVal: ").append(toIndentedString(secretEncVal)).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