
package ru.yandex.autotests.mediaplan.datacontainersauto.api5_add_ads;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

import javax.annotation.Generated;

@Generated("org.jsonschema2pojo")
public class Ad {

    @SerializedName("AdGroupId")
    @Expose
    private Long adGroupId;
    /**
     * 
     */
    @SerializedName("TextAd")
    @Expose
    private TextAd textAd;


    @SerializedName("Id")
    @Expose
    private Long id;

    public Long getAdGroupId() {
        return adGroupId;
    }

    public void setAdGroupId(Long adGroupId) {
        this.adGroupId = adGroupId;
    }

    public Ad withAdGroupId(Long adGroupId) {
        this.adGroupId = adGroupId;
        return this;
    }

    /**
     *
     */
    public TextAd getTextAd() {
        return textAd;
    }

    /**
     *
     */
    public void setTextAd(TextAd textAd) {
        this.textAd = textAd;
    }

    public Ad withTextAd(TextAd textAd) {
        this.textAd = textAd;
        return this;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public boolean equals(Object other) {
        return EqualsBuilder.reflectionEquals(this, other);
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Ad withId(Long id) {
        this.id = id;
        return this;
    }

}
