TestandtargetCallOptions.java 2.22 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  aQute.bnd.annotation.ProviderType
 */
package com.day.cq.analytics.testandtarget;

import aQute.bnd.annotation.ProviderType;
import com.day.cq.analytics.testandtarget.TestandtargetHttpClient;
import com.day.cq.analytics.testandtarget.TestandtargetHttpParameters;

@ProviderType
public class TestandtargetCallOptions {
    private TestandtargetHttpClient.TestandtargetMethodType callMethod = TestandtargetHttpClient.TestandtargetMethodType.GET;
    private String clientCode;
    private String location;
    private TestandtargetHttpClient.TestandtargetSolution solution = TestandtargetHttpClient.TestandtargetSolution.TARGET;
    private TestandtargetHttpParameters httpParameters;
    private String apiVersion;

    public TestandtargetCallOptions withCallMethod(TestandtargetHttpClient.TestandtargetMethodType callMethod) {
        this.callMethod = callMethod;
        return this;
    }

    public TestandtargetCallOptions withClientCode(String clientCode) {
        this.clientCode = clientCode;
        return this;
    }

    public TestandtargetCallOptions withLocation(String location) {
        this.location = location;
        return this;
    }

    public TestandtargetCallOptions withSolution(TestandtargetHttpClient.TestandtargetSolution solution) {
        this.solution = solution;
        return this;
    }

    public TestandtargetCallOptions withParameters(TestandtargetHttpParameters httpParameters) {
        this.httpParameters = httpParameters;
        return this;
    }

    public TestandtargetCallOptions withApiVersion(String apiVersion) {
        this.apiVersion = apiVersion;
        return this;
    }

    public TestandtargetHttpClient.TestandtargetMethodType getCallMethod() {
        return this.callMethod;
    }

    public String getClientCode() {
        return this.clientCode;
    }

    public String getLocation() {
        return this.location;
    }

    public TestandtargetHttpClient.TestandtargetSolution getSolution() {
        return this.solution;
    }

    public TestandtargetHttpParameters getHttpParameters() {
        return this.httpParameters;
    }

    public String getApiVersion() {
        return this.apiVersion;
    }
}