Class GenerateScopedAccessTokenRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.identitydataplane.requests.GenerateScopedAccessTokenRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<GenerateScopedAccessTokenRequest,GenerateScopedAccessTokenDetails>
- Enclosing class:
- GenerateScopedAccessTokenRequest
public static class GenerateScopedAccessTokenRequest.Builder extends Object implements BmcRequest.Builder<GenerateScopedAccessTokenRequest,GenerateScopedAccessTokenDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateScopedAccessTokenRequest.Builder
body$(GenerateScopedAccessTokenDetails body)
Alternative setter for the body parameter.GenerateScopedAccessTokenRequest
build()
Build the instance of GenerateScopedAccessTokenRequest as configured by this builderGenerateScopedAccessTokenRequest
buildWithoutInvocationCallback()
Build the instance of GenerateScopedAccessTokenRequest as configured by this builderGenerateScopedAccessTokenRequest.Builder
copy(GenerateScopedAccessTokenRequest o)
Copy method to populate the builder with values from the given instance.GenerateScopedAccessTokenRequest.Builder
generateScopedAccessTokenDetails(GenerateScopedAccessTokenDetails generateScopedAccessTokenDetails)
Scoped access token requestGenerateScopedAccessTokenRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.GenerateScopedAccessTokenRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
generateScopedAccessTokenDetails
public GenerateScopedAccessTokenRequest.Builder generateScopedAccessTokenDetails(GenerateScopedAccessTokenDetails generateScopedAccessTokenDetails)
Scoped access token request- Parameters:
generateScopedAccessTokenDetails
- the value to set- Returns:
- this builder instance
-
invocationCallback
public GenerateScopedAccessTokenRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback
- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public GenerateScopedAccessTokenRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration
- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public GenerateScopedAccessTokenRequest.Builder copy(GenerateScopedAccessTokenRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<GenerateScopedAccessTokenRequest,GenerateScopedAccessTokenDetails>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public GenerateScopedAccessTokenRequest build()
Build the instance of GenerateScopedAccessTokenRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuildWithoutInvocationCallback()
does not.This is the preferred method to build an instance.
- Specified by:
build
in interfaceBmcRequest.Builder<GenerateScopedAccessTokenRequest,GenerateScopedAccessTokenDetails>
- Returns:
- instance of GenerateScopedAccessTokenRequest
-
body$
public GenerateScopedAccessTokenRequest.Builder body$(GenerateScopedAccessTokenDetails body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<GenerateScopedAccessTokenRequest,GenerateScopedAccessTokenDetails>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public GenerateScopedAccessTokenRequest buildWithoutInvocationCallback()
Build the instance of GenerateScopedAccessTokenRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuild()
does- Returns:
- instance of GenerateScopedAccessTokenRequest
-
-