Interface CreateApiRequest.Builder
- All Superinterfaces:
AppSyncRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateApiRequest.Builder,
,CreateApiRequest> SdkBuilder<CreateApiRequest.Builder,
,CreateApiRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateApiRequest
@Mutable
@NotThreadSafe
public static interface CreateApiRequest.Builder
extends AppSyncRequest.Builder, SdkPojo, CopyableBuilder<CreateApiRequest.Builder,CreateApiRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateApiRequest.Builder
eventConfig
(Consumer<EventConfig.Builder> eventConfig) The Event API configuration.eventConfig
(EventConfig eventConfig) The Event API configuration.The name for theApi
.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.ownerContact
(String ownerContact) The owner contact information for theApi
.Sets the value of the Tags property for this object.Methods inherited from interface software.amazon.awssdk.services.appsync.model.AppSyncRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name for the
Api
.- Parameters:
name
- The name for theApi
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerContact
The owner contact information for the
Api
.- Parameters:
ownerContact
- The owner contact information for theApi
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags
- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventConfig
The Event API configuration. This includes the default authorization configuration for connecting, publishing, and subscribing to an Event API.
- Parameters:
eventConfig
- The Event API configuration. This includes the default authorization configuration for connecting, publishing, and subscribing to an Event API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventConfig
The Event API configuration. This includes the default authorization configuration for connecting, publishing, and subscribing to an Event API.
This is a convenience method that creates an instance of theEventConfig.Builder
avoiding the need to create one manually viaEventConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventConfig(EventConfig)
.- Parameters:
eventConfig
- a consumer that will call methods onEventConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateApiRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateApiRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-