Package com.vk.api.sdk.queries.ads
Class AdsCheckLinkQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<AdsCheckLinkQuery,CheckLinkResponse>
-
- com.vk.api.sdk.queries.ads.AdsCheckLinkQuery
-
public class AdsCheckLinkQuery extends AbstractQueryBuilder<AdsCheckLinkQuery,CheckLinkResponse>
Query for Ads.checkLink method
-
-
Constructor Summary
Constructors Constructor Description AdsCheckLinkQuery(VkApiClient client, UserActor actor, int accountId, CheckLinkLinkType linkType, java.lang.String linkUrl)Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AdsCheckLinkQueryaccountId(int value)Advertising account ID.AdsCheckLinkQuerycampaignId(java.lang.Integer value)Campaign IDprotected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected AdsCheckLinkQuerygetThis()Get reference to this objectprotected AdsCheckLinkQuerylinkType(CheckLinkLinkType value)Object type: *'community' — community,, *'post' — community post,, *'application' — VK application,, *'video' — video,, *'site' — external site.protected AdsCheckLinkQuerylinkUrl(java.lang.String value)Object URL.-
Methods inherited from class com.vk.api.sdk.client.AbstractQueryBuilder
accessToken, build, captchaKey, captchaSid, clientSecret, confirm, getBody, getMethod, getParams, lang, toString, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, version
-
Methods inherited from class com.vk.api.sdk.client.ApiRequest
execute, executeAsRaw, executeAsString, getClient, getGson, getHeaders, getResponseClass, getUrl, setHeaders
-
-
-
-
Constructor Detail
-
AdsCheckLinkQuery
public AdsCheckLinkQuery(VkApiClient client, UserActor actor, int accountId, CheckLinkLinkType linkType, java.lang.String linkUrl)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenaccountId- value of "account id" parameter.linkType- value of "link type" parameter.linkUrl- value of "link url" parameter.
-
-
Method Detail
-
accountId
protected AdsCheckLinkQuery accountId(int value)
Advertising account ID.- Parameters:
value- value of "account id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
linkType
protected AdsCheckLinkQuery linkType(CheckLinkLinkType value)
Object type: *'community' — community,, *'post' — community post,, *'application' — VK application,, *'video' — video,, *'site' — external site.- Parameters:
value- value of "link type" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
linkUrl
protected AdsCheckLinkQuery linkUrl(java.lang.String value)
Object URL.- Parameters:
value- value of "link url" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
campaignId
public AdsCheckLinkQuery campaignId(java.lang.Integer value)
Campaign ID- Parameters:
value- value of "campaign id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected AdsCheckLinkQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<AdsCheckLinkQuery,CheckLinkResponse>- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()
Description copied from class:AbstractQueryBuilderGet list of required parameter names- Specified by:
essentialKeysin classAbstractQueryBuilder<AdsCheckLinkQuery,CheckLinkResponse>- Returns:
- list of names
-
-