jp.co.yahoo.adssearchapi.v13.model.AssetServiceCalloutAsset 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 java.util.ArrayList;
import java.util.List;
import jp.co.yahoo.adssearchapi.v13.model.AssetServiceSchedule;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">AssetServiceCalloutAssetオブジェクトは、テキスト補足アセットのアセット情報を格納します。<br> ADD時、このフィールドは省略可能となります。※typeがCALLOUTの場合は必須です。</div> <div lang=\"en\">AssetServiceCalloutAsset contains Asset value information for callout options.<br> This field is optional in ADD operation. *If type is CALLOUT, this field is required.</div>
*/
@ApiModel(description = "AssetServiceCalloutAssetオブジェクトは、テキスト補足アセットのアセット情報を格納します。
ADD時、このフィールドは省略可能となります。※typeがCALLOUTの場合は必須です。 AssetServiceCalloutAsset contains Asset value information for callout options.
This field is optional in ADD operation. *If type is CALLOUT, this field is required. ")
@JsonPropertyOrder({
AssetServiceCalloutAsset.JSON_PROPERTY_CALLOUT_TEXT,
AssetServiceCalloutAsset.JSON_PROPERTY_REVIEW_CALLOUT_TEXT,
AssetServiceCalloutAsset.JSON_PROPERTY_START_DATE,
AssetServiceCalloutAsset.JSON_PROPERTY_END_DATE,
AssetServiceCalloutAsset.JSON_PROPERTY_SCHEDULES
})
@JsonTypeName("AssetServiceCalloutAsset")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AssetServiceCalloutAsset {
public static final String JSON_PROPERTY_CALLOUT_TEXT = "calloutText";
private String calloutText;
public static final String JSON_PROPERTY_REVIEW_CALLOUT_TEXT = "reviewCalloutText";
private String reviewCalloutText;
public static final String JSON_PROPERTY_START_DATE = "startDate";
private String startDate;
public static final String JSON_PROPERTY_END_DATE = "endDate";
private String endDate;
public static final String JSON_PROPERTY_SCHEDULES = "schedules";
private List schedules = null;
public AssetServiceCalloutAsset() {
}
public AssetServiceCalloutAsset calloutText(String calloutText) {
this.calloutText = calloutText;
return this;
}
/**
* <div lang=\"ja\">コールアウトテキストです。<br> ADDおよびSET時、このフィールドは必須となります。</div> <div lang=\"en\">Callout text.<br> This field is required in ADD and SET operation.</div>
* @return calloutText
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "コールアウトテキストです。
ADDおよびSET時、このフィールドは必須となります。 Callout text.
This field is required in ADD and SET operation. ")
@JsonProperty(JSON_PROPERTY_CALLOUT_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCalloutText() {
return calloutText;
}
@JsonProperty(JSON_PROPERTY_CALLOUT_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCalloutText(String calloutText) {
this.calloutText = calloutText;
}
public AssetServiceCalloutAsset reviewCalloutText(String reviewCalloutText) {
this.reviewCalloutText = reviewCalloutText;
return this;
}
/**
* <div lang=\"ja\">審査中のコールアウトテキストです。<br> このフィールドは、リクエストの際には無視されます。<br> 審査中の間のみ、レスポンスの際に返却されます。</div> <div lang=\"en\">Callout text on editorial review.<br> This field will be ignored on input.<br> It will be returned at the time of response only during the review.</div>
* @return reviewCalloutText
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "審査中のコールアウトテキストです。
このフィールドは、リクエストの際には無視されます。
審査中の間のみ、レスポンスの際に返却されます。 Callout text on editorial review.
This field will be ignored on input.
It will be returned at the time of response only during the review. ")
@JsonProperty(JSON_PROPERTY_REVIEW_CALLOUT_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getReviewCalloutText() {
return reviewCalloutText;
}
@JsonProperty(JSON_PROPERTY_REVIEW_CALLOUT_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReviewCalloutText(String reviewCalloutText) {
this.reviewCalloutText = reviewCalloutText;
}
public AssetServiceCalloutAsset startDate(String startDate) {
this.startDate = startDate;
return this;
}
/**
* <div lang=\"ja\">配信開始日です。<br> ※空で設定すると、既存の配信開始日は削除されます。<br> このフィールドは、ADDおよびSET時に省略可能となり、REMOVE時に無視されます。</div> <div lang=\"en\">Start date of ad display<br> *On setting blank, existing start date of ad display will be deleted.<br> This field is optional in ADD and SET operation, and will be ignored in REMOVE operation.</div>
* @return startDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "配信開始日です。
※空で設定すると、既存の配信開始日は削除されます。
このフィールドは、ADDおよびSET時に省略可能となり、REMOVE時に無視されます。 Start date of ad display
*On setting blank, existing start date of ad display will be deleted.
This field is optional in ADD and SET operation, and will be ignored in REMOVE operation. ")
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStartDate() {
return startDate;
}
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public AssetServiceCalloutAsset endDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* <div lang=\"ja\">配信終了日です。<br> ※空で設定すると、既存の配信終了日は削除されます。<br> このフィールドは、ADDおよびSET時に省略可能となり、REMOVE時に無視されます。</div> <div lang=\"en\">End date of ad display.<br> *By setting blank, existing end date of ad display will be deleted.<br> This field is optional in ADD and SET operation, and will be ignored in REMOVE operation.</div>
* @return endDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "配信終了日です。
※空で設定すると、既存の配信終了日は削除されます。
このフィールドは、ADDおよびSET時に省略可能となり、REMOVE時に無視されます。 End date of ad display.
*By setting blank, existing end date of ad display will be deleted.
This field is optional in ADD and SET operation, and will be ignored in REMOVE operation. ")
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEndDate() {
return endDate;
}
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public AssetServiceCalloutAsset schedules(List schedules) {
this.schedules = schedules;
return this;
}
public AssetServiceCalloutAsset addSchedulesItem(AssetServiceSchedule schedulesItem) {
if (this.schedules == null) {
this.schedules = new ArrayList<>();
}
this.schedules.add(schedulesItem);
return this;
}
/**
* Get schedules
* @return schedules
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SCHEDULES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getSchedules() {
return schedules;
}
@JsonProperty(JSON_PROPERTY_SCHEDULES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSchedules(List schedules) {
this.schedules = schedules;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AssetServiceCalloutAsset assetServiceCalloutAsset = (AssetServiceCalloutAsset) o;
return Objects.equals(this.calloutText, assetServiceCalloutAsset.calloutText) &&
Objects.equals(this.reviewCalloutText, assetServiceCalloutAsset.reviewCalloutText) &&
Objects.equals(this.startDate, assetServiceCalloutAsset.startDate) &&
Objects.equals(this.endDate, assetServiceCalloutAsset.endDate) &&
Objects.equals(this.schedules, assetServiceCalloutAsset.schedules);
}
@Override
public int hashCode() {
return Objects.hash(calloutText, reviewCalloutText, startDate, endDate, schedules);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AssetServiceCalloutAsset {\n");
sb.append(" calloutText: ").append(toIndentedString(calloutText)).append("\n");
sb.append(" reviewCalloutText: ").append(toIndentedString(reviewCalloutText)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" schedules: ").append(toIndentedString(schedules)).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 ");
}
}