public final class AmazonKinesisVideoPutMediaClientBuilder extends Object
AmazonKinesisVideoPutMedia
. An instance of this builder may be obtained via AmazonKinesisVideoPutMediaClient.builder()
or via standard()
.Modifier and Type | Method and Description |
---|---|
AmazonKinesisVideoPutMedia |
build() |
Integer |
getConnectionTimeoutInMillis() |
AWSCredentialsProvider |
getCredentials() |
URI |
getEndpoint() |
Integer |
getNumberOfThreads() |
String |
getRegion() |
void |
setConnectionTimeoutInMillis(Integer connectionTimeoutInMillis)
Sets the timeout (in milliseconds) when establishing new connections to the service.
|
void |
setCredentials(AWSCredentialsProvider credentialsProvider)
Sets the
AWSCredentialsProvider used by the client. |
void |
setEndpoint(URI endpoint)
Sets the endpoint to make requests against.
|
void |
setNumberOfThreads(Integer numberOfThreads)
Sets the number of threads to use in the async event loop.
|
void |
setRegion(String region)
Sets the signing region to be used by the client.
|
static AmazonKinesisVideoPutMediaClientBuilder |
standard() |
AmazonKinesisVideoPutMediaClientBuilder |
withConnectionTimeoutInMillis(Integer connectionTimeoutInMillis)
Sets the timeout (in milliseconds) when establishing new connections to the service.
|
AmazonKinesisVideoPutMediaClientBuilder |
withCredentials(AWSCredentialsProvider credentialsProvider)
Sets the
AWSCredentialsProvider used by the client. |
AmazonKinesisVideoPutMediaClientBuilder |
withEndpoint(String endpoint)
Sets the endpoint to make requests against.
|
AmazonKinesisVideoPutMediaClientBuilder |
withEndpoint(URI endpoint)
Sets the endpoint to make requests against.
|
AmazonKinesisVideoPutMediaClientBuilder |
withNumberOfThreads(Integer numberOfThreads)
Sets the number of threads to use in the async event loop.
|
AmazonKinesisVideoPutMediaClientBuilder |
withRegion(Regions region)
Sets the signing region to be used by the client.
|
AmazonKinesisVideoPutMediaClientBuilder |
withRegion(String region)
Sets the signing region to be used by the client.
|
public static AmazonKinesisVideoPutMediaClientBuilder standard()
public AWSCredentialsProvider getCredentials()
AWSCredentialsProvider
currently configured in the builder.public void setCredentials(AWSCredentialsProvider credentialsProvider)
AWSCredentialsProvider
used by the client. If not specified then DefaultAWSCredentialsProviderChain
is used.credentialsProvider
- New AWSCredentialsProvider
to use.public AmazonKinesisVideoPutMediaClientBuilder withCredentials(AWSCredentialsProvider credentialsProvider)
AWSCredentialsProvider
used by the client. If not specified then DefaultAWSCredentialsProviderChain
is used.credentialsProvider
- New AWSCredentialsProvider
to use.public String getRegion()
public void setRegion(String region)
setEndpoint(URI)
or withEndpoint(URI)
methods.region
- Region to sign with.public AmazonKinesisVideoPutMediaClientBuilder withRegion(String region)
setEndpoint(URI)
or withEndpoint(URI)
methods.region
- Region to sign with.public AmazonKinesisVideoPutMediaClientBuilder withRegion(Regions region)
setEndpoint(URI)
or withEndpoint(URI)
methods.
For regions that are not in the Regions
enum, setRegion(String)
or withRegion(String)
should
be used instead.
region
- Region to sign with.public Integer getConnectionTimeoutInMillis()
public void setConnectionTimeoutInMillis(Integer connectionTimeoutInMillis)
connectionTimeoutInMillis
- New connection timeout value in milliseconds.public AmazonKinesisVideoPutMediaClientBuilder withConnectionTimeoutInMillis(Integer connectionTimeoutInMillis)
connectionTimeoutInMillis
- New connection timeout value in milliseconds.public URI getEndpoint()
public void setEndpoint(URI endpoint)
endpoint
- Endpoint to use.public AmazonKinesisVideoPutMediaClientBuilder withEndpoint(URI endpoint)
endpoint
- Endpoint to use.public AmazonKinesisVideoPutMediaClientBuilder withEndpoint(String endpoint)
endpoint
- Endpoint to use.public Integer getNumberOfThreads()
public void setNumberOfThreads(Integer numberOfThreads)
numberOfThreads
- Number of threads to use in the event loop.public AmazonKinesisVideoPutMediaClientBuilder withNumberOfThreads(Integer numberOfThreads)
numberOfThreads
- Number of threads to use in the event loop.public AmazonKinesisVideoPutMedia build()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.