jp.co.yahoo.adssearchapi.v14.model.AssetServiceAssetData 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: 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.AssetServiceCallAsset;
import jp.co.yahoo.adssearchapi.v14.model.AssetServiceCalloutAsset;
import jp.co.yahoo.adssearchapi.v14.model.AssetServiceImageAsset;
import jp.co.yahoo.adssearchapi.v14.model.AssetServiceQuickLinkAsset;
import jp.co.yahoo.adssearchapi.v14.model.AssetServiceStructuredSnippetAsset;
import jp.co.yahoo.adssearchapi.v14.model.AssetServiceType;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">AssetServiceAssetDataオブジェクトは、アセットの詳細情報を格納します。<br> このフィールドは、ADD時は必須となり、SET時は省略可能となります。</div> <div lang=\"en\">AssetServiceAssetData object contains the details of Asset.<br> This field is required in ADD operation, and will be optional in SET operation.</div>
*/
@ApiModel(description = "AssetServiceAssetDataオブジェクトは、アセットの詳細情報を格納します。
このフィールドは、ADD時は必須となり、SET時は省略可能となります。 AssetServiceAssetData object contains the details of Asset.
This field is required in ADD operation, and will be optional in SET operation. ")
@JsonPropertyOrder({
AssetServiceAssetData.JSON_PROPERTY_TYPE,
AssetServiceAssetData.JSON_PROPERTY_QUICK_LINK_ASSET,
AssetServiceAssetData.JSON_PROPERTY_CALL_ASSET,
AssetServiceAssetData.JSON_PROPERTY_CALLOUT_ASSET,
AssetServiceAssetData.JSON_PROPERTY_STRUCTURED_SNIPPET_ASSET,
AssetServiceAssetData.JSON_PROPERTY_IMAGE_ASSET
})
@JsonTypeName("AssetServiceAssetData")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AssetServiceAssetData {
public static final String JSON_PROPERTY_TYPE = "type";
private AssetServiceType type;
public static final String JSON_PROPERTY_QUICK_LINK_ASSET = "quickLinkAsset";
private AssetServiceQuickLinkAsset quickLinkAsset;
public static final String JSON_PROPERTY_CALL_ASSET = "callAsset";
private AssetServiceCallAsset callAsset;
public static final String JSON_PROPERTY_CALLOUT_ASSET = "calloutAsset";
private AssetServiceCalloutAsset calloutAsset;
public static final String JSON_PROPERTY_STRUCTURED_SNIPPET_ASSET = "structuredSnippetAsset";
private AssetServiceStructuredSnippetAsset structuredSnippetAsset;
public static final String JSON_PROPERTY_IMAGE_ASSET = "imageAsset";
private AssetServiceImageAsset imageAsset;
public AssetServiceAssetData() {
}
public AssetServiceAssetData type(AssetServiceType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AssetServiceType getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(AssetServiceType type) {
this.type = type;
}
public AssetServiceAssetData quickLinkAsset(AssetServiceQuickLinkAsset quickLinkAsset) {
this.quickLinkAsset = quickLinkAsset;
return this;
}
/**
* Get quickLinkAsset
* @return quickLinkAsset
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_QUICK_LINK_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AssetServiceQuickLinkAsset getQuickLinkAsset() {
return quickLinkAsset;
}
@JsonProperty(JSON_PROPERTY_QUICK_LINK_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQuickLinkAsset(AssetServiceQuickLinkAsset quickLinkAsset) {
this.quickLinkAsset = quickLinkAsset;
}
public AssetServiceAssetData callAsset(AssetServiceCallAsset callAsset) {
this.callAsset = callAsset;
return this;
}
/**
* Get callAsset
* @return callAsset
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CALL_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AssetServiceCallAsset getCallAsset() {
return callAsset;
}
@JsonProperty(JSON_PROPERTY_CALL_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCallAsset(AssetServiceCallAsset callAsset) {
this.callAsset = callAsset;
}
public AssetServiceAssetData calloutAsset(AssetServiceCalloutAsset calloutAsset) {
this.calloutAsset = calloutAsset;
return this;
}
/**
* Get calloutAsset
* @return calloutAsset
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CALLOUT_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AssetServiceCalloutAsset getCalloutAsset() {
return calloutAsset;
}
@JsonProperty(JSON_PROPERTY_CALLOUT_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCalloutAsset(AssetServiceCalloutAsset calloutAsset) {
this.calloutAsset = calloutAsset;
}
public AssetServiceAssetData structuredSnippetAsset(AssetServiceStructuredSnippetAsset structuredSnippetAsset) {
this.structuredSnippetAsset = structuredSnippetAsset;
return this;
}
/**
* Get structuredSnippetAsset
* @return structuredSnippetAsset
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STRUCTURED_SNIPPET_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AssetServiceStructuredSnippetAsset getStructuredSnippetAsset() {
return structuredSnippetAsset;
}
@JsonProperty(JSON_PROPERTY_STRUCTURED_SNIPPET_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStructuredSnippetAsset(AssetServiceStructuredSnippetAsset structuredSnippetAsset) {
this.structuredSnippetAsset = structuredSnippetAsset;
}
public AssetServiceAssetData imageAsset(AssetServiceImageAsset imageAsset) {
this.imageAsset = imageAsset;
return this;
}
/**
* Get imageAsset
* @return imageAsset
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_IMAGE_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AssetServiceImageAsset getImageAsset() {
return imageAsset;
}
@JsonProperty(JSON_PROPERTY_IMAGE_ASSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setImageAsset(AssetServiceImageAsset imageAsset) {
this.imageAsset = imageAsset;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AssetServiceAssetData assetServiceAssetData = (AssetServiceAssetData) o;
return Objects.equals(this.type, assetServiceAssetData.type) &&
Objects.equals(this.quickLinkAsset, assetServiceAssetData.quickLinkAsset) &&
Objects.equals(this.callAsset, assetServiceAssetData.callAsset) &&
Objects.equals(this.calloutAsset, assetServiceAssetData.calloutAsset) &&
Objects.equals(this.structuredSnippetAsset, assetServiceAssetData.structuredSnippetAsset) &&
Objects.equals(this.imageAsset, assetServiceAssetData.imageAsset);
}
@Override
public int hashCode() {
return Objects.hash(type, quickLinkAsset, callAsset, calloutAsset, structuredSnippetAsset, imageAsset);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AssetServiceAssetData {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" quickLinkAsset: ").append(toIndentedString(quickLinkAsset)).append("\n");
sb.append(" callAsset: ").append(toIndentedString(callAsset)).append("\n");
sb.append(" calloutAsset: ").append(toIndentedString(calloutAsset)).append("\n");
sb.append(" structuredSnippetAsset: ").append(toIndentedString(structuredSnippetAsset)).append("\n");
sb.append(" imageAsset: ").append(toIndentedString(imageAsset)).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 ");
}
}