B
- actual class of the builderC
- client classpublic abstract class AbstractStreamBasedClientBuilder<B extends AbstractStreamBasedClientBuilder,C> extends ClientBuilderBase<B,C>
A builder for a client that requires a stream.
Modifier and Type | Field and Description |
---|---|
protected Stream |
stream |
protected StreamSummary |
streamSummary |
additionalClientConfigurators, clientConfigurator, configuration, endpoint, requestSignerFactory
Constructor and Description |
---|
AbstractStreamBasedClientBuilder(Service service)
Creates a new
AbstractStreamBasedClientBuilder object. |
Modifier and Type | Method and Description |
---|---|
B |
copyFrom(B fromBuilder)
Set the values in this builder to be the same as in the provided other builder.
|
protected String |
getEndpoint()
Gets the endpoint that is either provided, defined within the stream, or defined within the
stream summary.
|
B |
stream(Stream stream)
Set the stream.
|
B |
streamSummary(StreamSummary streamSummary)
Set the stream summary.
|
additionalClientConfigurator, additionalClientConfigurators, build, clientConfigurator, configuration, endpoint, httpProvider, requestSignerFactory, signingStrategyRequestSignerFactories
protected Stream stream
protected StreamSummary streamSummary
public AbstractStreamBasedClientBuilder(Service service)
Creates a new AbstractStreamBasedClientBuilder
object.
public B stream(Stream stream)
Set the stream. May be null
stream
- the stream to use. May be null.public B streamSummary(StreamSummary streamSummary)
Set the stream summary. May be null
streamSummary
- the stream summary to use. May be nullprotected String getEndpoint()
Gets the endpoint that is either provided, defined within the stream, or defined within the stream summary.
IllegalArgumentException
- if more than one endpoint is definedpublic B copyFrom(B fromBuilder)
Set the values in this builder to be the same as in the provided other builder.
copyFrom
in class ClientBuilderBase<B extends AbstractStreamBasedClientBuilder,C>
fromBuilder
- other builderCopyright © 2016–2024. All rights reserved.