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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateApiKeyResponse.BuilderapiKey(Consumer<ApiKey.Builder> apiKey)The API key.CreateApiKeyResponse.BuilderapiKey(ApiKey apiKey)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 Detail
-
apiKey
CreateApiKeyResponse.Builder apiKey(ApiKey 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
default CreateApiKeyResponse.Builder apiKey(Consumer<ApiKey.Builder> apiKey)
The API key.
This is a convenience method that creates an instance of theApiKey.Builderavoiding the need to create one manually viaApiKey.builder().When the
Consumercompletes,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:
apiKey(ApiKey)
-
-