Class KinesisVideoClientConfiguration.Builder
- java.lang.Object
-
- com.amazonaws.kinesisvideo.client.KinesisVideoClientConfiguration.Builder
-
- Enclosing class:
- KinesisVideoClientConfiguration
public static class KinesisVideoClientConfiguration.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KinesisVideoClientConfigurationbuild()KinesisVideoClientConfiguration.BuilderuseInstrumentedAllocators()KinesisVideoClientConfiguration.BuilderwithCredentialsProvider(KinesisVideoCredentialsProvider credentialsProvider)Credentials Provider to fetch credentials from, and how often to rotate the credentials.KinesisVideoClientConfiguration.BuilderwithEndpoint(String endpoint)KinesisVideoClientConfiguration.BuilderwithIPVersionFilter(IPVersionFilter ipVersionFilter)KinesisVideoClientConfiguration.BuilderwithIsLegacyEndpoint(Boolean isLegacyEndpoint)KinesisVideoClientConfiguration.BuilderwithRegion(String region)KinesisVideoClientConfiguration.BuilderwithStorageCallbacks(StorageCallbacks storageCallbacks)
-
-
-
Method Detail
-
withRegion
public KinesisVideoClientConfiguration.Builder withRegion(String region)
-
withCredentialsProvider
public KinesisVideoClientConfiguration.Builder withCredentialsProvider(KinesisVideoCredentialsProvider credentialsProvider)
Credentials Provider to fetch credentials from, and how often to rotate the credentials.- Parameters:
credentialsProvider- The KVS Producer client will refresh the credentials based on the provider's configured rotation interval. During client initialization, the Producer client fetches the latest credentials once, and then everyrotationPeriodinterval afterward.The client will pass these cached credentials to the
ServiceCallbacksfor ControlPlane operations. It is ServiceCallbacks responsibility to construct the request with the provided serialized credentials.For PutMedia (DataPlane) operation, the client will fetch the credentials via the stream's GetStreamingToken state, then pass those serialized credentials to the PutStream operation.
It is important to configure the rotationPeriod to be less than the AWS-configured expiration time (e.g. role duration seconds) to prevent the client from using stale credentials during API operations.
Use
JavaCredentialsFactoryfor constructor convenience.- Returns:
- This Builder instance to allow method chaining
- See Also:
JavaCredentialsProviderImpl.updateCredentials()
-
withStorageCallbacks
public KinesisVideoClientConfiguration.Builder withStorageCallbacks(StorageCallbacks storageCallbacks)
-
withEndpoint
public KinesisVideoClientConfiguration.Builder withEndpoint(String endpoint)
-
withIsLegacyEndpoint
public KinesisVideoClientConfiguration.Builder withIsLegacyEndpoint(Boolean isLegacyEndpoint)
-
withIPVersionFilter
public KinesisVideoClientConfiguration.Builder withIPVersionFilter(IPVersionFilter ipVersionFilter)
-
useInstrumentedAllocators
public KinesisVideoClientConfiguration.Builder useInstrumentedAllocators()
-
build
public KinesisVideoClientConfiguration build()
-
-