All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.kusto.data.http.HttpTracing Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package com.microsoft.azure.kusto.data.http;

import com.microsoft.azure.kusto.data.ClientDetails;
import com.microsoft.azure.kusto.data.ClientRequestProperties;

public class HttpTracing {
    private ClientRequestProperties properties;
    private String clientRequestIdPrefix;
    private String activityTypeSuffix;
    private ClientDetails clientDetails;

    private HttpTracing() {
    }

    public ClientRequestProperties getProperties() {
        return properties;
    }

    public void setProperties(ClientRequestProperties properties) {
        this.properties = properties;
    }

    public String getClientRequestIdPrefix() {
        return clientRequestIdPrefix;
    }

    public void setClientRequestIdPrefix(String clientRequestIdPrefix) {
        this.clientRequestIdPrefix = clientRequestIdPrefix;
    }

    public String getActivityTypeSuffix() {
        return activityTypeSuffix;
    }

    public void setActivityTypeSuffix(String activityTypeSuffix) {
        this.activityTypeSuffix = activityTypeSuffix;
    }

    public ClientDetails getClientDetails() {
        return clientDetails;
    }

    public void setClientDetails(ClientDetails clientDetails) {
        this.clientDetails = clientDetails;
    }

    public static HttpTracingBuilder newBuilder() {
        return new HttpTracingBuilder();
    }

    public static class HttpTracingBuilder {

        private final HttpTracing tracing = new HttpTracing();

        public HttpTracingBuilder() {
        }

        public HttpTracingBuilder withClientDetails(ClientDetails clientDetails) {
            tracing.setClientDetails(clientDetails);
            return this;
        }

        public HttpTracingBuilder withProperties(ClientRequestProperties properties) {
            tracing.setProperties(properties);
            return this;
        }

        public HttpTracingBuilder withRequestPrefix(String requestPrefix) {
            tracing.setClientRequestIdPrefix(requestPrefix);
            return this;
        }

        public HttpTracingBuilder withActivitySuffix(String activitySuffix) {
            tracing.setActivityTypeSuffix(activitySuffix);
            return this;
        }

        public HttpTracing build() {
            return tracing;
        }

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy