jp.co.yahoo.adssearchapi.v13.model.CampaignWebpage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ads-search-api-lib Show documentation
Show all versions of ads-search-api-lib Show documentation
Yahoo! JAPAN Ads Search Ads API library for Java
/*
* Yahoo!広告 検索広告 API リファレンス / Yahoo! JAPAN Ads Search Ads API Reference
* Yahoo!広告 検索広告 APIのWebサービスについて説明します。 Search Ads API Web Services supported in Yahoo! JAPAN Ads API.
*
* The version of the OpenAPI document: v13
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package jp.co.yahoo.adssearchapi.v13.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jp.co.yahoo.adssearchapi.v13.model.CampaignWebpageServiceWebpage;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">CampaignWebpageオブジェクトは、キャンペーンに関連付けた除外設定の情報を保持します。</div> <div lang=\"en\">CampaignWebpage object contains information of excluded settings setup to campaign.</div>
*/
@ApiModel(description = "CampaignWebpageオブジェクトは、キャンペーンに関連付けた除外設定の情報を保持します。 CampaignWebpage object contains information of excluded settings setup to campaign. ")
@JsonPropertyOrder({
CampaignWebpage.JSON_PROPERTY_ACCOUNT_ID,
CampaignWebpage.JSON_PROPERTY_CAMPAIGN_ID,
CampaignWebpage.JSON_PROPERTY_CAMPAIGN_TRACK_ID,
CampaignWebpage.JSON_PROPERTY_WEBPAGE
})
@JsonTypeName("CampaignWebpage")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignWebpage {
public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
private Long accountId;
public static final String JSON_PROPERTY_CAMPAIGN_ID = "campaignId";
private Long campaignId;
public static final String JSON_PROPERTY_CAMPAIGN_TRACK_ID = "campaignTrackId";
private Long campaignTrackId;
public static final String JSON_PROPERTY_WEBPAGE = "webpage";
private CampaignWebpageServiceWebpage webpage;
public CampaignWebpage() {
}
public CampaignWebpage accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* <div lang=\"ja\">アカウントIDです。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">Account ID.<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "アカウントIDです。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 Account ID.
Although this field will be returned in the response, it will be ignored on input. ")
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getAccountId() {
return accountId;
}
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAccountId(Long accountId) {
this.accountId = accountId;
}
public CampaignWebpage campaignId(Long campaignId) {
this.campaignId = campaignId;
return this;
}
/**
* <div lang=\"ja\">キャンペーンIDです。<br> このフィールドは、いずれの場合でも必須となります。</div> <div lang=\"en\">Campaign ID.<br> This field is required in any cases.</div>
* @return campaignId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "キャンペーンIDです。
このフィールドは、いずれの場合でも必須となります。 Campaign ID.
This field is required in any cases. ")
@JsonProperty(JSON_PROPERTY_CAMPAIGN_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getCampaignId() {
return campaignId;
}
@JsonProperty(JSON_PROPERTY_CAMPAIGN_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCampaignId(Long campaignId) {
this.campaignId = campaignId;
}
public CampaignWebpage campaignTrackId(Long campaignTrackId) {
this.campaignTrackId = campaignTrackId;
return this;
}
/**
* <div lang=\"ja\">キャンペーントラッキングIDです。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">Campaign tracking ID.<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return campaignTrackId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "キャンペーントラッキングIDです。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 Campaign tracking ID.
Although this field will be returned in the response, it will be ignored on input. ")
@JsonProperty(JSON_PROPERTY_CAMPAIGN_TRACK_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getCampaignTrackId() {
return campaignTrackId;
}
@JsonProperty(JSON_PROPERTY_CAMPAIGN_TRACK_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCampaignTrackId(Long campaignTrackId) {
this.campaignTrackId = campaignTrackId;
}
public CampaignWebpage webpage(CampaignWebpageServiceWebpage webpage) {
this.webpage = webpage;
return this;
}
/**
* Get webpage
* @return webpage
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_WEBPAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CampaignWebpageServiceWebpage getWebpage() {
return webpage;
}
@JsonProperty(JSON_PROPERTY_WEBPAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWebpage(CampaignWebpageServiceWebpage webpage) {
this.webpage = webpage;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignWebpage campaignWebpage = (CampaignWebpage) o;
return Objects.equals(this.accountId, campaignWebpage.accountId) &&
Objects.equals(this.campaignId, campaignWebpage.campaignId) &&
Objects.equals(this.campaignTrackId, campaignWebpage.campaignTrackId) &&
Objects.equals(this.webpage, campaignWebpage.webpage);
}
@Override
public int hashCode() {
return Objects.hash(accountId, campaignId, campaignTrackId, webpage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignWebpage {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n");
sb.append(" campaignTrackId: ").append(toIndentedString(campaignTrackId)).append("\n");
sb.append(" webpage: ").append(toIndentedString(webpage)).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 ");
}
}