#[non_exhaustive]pub struct DeleteAgentBuilder { /* private fields */ }Expand description
A builder for DeleteAgent.
Implementations§
source§impl DeleteAgentBuilder
impl DeleteAgentBuilder
sourcepub fn agent_id(self, input: impl Into<String>) -> Self
pub fn agent_id(self, input: impl Into<String>) -> Self
The ID of the agent or data collector to delete.
This field is required.sourcepub fn set_agent_id(self, input: Option<String>) -> Self
pub fn set_agent_id(self, input: Option<String>) -> Self
The ID of the agent or data collector to delete.
sourcepub fn get_agent_id(&self) -> &Option<String>
pub fn get_agent_id(&self) -> &Option<String>
The ID of the agent or data collector to delete.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
Optional flag used to force delete an agent or data collector. It is needed to delete any agent in HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
Optional flag used to force delete an agent or data collector. It is needed to delete any agent in HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
Optional flag used to force delete an agent or data collector. It is needed to delete any agent in HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.
sourcepub fn build(self) -> Result<DeleteAgent, BuildError>
pub fn build(self) -> Result<DeleteAgent, BuildError>
Consumes the builder and constructs a DeleteAgent.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DeleteAgentBuilder
impl Clone for DeleteAgentBuilder
source§fn clone(&self) -> DeleteAgentBuilder
fn clone(&self) -> DeleteAgentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeleteAgentBuilder
impl Debug for DeleteAgentBuilder
source§impl Default for DeleteAgentBuilder
impl Default for DeleteAgentBuilder
source§fn default() -> DeleteAgentBuilder
fn default() -> DeleteAgentBuilder
source§impl PartialEq for DeleteAgentBuilder
impl PartialEq for DeleteAgentBuilder
impl StructuralPartialEq for DeleteAgentBuilder
Auto Trait Implementations§
impl Freeze for DeleteAgentBuilder
impl RefUnwindSafe for DeleteAgentBuilder
impl Send for DeleteAgentBuilder
impl Sync for DeleteAgentBuilder
impl Unpin for DeleteAgentBuilder
impl UnwindSafe for DeleteAgentBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more