pub struct Builder { /* private fields */ }
Expand description
A builder for BackendServerDescription
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn instance_port(self, input: i32) -> Self
pub fn instance_port(self, input: i32) -> Self
The port on which the EC2 instance is listening.
sourcepub fn set_instance_port(self, input: Option<i32>) -> Self
pub fn set_instance_port(self, input: Option<i32>) -> Self
The port on which the EC2 instance is listening.
sourcepub fn policy_names(self, input: impl Into<String>) -> Self
pub fn policy_names(self, input: impl Into<String>) -> Self
Appends an item to policy_names
.
To override the contents of this collection use set_policy_names
.
The names of the policies enabled for the EC2 instance.
sourcepub fn set_policy_names(self, input: Option<Vec<String>>) -> Self
pub fn set_policy_names(self, input: Option<Vec<String>>) -> Self
The names of the policies enabled for the EC2 instance.
sourcepub fn build(self) -> BackendServerDescription
pub fn build(self) -> BackendServerDescription
Consumes the builder and constructs a BackendServerDescription
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more