Interface DataReplicationMetadataOutput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DataReplicationMetadataOutput.Builder,
,DataReplicationMetadataOutput> SdkBuilder<DataReplicationMetadataOutput.Builder,
,DataReplicationMetadataOutput> SdkPojo
- Enclosing class:
DataReplicationMetadataOutput
public static interface DataReplicationMetadataOutput.Builder
extends SdkPojo, CopyableBuilder<DataReplicationMetadataOutput.Builder,DataReplicationMetadataOutput>
-
Method Summary
Modifier and TypeMethodDescriptiondataReplicationCounterpart
(Consumer<DataReplicationCounterpart.Builder> dataReplicationCounterpart) Describes the replica/primary broker.dataReplicationCounterpart
(DataReplicationCounterpart dataReplicationCounterpart) Describes the replica/primary broker.dataReplicationRole
(String dataReplicationRole) Defines the role of this broker in a data replication pair.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, sdkFields
-
Method Details
-
dataReplicationCounterpart
DataReplicationMetadataOutput.Builder dataReplicationCounterpart(DataReplicationCounterpart dataReplicationCounterpart) Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.
- Parameters:
dataReplicationCounterpart
- Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataReplicationCounterpart
default DataReplicationMetadataOutput.Builder dataReplicationCounterpart(Consumer<DataReplicationCounterpart.Builder> dataReplicationCounterpart) Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.
This is a convenience method that creates an instance of theDataReplicationCounterpart.Builder
avoiding the need to create one manually viaDataReplicationCounterpart.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataReplicationCounterpart(DataReplicationCounterpart)
.- Parameters:
dataReplicationCounterpart
- a consumer that will call methods onDataReplicationCounterpart.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataReplicationRole
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
- Parameters:
dataReplicationRole
- Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-