@ProviderType
public class TestandtargetCallOptions
extends java.lang.Object
| Constructor and Description |
|---|
TestandtargetCallOptions() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApiVersion()
Returns the API version used.
|
TestandtargetHttpClient.TestandtargetMethodType |
getCallMethod()
Returns the call method (GET, POST etc.)
|
java.lang.String |
getClientCode()
Returns the client code.
|
TestandtargetHttpParameters |
getHttpParameters()
Returns the HTTP parameters.
|
java.lang.String |
getLocation()
Returns API location to use
|
TestandtargetHttpClient.TestandtargetSolution |
getSolution()
Returns the solution to be used.
|
TestandtargetCallOptions |
withApiVersion(java.lang.String apiVersion)
Sets the API version to invoke.
|
TestandtargetCallOptions |
withCallMethod(TestandtargetHttpClient.TestandtargetMethodType callMethod)
Adds the call method to the options.
|
TestandtargetCallOptions |
withClientCode(java.lang.String clientCode)
Sets the client code
|
TestandtargetCallOptions |
withLocation(java.lang.String location)
Sets the API location to invoke.
|
TestandtargetCallOptions |
withParameters(TestandtargetHttpParameters httpParameters)
Sets the HTTP parameters
|
TestandtargetCallOptions |
withSolution(TestandtargetHttpClient.TestandtargetSolution solution)
Sets the Adobe Target solution for which the options object is invoked
|
public TestandtargetCallOptions withCallMethod(TestandtargetHttpClient.TestandtargetMethodType callMethod)
callMethod - the HTTP method (GET, POST etc)public TestandtargetCallOptions withClientCode(java.lang.String clientCode)
clientCode - the client codepublic TestandtargetCallOptions withLocation(java.lang.String location)
location - the API location to invoke (e.g. /rest/v1/campaign or /rest/v5/segmentspublic TestandtargetCallOptions withSolution(TestandtargetHttpClient.TestandtargetSolution solution)
solution - the Adobe Target solution to use (Target or Target Recommendation)public TestandtargetCallOptions withParameters(TestandtargetHttpParameters httpParameters)
httpParameters - the additional HTTP parameterspublic TestandtargetCallOptions withApiVersion(java.lang.String apiVersion)
apiVersion - the API version to invoke. If null is supplied then the v1 version is used.public TestandtargetHttpClient.TestandtargetMethodType getCallMethod()
TestandtargetHttpClient.TestandtargetMethodType object representing the methodpublic java.lang.String getClientCode()
String object representing the client codepublic java.lang.String getLocation()
String object representing the location (e.g. campaign/23.jsonpublic TestandtargetHttpClient.TestandtargetSolution getSolution()
TestandtargetHttpClient.TestandtargetSolution object representing the methodpublic TestandtargetHttpParameters getHttpParameters()
TestandtargetHttpParameters object representing the additional HTTP parameters.public java.lang.String getApiVersion()
String object representing the API version.Copyright © 2010 - 2023 Adobe. All Rights Reserved