Class CreateStreamRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.streaming.requests.CreateStreamRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateStreamRequest,CreateStreamDetails>
- Enclosing class:
- CreateStreamRequest
public static class CreateStreamRequest.Builder extends Object implements BmcRequest.Builder<CreateStreamRequest,CreateStreamDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateStreamRequest.Builder
body$(CreateStreamDetails body)
Alternative setter for the body parameter.CreateStreamRequest
build()
Build the instance of CreateStreamRequest as configured by this builderCreateStreamRequest
buildWithoutInvocationCallback()
Build the instance of CreateStreamRequest as configured by this builderCreateStreamRequest.Builder
copy(CreateStreamRequest o)
Copy method to populate the builder with values from the given instance.CreateStreamRequest.Builder
createStreamDetails(CreateStreamDetails createStreamDetails)
The stream to create.CreateStreamRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.CreateStreamRequest.Builder
opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.CreateStreamRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
createStreamDetails
public CreateStreamRequest.Builder createStreamDetails(CreateStreamDetails createStreamDetails)
The stream to create.- Parameters:
createStreamDetails
- the value to set- Returns:
- this builder instance
-
opcRequestId
public CreateStreamRequest.Builder opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateStreamRequest.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 CreateStreamRequest.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 CreateStreamRequest.Builder copy(CreateStreamRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<CreateStreamRequest,CreateStreamDetails>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateStreamRequest build()
Build the instance of CreateStreamRequest 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<CreateStreamRequest,CreateStreamDetails>
- Returns:
- instance of CreateStreamRequest
-
body$
public CreateStreamRequest.Builder body$(CreateStreamDetails body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<CreateStreamRequest,CreateStreamDetails>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateStreamRequest buildWithoutInvocationCallback()
Build the instance of CreateStreamRequest 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 CreateStreamRequest
-
-