#[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
source§fn eq(&self, other: &DeleteAgentBuilder) -> bool
fn eq(&self, other: &DeleteAgentBuilder) -> bool
self and other values to be equal, and is used
by ==.