
com.vk.api.sdk.queries.wall.WallPostAdsStealthQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.
The newest version!
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.wall;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.objects.annotations.ApiParam;
import com.vk.api.sdk.objects.wall.responses.PostAdsStealthResponse;
import java.util.Arrays;
import java.util.List;
/**
* Query for Wall.postAdsStealth method
*/
public class WallPostAdsStealthQuery extends AbstractQueryBuilder {
/**
* Creates a AbstractQueryBuilder instance that can be used to build user api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
* @param ownerId value of "owner id" parameter. Entity - owner
*
*/
public WallPostAdsStealthQuery(VkApiClient client, UserActor actor, Long ownerId) {
super(client, "wall.postAdsStealth", PostAdsStealthResponse.class);
accessToken(actor.getAccessToken());
ownerId(ownerId);
}
/**
* Creates a AbstractQueryBuilder instance that can be used to build user api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
*/
public WallPostAdsStealthQuery(VkApiClient client, UserActor actor) {
super(client, "wall.postAdsStealth", PostAdsStealthResponse.class);
accessToken(actor.getAccessToken());
}
/**
* User ID or community ID. Use a negative value to designate a community ID.
*
* @param value value of "owner id" parameter. Entity - owner
*
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("owner_id")
public WallPostAdsStealthQuery ownerId(Long value) {
return unsafeParam("owner_id", value);
}
/**
* (Required if 'attachments' is not set.) Text of the post.
*
* @param value value of "message" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("message")
public WallPostAdsStealthQuery message(String value) {
return unsafeParam("message", value);
}
/**
* Only for posts in communities with 'from_group' set to '1': '1' - post will be signed with the name of the posting user, '0' - post will not be signed (default)
*
* @param value value of "signed" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("signed")
public WallPostAdsStealthQuery signed(Boolean value) {
return unsafeParam("signed", value);
}
/**
* Geographical latitude of a check-in, in degrees (from -90 to 90).
*
* @param value value of "lat" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("lat")
public WallPostAdsStealthQuery lat(Number value) {
return unsafeParam("lat", value);
}
/**
* Geographical longitude of a check-in, in degrees (from -180 to 180).
*
* @param value value of "long" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("long")
public WallPostAdsStealthQuery lng(Number value) {
return unsafeParam("long", value);
}
/**
* ID of the location where the user was tagged.
*
* @param value value of "place id" parameter. Minimum is 0.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("place_id")
public WallPostAdsStealthQuery placeId(Integer value) {
return unsafeParam("place_id", value);
}
/**
* Unique identifier to avoid duplication the same post.
*
* @param value value of "guid" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("guid")
public WallPostAdsStealthQuery guid(String value) {
return unsafeParam("guid", value);
}
/**
* Link button ID
*
* @param value value of "link button" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("link_button")
public WallPostAdsStealthQuery linkButton(String value) {
return unsafeParam("link_button", value);
}
/**
* Link title
*
* @param value value of "link title" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("link_title")
public WallPostAdsStealthQuery linkTitle(String value) {
return unsafeParam("link_title", value);
}
/**
* Link image url
*
* @param value value of "link image" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("link_image")
public WallPostAdsStealthQuery linkImage(String value) {
return unsafeParam("link_image", value);
}
/**
* Link video ID in format "_"
*
* @param value value of "link video" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("link_video")
public WallPostAdsStealthQuery linkVideo(String value) {
return unsafeParam("link_video", value);
}
/**
* attachments
* (Required if 'message' is not set.) List of objects attached to the post, in the following format: "_,_", ' - Type of media attachment: 'photo' - photo, 'video' - video, 'audio' - audio, 'doc' - document, 'page' - wiki-page, 'note' - note, 'poll' - poll, 'album' - photo album, '' - ID of the media application owner. '' - Media application ID. Example: "photo100172_166443618,photo66748_265827614", May contain a link to an external page to include in the post. Example: "photo66748_265827614,http://habrahabr.ru", "NOTE: If more than one link is being attached, an error will be thrown."
*
* @param value value of "attachments" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("attachments")
public WallPostAdsStealthQuery attachments(String... value) {
return unsafeParam("attachments", value);
}
/**
* (Required if 'message' is not set.) List of objects attached to the post, in the following format: "_,_", ' - Type of media attachment: 'photo' - photo, 'video' - video, 'audio' - audio, 'doc' - document, 'page' - wiki-page, 'note' - note, 'poll' - poll, 'album' - photo album, '' - ID of the media application owner. '' - Media application ID. Example: "photo100172_166443618,photo66748_265827614", May contain a link to an external page to include in the post. Example: "photo66748_265827614,http://habrahabr.ru", "NOTE: If more than one link is being attached, an error will be thrown."
*
* @param value value of "attachments" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("attachments")
public WallPostAdsStealthQuery attachments(List value) {
return unsafeParam("attachments", value);
}
@Override
protected WallPostAdsStealthQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("owner_id", "access_token");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy