public static interface FailoverConfig.Builder extends SdkPojo, CopyableBuilder<FailoverConfig.Builder,FailoverConfig>
Modifier and Type | Method and Description |
---|---|
default FailoverConfig.Builder |
primary(Consumer<Primary.Builder> primary)
The main Region of the endpoint.
|
FailoverConfig.Builder |
primary(Primary primary)
The main Region of the endpoint.
|
default FailoverConfig.Builder |
secondary(Consumer<Secondary.Builder> secondary)
The Region that events are routed to when failover is triggered or event replication is enabled.
|
FailoverConfig.Builder |
secondary(Secondary secondary)
The Region that events are routed to when failover is triggered or event replication is enabled.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
FailoverConfig.Builder primary(Primary primary)
The main Region of the endpoint.
primary
- The main Region of the endpoint.default FailoverConfig.Builder primary(Consumer<Primary.Builder> primary)
The main Region of the endpoint.
This is a convenience method that creates an instance of thePrimary.Builder
avoiding the need to
create one manually via Primary.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to primary(Primary)
.
primary
- a consumer that will call methods on Primary.Builder
primary(Primary)
FailoverConfig.Builder secondary(Secondary secondary)
The Region that events are routed to when failover is triggered or event replication is enabled.
secondary
- The Region that events are routed to when failover is triggered or event replication is enabled.default FailoverConfig.Builder secondary(Consumer<Secondary.Builder> secondary)
The Region that events are routed to when failover is triggered or event replication is enabled.
This is a convenience method that creates an instance of theSecondary.Builder
avoiding the need to
create one manually via Secondary.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to secondary(Secondary)
.
secondary
- a consumer that will call methods on Secondary.Builder
secondary(Secondary)
Copyright © 2022. All rights reserved.