@@ -512,8 +512,9 @@ static AsyncRequestBody empty() {
512
512
* than or equal to {@code chunkSizeInBytes}. Note that this behavior may be different if a specific implementation of this
513
513
* interface overrides this method.
514
514
*
515
- * @see AsyncRequestBodySplitConfiguration
515
+ * @deprecated use {@link #splitCloseable( AsyncRequestBodySplitConfiguration)} instead.
516
516
*/
517
+ @ Deprecated
517
518
default SdkPublisher <AsyncRequestBody > split (AsyncRequestBodySplitConfiguration splitConfiguration ) {
518
519
Validate .notNull (splitConfiguration , "splitConfiguration" );
519
520
return SplittingPublisher .builder ()
@@ -537,6 +538,10 @@ default SdkPublisher<AsyncRequestBody> split(AsyncRequestBodySplitConfiguration
537
538
* Caller is responsible for closing {@link CloseableAsyncRequestBody} when it is ready to be disposed to release any
538
539
* resources.
539
540
*
541
+ * <p><b>Note:</b> This method is primarily intended for use by AWS SDK high-level libraries and internal components.
542
+ * SDK customers should typically use higher-level APIs provided by service clients rather than calling this method directly.
543
+ *
544
+ * @see #splitCloseable(Consumer)
540
545
* @see AsyncRequestBodySplitConfiguration
541
546
*/
542
547
default SdkPublisher <CloseableAsyncRequestBody > splitCloseable (AsyncRequestBodySplitConfiguration splitConfiguration ) {
@@ -553,7 +558,9 @@ default SdkPublisher<CloseableAsyncRequestBody> splitCloseable(AsyncRequestBodyS
553
558
* avoiding the need to create one manually via {@link AsyncRequestBodySplitConfiguration#builder()}.
554
559
*
555
560
* @see #split(AsyncRequestBodySplitConfiguration)
561
+ * @deprecated use {@link #splitCloseable(Consumer)} instead
556
562
*/
563
+ @ Deprecated
557
564
default SdkPublisher <AsyncRequestBody > split (Consumer <AsyncRequestBodySplitConfiguration .Builder > splitConfiguration ) {
558
565
Validate .notNull (splitConfiguration , "splitConfiguration" );
559
566
return split (AsyncRequestBodySplitConfiguration .builder ().applyMutation (splitConfiguration ).build ());
@@ -563,7 +570,10 @@ default SdkPublisher<AsyncRequestBody> split(Consumer<AsyncRequestBodySplitConfi
563
570
* This is a convenience method that passes an instance of the {@link AsyncRequestBodySplitConfiguration} builder,
564
571
* avoiding the need to create one manually via {@link AsyncRequestBodySplitConfiguration#builder()}.
565
572
*
566
- * @see #splitCloseable(Consumer)
573
+ * <p><b>Note:</b> This method is primarily intended for use by AWS SDK high-level libraries and internal components.
574
+ * SDK customers should typically use higher-level APIs provided by service clients rather than calling this method directly.
575
+ *
576
+ * @see #splitCloseable(AsyncRequestBodySplitConfiguration)
567
577
*/
568
578
default SdkPublisher <CloseableAsyncRequestBody > splitCloseable (
569
579
Consumer <AsyncRequestBodySplitConfiguration .Builder > splitConfiguration ) {
0 commit comments