
com.tencent.ads.model.AuthorizerStruct Maven / Gradle / Ivy
/*
* Marketing API
* Marketing API
*
* OpenAPI spec version: 1.3
*
*
* 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.tencent.ads.model;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** 权限信息 */
@ApiModel(description = "权限信息")
public class AuthorizerStruct {
@SerializedName("account_uin")
private Long accountUin = null;
@SerializedName("account_id")
private Long accountId = null;
@SerializedName("scope_list")
private List scopeList = null;
@SerializedName("wechat_account_id")
private String wechatAccountId = null;
@SerializedName("account_role_type")
private AccountRoleType accountRoleType = null;
@SerializedName("account_type")
private AccountType accountType = null;
@SerializedName("role_type")
private RoleType roleType = null;
public AuthorizerStruct accountUin(Long accountUin) {
this.accountUin = accountUin;
return this;
}
/**
* Get accountUin
*
* @return accountUin
*/
@ApiModelProperty(value = "")
public Long getAccountUin() {
return accountUin;
}
public void setAccountUin(Long accountUin) {
this.accountUin = accountUin;
}
public AuthorizerStruct accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* Get accountId
*
* @return accountId
*/
@ApiModelProperty(value = "")
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
this.accountId = accountId;
}
public AuthorizerStruct scopeList(List scopeList) {
this.scopeList = scopeList;
return this;
}
public AuthorizerStruct addScopeListItem(String scopeListItem) {
if (this.scopeList == null) {
this.scopeList = new ArrayList();
}
this.scopeList.add(scopeListItem);
return this;
}
/**
* Get scopeList
*
* @return scopeList
*/
@ApiModelProperty(value = "")
public List getScopeList() {
return scopeList;
}
public void setScopeList(List scopeList) {
this.scopeList = scopeList;
}
public AuthorizerStruct wechatAccountId(String wechatAccountId) {
this.wechatAccountId = wechatAccountId;
return this;
}
/**
* Get wechatAccountId
*
* @return wechatAccountId
*/
@ApiModelProperty(value = "")
public String getWechatAccountId() {
return wechatAccountId;
}
public void setWechatAccountId(String wechatAccountId) {
this.wechatAccountId = wechatAccountId;
}
public AuthorizerStruct accountRoleType(AccountRoleType accountRoleType) {
this.accountRoleType = accountRoleType;
return this;
}
/**
* Get accountRoleType
*
* @return accountRoleType
*/
@ApiModelProperty(value = "")
public AccountRoleType getAccountRoleType() {
return accountRoleType;
}
public void setAccountRoleType(AccountRoleType accountRoleType) {
this.accountRoleType = accountRoleType;
}
public AuthorizerStruct accountType(AccountType accountType) {
this.accountType = accountType;
return this;
}
/**
* Get accountType
*
* @return accountType
*/
@ApiModelProperty(value = "")
public AccountType getAccountType() {
return accountType;
}
public void setAccountType(AccountType accountType) {
this.accountType = accountType;
}
public AuthorizerStruct roleType(RoleType roleType) {
this.roleType = roleType;
return this;
}
/**
* Get roleType
*
* @return roleType
*/
@ApiModelProperty(value = "")
public RoleType getRoleType() {
return roleType;
}
public void setRoleType(RoleType roleType) {
this.roleType = roleType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AuthorizerStruct authorizerStruct = (AuthorizerStruct) o;
return Objects.equals(this.accountUin, authorizerStruct.accountUin)
&& Objects.equals(this.accountId, authorizerStruct.accountId)
&& Objects.equals(this.scopeList, authorizerStruct.scopeList)
&& Objects.equals(this.wechatAccountId, authorizerStruct.wechatAccountId)
&& Objects.equals(this.accountRoleType, authorizerStruct.accountRoleType)
&& Objects.equals(this.accountType, authorizerStruct.accountType)
&& Objects.equals(this.roleType, authorizerStruct.roleType);
}
@Override
public int hashCode() {
return Objects.hash(
accountUin, accountId, scopeList, wechatAccountId, accountRoleType, accountType, roleType);
}
@Override
public String toString() {
Gson gson = new Gson();
return gson.toJson(this);
}
/**
* 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 - 2025 Weber Informatics LLC | Privacy Policy