Interface CreateApiKeyResponse.Builder
- All Superinterfaces:
AppSyncResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateApiKeyResponse.Builder,
,CreateApiKeyResponse> SdkBuilder<CreateApiKeyResponse.Builder,
,CreateApiKeyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateApiKeyResponse
public static interface CreateApiKeyResponse.Builder
extends AppSyncResponse.Builder, SdkPojo, CopyableBuilder<CreateApiKeyResponse.Builder,CreateApiKeyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateApiKeyResponse.Builder
apiKey
(Consumer<ApiKey.Builder> apiKey) The API key.The API key.Methods inherited from interface software.amazon.awssdk.services.appsync.model.AppSyncResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
apiKey
The API key.
- Parameters:
apiKey
- The API key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiKey
The API key.
This is a convenience method that creates an instance of theApiKey.Builder
avoiding the need to create one manually viaApiKey.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapiKey(ApiKey)
.- Parameters:
apiKey
- a consumer that will call methods onApiKey.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-