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

com.microsoft.rest.v2.EncodedParameter Maven / Gradle / Ivy

/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */

package com.microsoft.rest.v2;

/**
 * An EncodedParameter is the result of encoding a query parameter or header name/value pair for a
 * HTTP request. It contains the query parameter or header name, plus the query parameter's value or
 * header's value.
 */
class EncodedParameter {
    private final String name;
    private final String encodedValue;

    /**
     * Create a new EncodedParameter using the provided parameter name and encoded value.
     * @param name The name of the new parameter.
     * @param encodedValue The encoded value of the new parameter.
     */
    EncodedParameter(String name, String encodedValue) {
        this.name = name;
        this.encodedValue = encodedValue;
    }

    /**
     * Get this parameter's name.
     * @return The name of this parameter.
     */
    public String name() {
        return name;
    }

    /**
     * Get the encoded value for this parameter.
     * @return The encoded value for this parameter.
     */
    public String encodedValue() {
        return encodedValue;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy