public class EmailTagRequest extends java.lang.Object implements Request<GenericResponse>
UrbanAirshipClient
. Open Channel Tags Request will not function for Email.Request.HttpMethod
CONTENT_ENCODING_GZIP, CONTENT_TYPE_JSON, CONTENT_TYPE_TEXT_CSV, UA_VERSION_CSV, UA_VERSION_JSON
Constructor and Description |
---|
EmailTagRequest() |
Modifier and Type | Method and Description |
---|---|
EmailTagRequest |
addEmailChannel(java.lang.String channel)
Add an Email channel to the request audience.
|
EmailTagRequest |
addTags(java.lang.String tagGroup,
java.util.Set<java.lang.String> tags)
Add tag group and tags to add to channels.
|
boolean |
bearerTokenAuthRequired() |
boolean |
canUseBearerTokenAuth() |
ContentType |
getContentType() |
Request.HttpMethod |
getHttpMethod() |
java.lang.String |
getRequestBody() |
java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders() |
ResponseParser<GenericResponse> |
getResponseParser() |
java.net.URI |
getUri(java.net.URI baseUri) |
static EmailTagRequest |
newRequest()
Create new Email Channel tag mutation request.
|
EmailTagRequest |
removeTags(java.lang.String tagGroup,
java.util.Set<java.lang.String> tags)
Add tag group and tags to remove from channels.
|
EmailTagRequest |
setTags(java.lang.String tagGroup,
java.util.Set<java.lang.String> tags)
Add tag group and tags to set to channels.
|
public static EmailTagRequest newRequest()
public EmailTagRequest addEmailChannel(java.lang.String channel)
channel
- Stringpublic EmailTagRequest addTags(java.lang.String tagGroup, java.util.Set<java.lang.String> tags)
tagGroup
- Stringtags
- Set of Stringspublic EmailTagRequest removeTags(java.lang.String tagGroup, java.util.Set<java.lang.String> tags)
tagGroup
- Stringtags
- Set of Stringspublic EmailTagRequest setTags(java.lang.String tagGroup, java.util.Set<java.lang.String> tags)
tagGroup
- Stringtags
- Set of tagspublic Request.HttpMethod getHttpMethod()
getHttpMethod
in interface Request<GenericResponse>
public java.lang.String getRequestBody()
getRequestBody
in interface Request<GenericResponse>
public ContentType getContentType()
getContentType
in interface Request<GenericResponse>
public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
getRequestHeaders
in interface Request<GenericResponse>
public java.net.URI getUri(java.net.URI baseUri) throws java.net.URISyntaxException
getUri
in interface Request<GenericResponse>
java.net.URISyntaxException
public ResponseParser<GenericResponse> getResponseParser()
getResponseParser
in interface Request<GenericResponse>
public boolean bearerTokenAuthRequired()
bearerTokenAuthRequired
in interface Request<GenericResponse>
public boolean canUseBearerTokenAuth()
canUseBearerTokenAuth
in interface Request<GenericResponse>