
com.tencent.ads.model.AudienceGrantRelationsGetGrantToBusinessSpec 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.Objects;
/** 授权给商务管家账号认领的账号的授权信息 */
@ApiModel(description = "授权给商务管家账号认领的账号的授权信息")
public class AudienceGrantRelationsGetGrantToBusinessSpec {
@SerializedName("grant_business_id")
private Long grantBusinessId = null;
@SerializedName("grant_scope_type")
private AudienceGrantScopeType grantScopeType = null;
@SerializedName("grant_business_permission")
private GrantBusinessPermission grantBusinessPermission = null;
@SerializedName("grant_account_permission")
private AudienceGrantRelationsGetGrantAccountPermission grantAccountPermission = null;
public AudienceGrantRelationsGetGrantToBusinessSpec grantBusinessId(Long grantBusinessId) {
this.grantBusinessId = grantBusinessId;
return this;
}
/**
* Get grantBusinessId
*
* @return grantBusinessId
*/
@ApiModelProperty(value = "")
public Long getGrantBusinessId() {
return grantBusinessId;
}
public void setGrantBusinessId(Long grantBusinessId) {
this.grantBusinessId = grantBusinessId;
}
public AudienceGrantRelationsGetGrantToBusinessSpec grantScopeType(
AudienceGrantScopeType grantScopeType) {
this.grantScopeType = grantScopeType;
return this;
}
/**
* Get grantScopeType
*
* @return grantScopeType
*/
@ApiModelProperty(value = "")
public AudienceGrantScopeType getGrantScopeType() {
return grantScopeType;
}
public void setGrantScopeType(AudienceGrantScopeType grantScopeType) {
this.grantScopeType = grantScopeType;
}
public AudienceGrantRelationsGetGrantToBusinessSpec grantBusinessPermission(
GrantBusinessPermission grantBusinessPermission) {
this.grantBusinessPermission = grantBusinessPermission;
return this;
}
/**
* Get grantBusinessPermission
*
* @return grantBusinessPermission
*/
@ApiModelProperty(value = "")
public GrantBusinessPermission getGrantBusinessPermission() {
return grantBusinessPermission;
}
public void setGrantBusinessPermission(GrantBusinessPermission grantBusinessPermission) {
this.grantBusinessPermission = grantBusinessPermission;
}
public AudienceGrantRelationsGetGrantToBusinessSpec grantAccountPermission(
AudienceGrantRelationsGetGrantAccountPermission grantAccountPermission) {
this.grantAccountPermission = grantAccountPermission;
return this;
}
/**
* Get grantAccountPermission
*
* @return grantAccountPermission
*/
@ApiModelProperty(value = "")
public AudienceGrantRelationsGetGrantAccountPermission getGrantAccountPermission() {
return grantAccountPermission;
}
public void setGrantAccountPermission(
AudienceGrantRelationsGetGrantAccountPermission grantAccountPermission) {
this.grantAccountPermission = grantAccountPermission;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AudienceGrantRelationsGetGrantToBusinessSpec audienceGrantRelationsGetGrantToBusinessSpec =
(AudienceGrantRelationsGetGrantToBusinessSpec) o;
return Objects.equals(
this.grantBusinessId, audienceGrantRelationsGetGrantToBusinessSpec.grantBusinessId)
&& Objects.equals(
this.grantScopeType, audienceGrantRelationsGetGrantToBusinessSpec.grantScopeType)
&& Objects.equals(
this.grantBusinessPermission,
audienceGrantRelationsGetGrantToBusinessSpec.grantBusinessPermission)
&& Objects.equals(
this.grantAccountPermission,
audienceGrantRelationsGetGrantToBusinessSpec.grantAccountPermission);
}
@Override
public int hashCode() {
return Objects.hash(
grantBusinessId, grantScopeType, grantBusinessPermission, grantAccountPermission);
}
@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