pub struct AutopilotUpgradeBuilder { /* private fields */ }
Expand description
Builder for AutopilotUpgrade
.
Implementations§
Source§impl AutopilotUpgradeBuilder
impl AutopilotUpgradeBuilder
Sourcepub fn target_version_voters(&mut self, value: Vec<String>) -> &mut Self
pub fn target_version_voters(&mut self, value: Vec<String>) -> &mut Self
TargetVersionVoters holds the list of servers that are voters in the Raft configuration of the TargetVersion.
Sourcepub fn other_version_non_voters(&mut self, value: Vec<String>) -> &mut Self
pub fn other_version_non_voters(&mut self, value: Vec<String>) -> &mut Self
OtherVersionNonVoters holds the list of servers that are non-voters in the Raft configuration of a version other than the TargetVersion.
Sourcepub fn other_version_read_replicas(&mut self, value: Vec<String>) -> &mut Self
pub fn other_version_read_replicas(&mut self, value: Vec<String>) -> &mut Self
OtherVersionReadReplicas holds the list of servers that are read replicas in the Raft configuration of a version other than the TargetVersion.
Sourcepub fn redundancy_zones(
&mut self,
value: HashMap<String, AutopilotZoneUpgradeVersions>,
) -> &mut Self
pub fn redundancy_zones( &mut self, value: HashMap<String, AutopilotZoneUpgradeVersions>, ) -> &mut Self
RedundancyZones holds the list of servers in each redundancy zone for the TargetVersion.
Sourcepub fn other_version_voters(&mut self, value: Vec<String>) -> &mut Self
pub fn other_version_voters(&mut self, value: Vec<String>) -> &mut Self
OtherVersionVoters holds the list of servers that are voters in the Raft configuration of a version other than the TargetVersion.
Sourcepub fn target_version(&mut self, value: String) -> &mut Self
pub fn target_version(&mut self, value: String) -> &mut Self
TargetVersion is the version that the cluster is upgrading to.
Sourcepub fn target_version_non_voters(&mut self, value: Vec<String>) -> &mut Self
pub fn target_version_non_voters(&mut self, value: Vec<String>) -> &mut Self
TargetVersionNonVoters holds the list of servers that are non-voters in the Raft configuration of the TargetVersion.
Sourcepub fn target_version_read_replicas(&mut self, value: Vec<String>) -> &mut Self
pub fn target_version_read_replicas(&mut self, value: Vec<String>) -> &mut Self
TargetVersionReadReplicas holds the list of servers that are read replicas in the Raft configuration of the TargetVersion.
Sourcepub fn build(&self) -> Result<AutopilotUpgrade, AutopilotUpgradeBuilderError>
pub fn build(&self) -> Result<AutopilotUpgrade, AutopilotUpgradeBuilderError>
Trait Implementations§
Source§impl Clone for AutopilotUpgradeBuilder
impl Clone for AutopilotUpgradeBuilder
Source§fn clone(&self) -> AutopilotUpgradeBuilder
fn clone(&self) -> AutopilotUpgradeBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more