/*
 * Oceanengine Open Api
 * 巨量引擎开放平台 Open Api
 *
 * The version of the OpenAPI document: 1.1.19
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.bytedance.ads.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 java.io.IOException;
import org.openapitools.jackson.nullable.JsonNullable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;

import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

import com.bytedance.ads.JSON;

/**
 * QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner
 */
@javax.annotation.Generated(value = "com.org.bytedance.ad_open_sdk.JavacusGenerator", date = "2024-09-10T15:29:00.246104612+08:00[Asia/Shanghai]")
public class QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner {
  public static final String SERIALIZED_NAME_ANCHOR_FORBIDDEN = "anchor_forbidden";
  @SerializedName(SERIALIZED_NAME_ANCHOR_FORBIDDEN)
  private Boolean anchorForbidden = null;

  public static final String SERIALIZED_NAME_AWEME_AVATAR = "aweme_avatar";
  @SerializedName(SERIALIZED_NAME_AWEME_AVATAR)
  private String awemeAvatar = null;

  public static final String SERIALIZED_NAME_AWEME_ID = "aweme_id";
  @SerializedName(SERIALIZED_NAME_AWEME_ID)
  private Long awemeId = null;

  public static final String SERIALIZED_NAME_AWEME_NAME = "aweme_name";
  @SerializedName(SERIALIZED_NAME_AWEME_NAME)
  private String awemeName = null;

  public static final String SERIALIZED_NAME_AWEME_SHOW_ID = "aweme_show_id";
  @SerializedName(SERIALIZED_NAME_AWEME_SHOW_ID)
  private String awemeShowId = null;

  public static final String SERIALIZED_NAME_CAN_APPLY_UNIPROM = "can_apply_uniprom";
  @SerializedName(SERIALIZED_NAME_CAN_APPLY_UNIPROM)
  private Boolean canApplyUniprom = null;

  public static final String SERIALIZED_NAME_CAN_CONTROL_UNIPROM = "can_control_uniprom";
  @SerializedName(SERIALIZED_NAME_CAN_CONTROL_UNIPROM)
  private Boolean canControlUniprom = null;

  public static final String SERIALIZED_NAME_HAS_LIVE_PERMISSION = "has_live_permission";
  @SerializedName(SERIALIZED_NAME_HAS_LIVE_PERMISSION)
  private Boolean hasLivePermission = null;

  public static final String SERIALIZED_NAME_HAS_ROI2_DELIVERY_LIMIT = "has_roi2_delivery_limit";
  @SerializedName(SERIALIZED_NAME_HAS_ROI2_DELIVERY_LIMIT)
  private Boolean hasRoi2DeliveryLimit = null;

  public static final String SERIALIZED_NAME_HAS_ROI2_GROUP_CREATED = "has_roi2_group_created";
  @SerializedName(SERIALIZED_NAME_HAS_ROI2_GROUP_CREATED)
  private Boolean hasRoi2GroupCreated = null;

  public static final String SERIALIZED_NAME_HAS_SHOP_PERMISSION = "has_shop_permission";
  @SerializedName(SERIALIZED_NAME_HAS_SHOP_PERMISSION)
  private Boolean hasShopPermission = null;

  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner() {
  }

  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner anchorForbidden(Boolean anchorForbidden) {
    
    this.anchorForbidden = anchorForbidden;
    return this;
  }

   /**
   * 
   * @return anchorForbidden
  **/
  @javax.annotation.Nullable
  public Boolean getAnchorForbidden() {
    return anchorForbidden;
  }


  public void setAnchorForbidden(Boolean anchorForbidden) {
    this.anchorForbidden = anchorForbidden;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner awemeAvatar(String awemeAvatar) {
    
    this.awemeAvatar = awemeAvatar;
    return this;
  }

   /**
   * 
   * @return awemeAvatar
  **/
  @javax.annotation.Nullable
  public String getAwemeAvatar() {
    return awemeAvatar;
  }


  public void setAwemeAvatar(String awemeAvatar) {
    this.awemeAvatar = awemeAvatar;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner awemeId(Long awemeId) {
    
    this.awemeId = awemeId;
    return this;
  }

   /**
   * 
   * @return awemeId
  **/
  @javax.annotation.Nullable
  public Long getAwemeId() {
    return awemeId;
  }


  public void setAwemeId(Long awemeId) {
    this.awemeId = awemeId;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner awemeName(String awemeName) {
    
    this.awemeName = awemeName;
    return this;
  }

   /**
   * 
   * @return awemeName
  **/
  @javax.annotation.Nullable
  public String getAwemeName() {
    return awemeName;
  }


  public void setAwemeName(String awemeName) {
    this.awemeName = awemeName;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner awemeShowId(String awemeShowId) {
    
    this.awemeShowId = awemeShowId;
    return this;
  }

   /**
   * 
   * @return awemeShowId
  **/
  @javax.annotation.Nullable
  public String getAwemeShowId() {
    return awemeShowId;
  }


  public void setAwemeShowId(String awemeShowId) {
    this.awemeShowId = awemeShowId;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner canApplyUniprom(Boolean canApplyUniprom) {
    
    this.canApplyUniprom = canApplyUniprom;
    return this;
  }

   /**
   * 
   * @return canApplyUniprom
  **/
  @javax.annotation.Nullable
  public Boolean getCanApplyUniprom() {
    return canApplyUniprom;
  }


  public void setCanApplyUniprom(Boolean canApplyUniprom) {
    this.canApplyUniprom = canApplyUniprom;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner canControlUniprom(Boolean canControlUniprom) {
    
    this.canControlUniprom = canControlUniprom;
    return this;
  }

   /**
   * 
   * @return canControlUniprom
  **/
  @javax.annotation.Nullable
  public Boolean getCanControlUniprom() {
    return canControlUniprom;
  }


  public void setCanControlUniprom(Boolean canControlUniprom) {
    this.canControlUniprom = canControlUniprom;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner hasLivePermission(Boolean hasLivePermission) {
    
    this.hasLivePermission = hasLivePermission;
    return this;
  }

   /**
   * 
   * @return hasLivePermission
  **/
  @javax.annotation.Nullable
  public Boolean getHasLivePermission() {
    return hasLivePermission;
  }


  public void setHasLivePermission(Boolean hasLivePermission) {
    this.hasLivePermission = hasLivePermission;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner hasRoi2DeliveryLimit(Boolean hasRoi2DeliveryLimit) {
    
    this.hasRoi2DeliveryLimit = hasRoi2DeliveryLimit;
    return this;
  }

   /**
   * 
   * @return hasRoi2DeliveryLimit
  **/
  @javax.annotation.Nullable
  public Boolean getHasRoi2DeliveryLimit() {
    return hasRoi2DeliveryLimit;
  }


  public void setHasRoi2DeliveryLimit(Boolean hasRoi2DeliveryLimit) {
    this.hasRoi2DeliveryLimit = hasRoi2DeliveryLimit;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner hasRoi2GroupCreated(Boolean hasRoi2GroupCreated) {
    
    this.hasRoi2GroupCreated = hasRoi2GroupCreated;
    return this;
  }

   /**
   * 
   * @return hasRoi2GroupCreated
  **/
  @javax.annotation.Nullable
  public Boolean getHasRoi2GroupCreated() {
    return hasRoi2GroupCreated;
  }


  public void setHasRoi2GroupCreated(Boolean hasRoi2GroupCreated) {
    this.hasRoi2GroupCreated = hasRoi2GroupCreated;
  }


  public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner hasShopPermission(Boolean hasShopPermission) {
    
    this.hasShopPermission = hasShopPermission;
    return this;
  }

   /**
   * 
   * @return hasShopPermission
  **/
  @javax.annotation.Nullable
  public Boolean getHasShopPermission() {
    return hasShopPermission;
  }


  public void setHasShopPermission(Boolean hasShopPermission) {
    this.hasShopPermission = hasShopPermission;
  }



  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner = (QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner) o;
    return Objects.equals(this.anchorForbidden, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.anchorForbidden) &&
        Objects.equals(this.awemeAvatar, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.awemeAvatar) &&
        Objects.equals(this.awemeId, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.awemeId) &&
        Objects.equals(this.awemeName, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.awemeName) &&
        Objects.equals(this.awemeShowId, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.awemeShowId) &&
        Objects.equals(this.canApplyUniprom, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.canApplyUniprom) &&
        Objects.equals(this.canControlUniprom, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.canControlUniprom) &&
        Objects.equals(this.hasLivePermission, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.hasLivePermission) &&
        Objects.equals(this.hasRoi2DeliveryLimit, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.hasRoi2DeliveryLimit) &&
        Objects.equals(this.hasRoi2GroupCreated, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.hasRoi2GroupCreated) &&
        Objects.equals(this.hasShopPermission, qianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.hasShopPermission);
  }

  private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
    return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
  }

  @Override
  public int hashCode() {
    return Objects.hash(anchorForbidden, awemeAvatar, awemeId, awemeName, awemeShowId, canApplyUniprom, canControlUniprom, hasLivePermission, hasRoi2DeliveryLimit, hasRoi2GroupCreated, hasShopPermission);
  }

  private static <T> int hashCodeNullable(JsonNullable<T> a) {
    if (a == null) {
      return 1;
    }
    return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner {\n");
    sb.append("    anchorForbidden: ").append(toIndentedString(anchorForbidden)).append("\n");
    sb.append("    awemeAvatar: ").append(toIndentedString(awemeAvatar)).append("\n");
    sb.append("    awemeId: ").append(toIndentedString(awemeId)).append("\n");
    sb.append("    awemeName: ").append(toIndentedString(awemeName)).append("\n");
    sb.append("    awemeShowId: ").append(toIndentedString(awemeShowId)).append("\n");
    sb.append("    canApplyUniprom: ").append(toIndentedString(canApplyUniprom)).append("\n");
    sb.append("    canControlUniprom: ").append(toIndentedString(canControlUniprom)).append("\n");
    sb.append("    hasLivePermission: ").append(toIndentedString(hasLivePermission)).append("\n");
    sb.append("    hasRoi2DeliveryLimit: ").append(toIndentedString(hasRoi2DeliveryLimit)).append("\n");
    sb.append("    hasRoi2GroupCreated: ").append(toIndentedString(hasRoi2GroupCreated)).append("\n");
    sb.append("    hasShopPermission: ").append(toIndentedString(hasShopPermission)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }


  public static HashSet<String> openapiFields;
  public static HashSet<String> openapiRequiredFields;

  static {
    // a set of all properties/fields (JSON key names)
    openapiFields = new HashSet<String>();
    openapiFields.add("anchor_forbidden");
    openapiFields.add("aweme_avatar");
    openapiFields.add("aweme_id");
    openapiFields.add("aweme_name");
    openapiFields.add("aweme_show_id");
    openapiFields.add("can_apply_uniprom");
    openapiFields.add("can_control_uniprom");
    openapiFields.add("has_live_permission");
    openapiFields.add("has_roi2_delivery_limit");
    openapiFields.add("has_roi2_group_created");
    openapiFields.add("has_shop_permission");

    // a set of required properties/fields (JSON key names)
    openapiRequiredFields = new HashSet<String>();
  }


  public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
    @SuppressWarnings("unchecked")
    @Override
    public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {
       if (!QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.class.isAssignableFrom(type.getRawType())) {
         return null; // this class only serializes 'QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner' and its subtypes
       }
       final TypeAdapter<JsonElement> elementAdapter = gson.getAdapter(JsonElement.class);
       final TypeAdapter<QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner> thisAdapter
                        = gson.getDelegateAdapter(this, TypeToken.get(QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.class));

       return (TypeAdapter<T>) new TypeAdapter<QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner>() {
           @Override
           public void write(JsonWriter out, QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner value) throws IOException {
             JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
             elementAdapter.write(out, obj);
           }

           @Override
           public QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner read(JsonReader in) throws IOException {
             JsonElement jsonElement = elementAdapter.read(in);
             return thisAdapter.fromJsonTree(jsonElement);
           }

       }.nullSafe();
    }
  }

 /**
  * Create an instance of QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner given an JSON string
  *
  * @param jsonString JSON string
  * @return An instance of QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner
  * @throws IOException if the JSON string is invalid with respect to QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner
  */
  public static QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner fromJson(String jsonString) throws IOException {
    return JSON.getGson().fromJson(jsonString, QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner.class);
  }

 /**
  * Convert an instance of QianchuanUniAwemeAuthorizedGetV10ResponseDataAwemeIdListInner to an JSON string
  *
  * @return JSON string
  */
  public String toJson() {
    return JSON.getGson().toJson(this);
  }
}

