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

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

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

  @SerializedName("account_admin_user_phone")
  private String accountAdminUserPhone = null;

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

  @SerializedName("policy_rules_type")
  private String policyRulesType = null;

  @SerializedName("rules")
  private PolicyRules rules = null;

  public CreateAccountCredsParams accountAdminUserEmail(String accountAdminUserEmail) {
    this.accountAdminUserEmail = accountAdminUserEmail;
    return this;
  }

   /**
   * Account admin user email
   * @return accountAdminUserEmail
  **/
  @ApiModelProperty(value = "Account admin user email")
  public String getAccountAdminUserEmail() {
    return accountAdminUserEmail;
  }

  public void setAccountAdminUserEmail(String accountAdminUserEmail) {
    this.accountAdminUserEmail = accountAdminUserEmail;
  }

  public CreateAccountCredsParams accountAdminUserPhone(String accountAdminUserPhone) {
    this.accountAdminUserPhone = accountAdminUserPhone;
    return this;
  }

   /**
   * Account admin user phone
   * @return accountAdminUserPhone
  **/
  @ApiModelProperty(value = "Account admin user phone")
  public String getAccountAdminUserPhone() {
    return accountAdminUserPhone;
  }

  public void setAccountAdminUserPhone(String accountAdminUserPhone) {
    this.accountAdminUserPhone = accountAdminUserPhone;
  }

  public CreateAccountCredsParams expires(Long expires) {
    this.expires = expires;
    return this;
  }

   /**
   * Policy expiration date (Unix timestamp).
   * @return expires
  **/
  @ApiModelProperty(value = "Policy expiration date (Unix timestamp).")
  public Long getExpires() {
    return expires;
  }

  public void setExpires(Long expires) {
    this.expires = expires;
  }

  public CreateAccountCredsParams policyRulesType(String policyRulesType) {
    this.policyRulesType = policyRulesType;
    return this;
  }

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

  public void setPolicyRulesType(String policyRulesType) {
    this.policyRulesType = policyRulesType;
  }

  public CreateAccountCredsParams rules(PolicyRules rules) {
    this.rules = rules;
    return this;
  }

   /**
   * Get rules
   * @return rules
  **/
  @ApiModelProperty(value = "")
  public PolicyRules getRules() {
    return rules;
  }

  public void setRules(PolicyRules rules) {
    this.rules = rules;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreateAccountCredsParams createAccountCredsParams = (CreateAccountCredsParams) o;
    return Objects.equals(this.accountAdminUserEmail, createAccountCredsParams.accountAdminUserEmail) &&
        Objects.equals(this.accountAdminUserPhone, createAccountCredsParams.accountAdminUserPhone) &&
        Objects.equals(this.expires, createAccountCredsParams.expires) &&
        Objects.equals(this.policyRulesType, createAccountCredsParams.policyRulesType) &&
        Objects.equals(this.rules, createAccountCredsParams.rules);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountAdminUserEmail, accountAdminUserPhone, expires, policyRulesType, rules);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateAccountCredsParams {\n");
    
    sb.append("    accountAdminUserEmail: ").append(toIndentedString(accountAdminUserEmail)).append("\n");
    sb.append("    accountAdminUserPhone: ").append(toIndentedString(accountAdminUserPhone)).append("\n");
    sb.append("    expires: ").append(toIndentedString(expires)).append("\n");
    sb.append("    policyRulesType: ").append(toIndentedString(policyRulesType)).append("\n");
    sb.append("    rules: ").append(toIndentedString(rules)).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