Class TestandtargetCallOptions


  • @ProviderType
    public class TestandtargetCallOptions
    extends java.lang.Object
    Provides a nice way of grouping the options of an API call. Those options include (but are not limited to) the API location, the API method (GET, POST etc.), the API version to use etc.
    • Constructor Detail

      • TestandtargetCallOptions

        public TestandtargetCallOptions()
    • Method Detail

      • withClientCode

        public TestandtargetCallOptions withClientCode​(java.lang.String clientCode)
        Sets the client code
        Parameters:
        clientCode - the client code
        Returns:
        an instance of this object
      • withLocation

        public TestandtargetCallOptions withLocation​(java.lang.String location)
        Sets the API location to invoke.
        Parameters:
        location - the API location to invoke (e.g. /rest/v1/campaign or /rest/v5/segments
        Returns:
        an instance of this object
      • withApiVersion

        public TestandtargetCallOptions withApiVersion​(java.lang.String apiVersion)
        Sets the API version to invoke.
        Parameters:
        apiVersion - the API version to invoke. If null is supplied then the v1 version is used.
        Returns:
        an instance of this object
      • getClientCode

        public java.lang.String getClientCode()
        Returns the client code.
        Returns:
        a String object representing the client code
      • getLocation

        public java.lang.String getLocation()
        Returns API location to use
        Returns:
        a String object representing the location (e.g. campaign/23.json
      • getApiVersion

        public java.lang.String getApiVersion()
        Returns the API version used.
        Returns:
        a String object representing the API version.