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

apis.beta.acs.AcsRequestBuilder Maven / Gradle / Ivy

The newest version!
package com.openshift.cloud.api.serviceaccounts.apis.beta.acs;

import com.microsoft.kiota.RequestAdapter;
import com.openshift.cloud.api.serviceaccounts.apis.beta.acs.v1.item.WithClientItemRequestBuilder;
import com.openshift.cloud.api.serviceaccounts.apis.beta.acs.v1.V1RequestBuilder;
import java.util.HashMap;
import java.util.Objects;
/**
 * Builds and executes requests for operations under /apis/beta/acs
 */
public class AcsRequestBuilder {
    /** Path parameters for the request */
    private HashMap pathParameters;
    /** The request adapter to use to execute the requests. */
    private RequestAdapter requestAdapter;
    /** Url template to use to build the URL for the current request builder */
    private String urlTemplate;
    /** The v1 property */
    @javax.annotation.Nonnull
    public V1RequestBuilder v1() {
        return new V1RequestBuilder(pathParameters, requestAdapter);
    }
    /**
     * Instantiates a new AcsRequestBuilder and sets the default values.
     * @param pathParameters Path parameters for the request
     * @param requestAdapter The request adapter to use to execute the requests.
     * @return a void
     */
    @javax.annotation.Nullable
    public AcsRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) {
        Objects.requireNonNull(pathParameters);
        Objects.requireNonNull(requestAdapter);
        this.urlTemplate = "{+baseurl}/apis/beta/acs";
        final HashMap urlTplParams = new HashMap(pathParameters);
        this.pathParameters = urlTplParams;
        this.requestAdapter = requestAdapter;
    }
    /**
     * Instantiates a new AcsRequestBuilder and sets the default values.
     * @param rawUrl The raw URL to use for the request builder.
     * @param requestAdapter The request adapter to use to execute the requests.
     * @return a void
     */
    @javax.annotation.Nullable
    public AcsRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) {
        this.urlTemplate = "{+baseurl}/apis/beta/acs";
        final HashMap urlTplParams = new HashMap();
        urlTplParams.put("request-raw-url", rawUrl);
        this.pathParameters = urlTplParams;
        this.requestAdapter = requestAdapter;
    }
    /**
     * Gets an item from the com.openshift.cloud.api.serviceaccounts.apis.beta.acs.v1.item collection
     * @param id Unique identifier of the item
     * @return a WithClientItemRequestBuilder
     */
    @javax.annotation.Nonnull
    public WithClientItemRequestBuilder v1(@javax.annotation.Nonnull final String id) {
        Objects.requireNonNull(id);
        final HashMap urlTplParams = new HashMap(this.pathParameters);
        urlTplParams.put("clientId", id);
        return new WithClientItemRequestBuilder(urlTplParams, requestAdapter);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy