java_sdk/src/main/java/business_api_client/OpenApiv13adgroupcreateAudienceRuleExclusionsEventSources.java
<filename>java_sdk/src/main/java/business_api_client/OpenApiv13adgroupcreateAudienceRuleExclusionsEventSources.java/*
 * Copyright 2023 TikTok Pte. Ltd.
 *
 * This source code is licensed under the MIT license found in
 * the LICENSE file in the root directory of this source tree.
 */

package business_api_client;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * OpenApiv13adgroupcreateAudienceRuleExclusionsEventSources
 */

@javax.annotation.Generated(value = "com.tiktok.codegen.JavatiktokcodegenGenerator", date = "2023-04-18T10:46:48.851395-07:00[America/Los_Angeles]")
public class OpenApiv13adgroupcreateAudienceRuleExclusionsEventSources {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("type")
  private String type = null;

  public OpenApiv13adgroupcreateAudienceRuleExclusionsEventSources id(String id) {
    this.id = id;
    return this;
  }

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

  public void setId(String id) {
    this.id = id;
  }

  public OpenApiv13adgroupcreateAudienceRuleExclusionsEventSources type(String type) {
    this.type = type;
    return this;
  }

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

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OpenApiv13adgroupcreateAudienceRuleExclusionsEventSources openApiv13adgroupcreateAudienceRuleExclusionsEventSources = (OpenApiv13adgroupcreateAudienceRuleExclusionsEventSources) o;
    return Objects.equals(this.id, openApiv13adgroupcreateAudienceRuleExclusionsEventSources.id) &&
        Objects.equals(this.type, openApiv13adgroupcreateAudienceRuleExclusionsEventSources.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OpenApiv13adgroupcreateAudienceRuleExclusionsEventSources {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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    ");
  }

}
