jp.co.yahoo.adssearchapi.v12.model.CampaignWebpageServiceWebpage 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
The newest version!
/*
* 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: v12
*
*
* 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.v12.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.v12.model.CampaignWebpageServiceWebpageParameter;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">CampaignWebpageServiceWebpageオブジェクトは、除外設定するCampaignWebpageServiceWebpageの条件を保持します。<br> このフィールドは、いずれの場合でも必須となります。</div> <div lang=\"en\">CampaignWebpageServiceWebpage object contains the rules of webpage to be excluded.<br> This field is required in any cases.</div>
*/
@ApiModel(description = "CampaignWebpageServiceWebpageオブジェクトは、除外設定するCampaignWebpageServiceWebpageの条件を保持します。
このフィールドは、いずれの場合でも必須となります。 CampaignWebpageServiceWebpage object contains the rules of webpage to be excluded.
This field is required in any cases. ")
@JsonPropertyOrder({
CampaignWebpageServiceWebpage.JSON_PROPERTY_PARAMETER,
CampaignWebpageServiceWebpage.JSON_PROPERTY_TARGET_ID,
CampaignWebpageServiceWebpage.JSON_PROPERTY_TARGET_TRACK_ID
})
@JsonTypeName("CampaignWebpageServiceWebpage")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignWebpageServiceWebpage {
public static final String JSON_PROPERTY_PARAMETER = "parameter";
private CampaignWebpageServiceWebpageParameter parameter;
public static final String JSON_PROPERTY_TARGET_ID = "targetId";
private Long targetId;
public static final String JSON_PROPERTY_TARGET_TRACK_ID = "targetTrackId";
private Long targetTrackId;
public CampaignWebpageServiceWebpage() {
}
public CampaignWebpageServiceWebpage parameter(CampaignWebpageServiceWebpageParameter parameter) {
this.parameter = parameter;
return this;
}
/**
* Get parameter
* @return parameter
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PARAMETER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CampaignWebpageServiceWebpageParameter getParameter() {
return parameter;
}
@JsonProperty(JSON_PROPERTY_PARAMETER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setParameter(CampaignWebpageServiceWebpageParameter parameter) {
this.parameter = parameter;
}
public CampaignWebpageServiceWebpage targetId(Long targetId) {
this.targetId = targetId;
return this;
}
/**
* <div lang=\"ja\">CampaignWebpageServiceWebpageを識別するIDです。 <br> このフィールドは、REMOVE時に必須となり、ADD時は無視されます。</div> <div lang=\"en\">Unique ID for each webpage.<br> This field is required in REMOVE operation, and will be ignored in ADD operation.</div>
* @return targetId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "CampaignWebpageServiceWebpageを識別するIDです。
このフィールドは、REMOVE時に必須となり、ADD時は無視されます。 Unique ID for each webpage.
This field is required in REMOVE operation, and will be ignored in ADD operation. ")
@JsonProperty(JSON_PROPERTY_TARGET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTargetId() {
return targetId;
}
@JsonProperty(JSON_PROPERTY_TARGET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTargetId(Long targetId) {
this.targetId = targetId;
}
public CampaignWebpageServiceWebpage targetTrackId(Long targetTrackId) {
this.targetTrackId = targetTrackId;
return this;
}
/**
* <div lang=\"ja\">CampaignWebpageServiceWebpageを識別するトラッキングIDです。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">Unique tracking ID for each CampaignWebpageServiceWebpage.<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return targetTrackId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "CampaignWebpageServiceWebpageを識別するトラッキングIDです。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 Unique tracking ID for each CampaignWebpageServiceWebpage.
Although this field will be returned in the response, it will be ignored on input. ")
@JsonProperty(JSON_PROPERTY_TARGET_TRACK_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTargetTrackId() {
return targetTrackId;
}
@JsonProperty(JSON_PROPERTY_TARGET_TRACK_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTargetTrackId(Long targetTrackId) {
this.targetTrackId = targetTrackId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignWebpageServiceWebpage campaignWebpageServiceWebpage = (CampaignWebpageServiceWebpage) o;
return Objects.equals(this.parameter, campaignWebpageServiceWebpage.parameter) &&
Objects.equals(this.targetId, campaignWebpageServiceWebpage.targetId) &&
Objects.equals(this.targetTrackId, campaignWebpageServiceWebpage.targetTrackId);
}
@Override
public int hashCode() {
return Objects.hash(parameter, targetId, targetTrackId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignWebpageServiceWebpage {\n");
sb.append(" parameter: ").append(toIndentedString(parameter)).append("\n");
sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n");
sb.append(" targetTrackId: ").append(toIndentedString(targetTrackId)).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 ");
}
}