All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.co.yahoo.adssearchapi.v13.model.CampaignAsset Maven / Gradle / Ivy

There is a newer version: 8.1.1-spring5
Show 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.
OpenAPI Specification
Best Practice
Best Practice
* * 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.CampaignAssetServiceType; import jp.co.yahoo.adssearchapi.v13.model.CampaignAssetServiceUserStatus; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * <div lang=\"ja\">CampaignAssetオブジェクトは、キャンペーンとアセット間の設定情報を表します。<br> SETおよびREPLACE時、このフィールドは必須となります。</div> <div lang=\"en\">AdGroupAsset describes configuration information between campaign and assets.<br> This field is required in SET and REPLACE operation.</div> */ @ApiModel(description = "
CampaignAssetオブジェクトは、キャンペーンとアセット間の設定情報を表します。
SETおよびREPLACE時、このフィールドは必須となります。
AdGroupAsset describes configuration information between campaign and assets.
This field is required in SET and REPLACE operation.
") @JsonPropertyOrder({ CampaignAsset.JSON_PROPERTY_ACCOUNT_ID, CampaignAsset.JSON_PROPERTY_CAMPAIGN_ID, CampaignAsset.JSON_PROPERTY_ASSET_ID, CampaignAsset.JSON_PROPERTY_TYPE, CampaignAsset.JSON_PROPERTY_USER_STATUS }) @JsonTypeName("CampaignAsset") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CampaignAsset { 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_ASSET_ID = "assetId"; private Long assetId; public static final String JSON_PROPERTY_TYPE = "type"; private CampaignAssetServiceType type; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; private CampaignAssetServiceUserStatus userStatus; public CampaignAsset() { } public CampaignAsset accountId(Long accountId) { this.accountId = accountId; return this; } /** * <div lang=\"ja\">アカウントIDです。</div> <div lang=\"en\">Account ID.</div> * @return accountId **/ @javax.annotation.Nullable @ApiModelProperty(value = "
アカウントIDです。
Account ID.
") @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 CampaignAsset campaignId(Long campaignId) { this.campaignId = campaignId; return this; } /** * <div lang=\"ja\">キャンペーンIDです。<br> SET時、このフィールドは必須となります。</div> <div lang=\"en\">Campaign ID.<br> This field is required in SET operation.</div> * @return campaignId **/ @javax.annotation.Nullable @ApiModelProperty(value = "
キャンペーンIDです。
SET時、このフィールドは必須となります。
Campaign ID.
This field is required in SET operation.
") @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 CampaignAsset assetId(Long assetId) { this.assetId = assetId; return this; } /** * <div lang=\"ja\">アセットのIDです。<br> SETおよびREPLACE時、このフィールドは必須となります。<br> SET時、このフィールドは更新対象のアセットIDを入力してください。<br> REPLACE時、このフィールドはキャンペーンに設定するアセットIDを入力してください。</div> <div lang=\"en\">Asset ID.<br> This field is required in SET and REPLACE operation.<br> In SET operation, enter the asset ID to be updated.<br> In REPLACE operation, enter the asset ID to be set for the campaign.</div> * @return assetId **/ @javax.annotation.Nullable @ApiModelProperty(value = "
アセットのIDです。
SETおよびREPLACE時、このフィールドは必須となります。
SET時、このフィールドは更新対象のアセットIDを入力してください。
REPLACE時、このフィールドはキャンペーンに設定するアセットIDを入力してください。
Asset ID.
This field is required in SET and REPLACE operation.
In SET operation, enter the asset ID to be updated.
In REPLACE operation, enter the asset ID to be set for the campaign.
") @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getAssetId() { return assetId; } @JsonProperty(JSON_PROPERTY_ASSET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAssetId(Long assetId) { this.assetId = assetId; } public CampaignAsset type(CampaignAssetServiceType 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 CampaignAssetServiceType getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(CampaignAssetServiceType type) { this.type = type; } public CampaignAsset userStatus(CampaignAssetServiceUserStatus userStatus) { this.userStatus = userStatus; return this; } /** * Get userStatus * @return userStatus **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public CampaignAssetServiceUserStatus getUserStatus() { return userStatus; } @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(CampaignAssetServiceUserStatus userStatus) { this.userStatus = userStatus; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CampaignAsset campaignAsset = (CampaignAsset) o; return Objects.equals(this.accountId, campaignAsset.accountId) && Objects.equals(this.campaignId, campaignAsset.campaignId) && Objects.equals(this.assetId, campaignAsset.assetId) && Objects.equals(this.type, campaignAsset.type) && Objects.equals(this.userStatus, campaignAsset.userStatus); } @Override public int hashCode() { return Objects.hash(accountId, campaignId, assetId, type, userStatus); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CampaignAsset {\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" userStatus: ").append(toIndentedString(userStatus)).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 "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy