Interface UpdateRelayRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateRelayRequest.Builder,
,UpdateRelayRequest> MailManagerRequest.Builder
,SdkBuilder<UpdateRelayRequest.Builder,
,UpdateRelayRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateRelayRequest
@Mutable
@NotThreadSafe
public static interface UpdateRelayRequest.Builder
extends MailManagerRequest.Builder, SdkPojo, CopyableBuilder<UpdateRelayRequest.Builder,UpdateRelayRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdateRelayRequest.Builder
authentication
(Consumer<RelayAuthentication.Builder> authentication) Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.authentication
(RelayAuthentication authentication) Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The unique relay identifier.The name of the relay resource.serverName
(String serverName) The destination relay server address.serverPort
(Integer serverPort) The destination relay server port.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.services.mailmanager.model.MailManagerRequest.Builder
build
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
-
authentication
Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
- Parameters:
authentication
- Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authentication
default UpdateRelayRequest.Builder authentication(Consumer<RelayAuthentication.Builder> authentication) Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
This is a convenience method that creates an instance of theRelayAuthentication.Builder
avoiding the need to create one manually viaRelayAuthentication.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauthentication(RelayAuthentication)
.- Parameters:
authentication
- a consumer that will call methods onRelayAuthentication.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
relayId
The unique relay identifier.
- Parameters:
relayId
- The unique relay identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relayName
The name of the relay resource.
- Parameters:
relayName
- The name of the relay resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverName
The destination relay server address.
- Parameters:
serverName
- The destination relay server address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverPort
The destination relay server port.
- Parameters:
serverPort
- The destination relay server port.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateRelayRequest.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
UpdateRelayRequest.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.
-