pub struct AutopilotZoneBuilder { /* private fields */ }
Expand description
Builder for AutopilotZone
.
Implementations§
Source§impl AutopilotZoneBuilder
impl AutopilotZoneBuilder
Sourcepub fn servers(&mut self, value: Vec<String>) -> &mut Self
pub fn servers(&mut self, value: Vec<String>) -> &mut Self
Servers holds the list of servers in the redundancy zone.
Sourcepub fn voters(&mut self, value: Vec<String>) -> &mut Self
pub fn voters(&mut self, value: Vec<String>) -> &mut Self
Voters holds the list of servers that are voters in the redundancy zone.
Sourcepub fn failure_tolerance(&mut self, value: i64) -> &mut Self
pub fn failure_tolerance(&mut self, value: i64) -> &mut Self
FailureTolerance is the number of servers that could be lost without an outage occurring.
Sourcepub fn build(&self) -> Result<AutopilotZone, AutopilotZoneBuilderError>
pub fn build(&self) -> Result<AutopilotZone, AutopilotZoneBuilderError>
Trait Implementations§
Source§impl Clone for AutopilotZoneBuilder
impl Clone for AutopilotZoneBuilder
Source§fn clone(&self) -> AutopilotZoneBuilder
fn clone(&self) -> AutopilotZoneBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AutopilotZoneBuilder
impl RefUnwindSafe for AutopilotZoneBuilder
impl Send for AutopilotZoneBuilder
impl Sync for AutopilotZoneBuilder
impl Unpin for AutopilotZoneBuilder
impl UnwindSafe for AutopilotZoneBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more