Package com.vk.api.sdk.queries.groups
Class GroupsCreateQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<GroupsCreateQuery,CreateResponse>
-
- com.vk.api.sdk.queries.groups.GroupsCreateQuery
-
public class GroupsCreateQuery extends AbstractQueryBuilder<GroupsCreateQuery,CreateResponse>
Query for Groups.create method
-
-
Constructor Summary
Constructors Constructor Description GroupsCreateQuery(VkApiClient client, UserActor actor, java.lang.String title)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 GroupsCreateQuerydescription(java.lang.String value)Community description (ignored for 'type' = 'public').protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected GroupsCreateQuerygetThis()Get reference to this objectGroupsCreateQuerypublicCategory(java.lang.Integer value)Category ID (for 'type' = 'public' only).GroupsCreateQuerypublicSubcategory(java.lang.Integer value)Public page subcategory ID.GroupsCreateQuerysubtype(CreateSubtype value)Public page subtype.protected GroupsCreateQuerytitle(java.lang.String value)Community title.GroupsCreateQuerytype(CreateType value)Community type.-
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
-
GroupsCreateQuery
public GroupsCreateQuery(VkApiClient client, UserActor actor, java.lang.String title)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokentitle- value of "title" parameter.
-
-
Method Detail
-
title
protected GroupsCreateQuery title(java.lang.String value)
Community title.- Parameters:
value- value of "title" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
description
public GroupsCreateQuery description(java.lang.String value)
Community description (ignored for 'type' = 'public').- Parameters:
value- value of "description" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
type
public GroupsCreateQuery type(CreateType value)
Community type. Possible values: *'group' - group,, *'event' - event,, *'public' - public page- Parameters:
value- value of "type" parameter. By default group.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
publicCategory
public GroupsCreateQuery publicCategory(java.lang.Integer value)
Category ID (for 'type' = 'public' only).- Parameters:
value- value of "public category" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
publicSubcategory
public GroupsCreateQuery publicSubcategory(java.lang.Integer value)
Public page subcategory ID.- Parameters:
value- value of "public subcategory" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
subtype
public GroupsCreateQuery subtype(CreateSubtype value)
Public page subtype. Possible values: *'1' - place or small business,, *'2' - company, organization or website,, *'3' - famous person or group of people,, *'4' - product or work of art.- Parameters:
value- value of "subtype" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected GroupsCreateQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<GroupsCreateQuery,CreateResponse>- 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<GroupsCreateQuery,CreateResponse>- Returns:
- list of names
-
-