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

com.akeyless.auth.swagger.model.SystemUserCredentialsReplyObj 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;

/**
 * SystemUserCredentialsReplyObj
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-21T16:11:23.052+02:00")
public class SystemUserCredentialsReplyObj {
  @SerializedName("auth_creds")
  private String authCreds = null;

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

  @SerializedName("kfm_creds")
  private String kfmCreds = null;

  @SerializedName("uam_creds")
  private String uamCreds = null;

  public SystemUserCredentialsReplyObj authCreds(String authCreds) {
    this.authCreds = authCreds;
    return this;
  }

   /**
   * Temporary credentials for accessing Auth
   * @return authCreds
  **/
  @ApiModelProperty(value = "Temporary credentials for accessing Auth")
  public String getAuthCreds() {
    return authCreds;
  }

  public void setAuthCreds(String authCreds) {
    this.authCreds = authCreds;
  }

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

   /**
   * Temporary credentials for accessing the KFMs instances
   * @return kfmCreds
  **/
  @ApiModelProperty(value = "Temporary credentials for accessing the KFMs instances")
  public String getKfmCreds() {
    return kfmCreds;
  }

  public void setKfmCreds(String kfmCreds) {
    this.kfmCreds = kfmCreds;
  }

  public SystemUserCredentialsReplyObj uamCreds(String uamCreds) {
    this.uamCreds = uamCreds;
    return this;
  }

   /**
   * Temporary credentials for accessing the UAM service
   * @return uamCreds
  **/
  @ApiModelProperty(value = "Temporary credentials for accessing the UAM service")
  public String getUamCreds() {
    return uamCreds;
  }

  public void setUamCreds(String uamCreds) {
    this.uamCreds = uamCreds;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SystemUserCredentialsReplyObj systemUserCredentialsReplyObj = (SystemUserCredentialsReplyObj) o;
    return Objects.equals(this.authCreds, systemUserCredentialsReplyObj.authCreds) &&
        Objects.equals(this.expiry, systemUserCredentialsReplyObj.expiry) &&
        Objects.equals(this.kfmCreds, systemUserCredentialsReplyObj.kfmCreds) &&
        Objects.equals(this.uamCreds, systemUserCredentialsReplyObj.uamCreds);
  }

  @Override
  public int hashCode() {
    return Objects.hash(authCreds, expiry, kfmCreds, uamCreds);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SystemUserCredentialsReplyObj {\n");
    
    sb.append("    authCreds: ").append(toIndentedString(authCreds)).append("\n");
    sb.append("    expiry: ").append(toIndentedString(expiry)).append("\n");
    sb.append("    kfmCreds: ").append(toIndentedString(kfmCreds)).append("\n");
    sb.append("    uamCreds: ").append(toIndentedString(uamCreds)).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