Class Proxy
- java.lang.Object
-
- com.stackone.stackone_client_java.Proxy
-
public class Proxy extends java.lang.ObjectRouting API requests through StackOne directly to the underlying provider.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncProxyasync()Switches to the async SDK.StackoneProxyRequestRequestBuilderproxyRequest()Proxy RequestStackoneProxyRequestResponseproxyRequest(java.lang.String xAccountId, ProxyRequestBody proxyRequestBody)Proxy RequestStackoneProxyRequestResponseproxyRequest(java.lang.String xAccountId, ProxyRequestBody proxyRequestBody, java.util.Optional<Options> options)Proxy Request
-
-
-
Method Detail
-
async
public AsyncProxy async()
Switches to the async SDK.- Returns:
- The async SDK
-
proxyRequest
public StackoneProxyRequestRequestBuilder proxyRequest()
Proxy Request- Returns:
- The call builder
-
proxyRequest
public StackoneProxyRequestResponse proxyRequest(java.lang.String xAccountId, ProxyRequestBody proxyRequestBody)
Proxy Request- Parameters:
xAccountId- The account identifierproxyRequestBody-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
proxyRequest
public StackoneProxyRequestResponse proxyRequest(java.lang.String xAccountId, ProxyRequestBody proxyRequestBody, java.util.Optional<Options> options)
Proxy Request- Parameters:
xAccountId- The account identifierproxyRequestBody-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
-