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

com.volcengine.billing.model.CreateFinancialRelationRequest Maven / Gradle / Ivy

There is a newer version: 0.1.129
Show newest version
/*
 * billing
 * 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.billing.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;
/**
 * CreateFinancialRelationRequest
 */



public class CreateFinancialRelationRequest {
  @SerializedName("AccountAlias")
  private String accountAlias = null;

  @SerializedName("AuthListStr")
  private String authListStr = null;

  @SerializedName("Relation")
  private Integer relation = null;

  @SerializedName("SubAccountID")
  private Integer subAccountID = null;

  public CreateFinancialRelationRequest accountAlias(String accountAlias) {
    this.accountAlias = accountAlias;
    return this;
  }

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

  public void setAccountAlias(String accountAlias) {
    this.accountAlias = accountAlias;
  }

  public CreateFinancialRelationRequest authListStr(String authListStr) {
    this.authListStr = authListStr;
    return this;
  }

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

  public void setAuthListStr(String authListStr) {
    this.authListStr = authListStr;
  }

  public CreateFinancialRelationRequest relation(Integer relation) {
    this.relation = relation;
    return this;
  }

   /**
   * Get relation
   * @return relation
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getRelation() {
    return relation;
  }

  public void setRelation(Integer relation) {
    this.relation = relation;
  }

  public CreateFinancialRelationRequest subAccountID(Integer subAccountID) {
    this.subAccountID = subAccountID;
    return this;
  }

   /**
   * Get subAccountID
   * @return subAccountID
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getSubAccountID() {
    return subAccountID;
  }

  public void setSubAccountID(Integer subAccountID) {
    this.subAccountID = subAccountID;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreateFinancialRelationRequest createFinancialRelationRequest = (CreateFinancialRelationRequest) o;
    return Objects.equals(this.accountAlias, createFinancialRelationRequest.accountAlias) &&
        Objects.equals(this.authListStr, createFinancialRelationRequest.authListStr) &&
        Objects.equals(this.relation, createFinancialRelationRequest.relation) &&
        Objects.equals(this.subAccountID, createFinancialRelationRequest.subAccountID);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountAlias, authListStr, relation, subAccountID);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateFinancialRelationRequest {\n");
    
    sb.append("    accountAlias: ").append(toIndentedString(accountAlias)).append("\n");
    sb.append("    authListStr: ").append(toIndentedString(authListStr)).append("\n");
    sb.append("    relation: ").append(toIndentedString(relation)).append("\n");
    sb.append("    subAccountID: ").append(toIndentedString(subAccountID)).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