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