public static interface GetDataSourceResponse.Builder extends AppSyncResponse.Builder, CopyableBuilder<GetDataSourceResponse.Builder,GetDataSourceResponse>
Modifier and Type | Method and Description |
---|---|
default GetDataSourceResponse.Builder |
dataSource(Consumer<DataSource.Builder> dataSource)
The
DataSource object. |
GetDataSourceResponse.Builder |
dataSource(DataSource dataSource)
The
DataSource object. |
build
copy
apply, build
GetDataSourceResponse.Builder dataSource(DataSource dataSource)
The DataSource
object.
dataSource
- The DataSource
object.default GetDataSourceResponse.Builder dataSource(Consumer<DataSource.Builder> dataSource)
The DataSource
object.
DataSource.Builder
avoiding the need to create
one manually via DataSource.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to dataSource(DataSource)
.dataSource
- a consumer that will call methods on DataSource.Builder
dataSource(DataSource)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.