Interface CreateConnectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateConnectionRequest.Builder,,CreateConnectionRequest> EventBridgeRequest.Builder,SdkBuilder<CreateConnectionRequest.Builder,,CreateConnectionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateConnectionRequest
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationType(String authorizationType) The type of authorization to use for the connection.authorizationType(ConnectionAuthorizationType authorizationType) The type of authorization to use for the connection.default CreateConnectionRequest.BuilderauthParameters(Consumer<CreateConnectionAuthRequestParameters.Builder> authParameters) ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.authParameters(CreateConnectionAuthRequestParameters authParameters) ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.description(String description) A description for the connection to create.The name for the connection to create.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.eventbridge.model.EventBridgeRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name for the connection to create.
- Parameters:
name- The name for the connection to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description for the connection to create.
- Parameters:
description- A description for the connection to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationType
The type of authorization to use for the connection.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
- Parameters:
authorizationType- The type of authorization to use for the connection.OAUTH tokens are refreshed when a 401 or 407 response is returned.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authorizationType
The type of authorization to use for the connection.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
- Parameters:
authorizationType- The type of authorization to use for the connection.OAUTH tokens are refreshed when a 401 or 407 response is returned.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authParameters
CreateConnectionRequest.Builder authParameters(CreateConnectionAuthRequestParameters authParameters) A
CreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.- Parameters:
authParameters- ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authParameters
default CreateConnectionRequest.Builder authParameters(Consumer<CreateConnectionAuthRequestParameters.Builder> authParameters) A
This is a convenience method that creates an instance of theCreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.CreateConnectionAuthRequestParameters.Builderavoiding the need to create one manually viaCreateConnectionAuthRequestParameters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauthParameters(CreateConnectionAuthRequestParameters).- Parameters:
authParameters- a consumer that will call methods onCreateConnectionAuthRequestParameters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateConnectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateConnectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-