primary
The main Region of the endpoint.
- Parameters:
primary- The main Region of the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
Buildable, CopyableBuilder<FailoverConfig.Builder,FailoverConfig> , SdkBuilder<FailoverConfig.Builder,FailoverConfig> , SdkPojoFailoverConfigdefault FailoverConfig.Builderprimary(Consumer<Primary.Builder> primary) default FailoverConfig.Buildersecondary(Consumer<Secondary.Builder> secondary) copyapplyMutation, buildequalsBySdkFields, sdkFieldNameToField, sdkFieldsThe main Region of the endpoint.
primary - The main Region of the endpoint.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.BuilderThe 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.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