Struct aws_sdk_groundstation::types::builders::AgentDetailsBuilder
source · #[non_exhaustive]pub struct AgentDetailsBuilder { /* private fields */ }
Expand description
A builder for AgentDetails
.
Implementations§
source§impl AgentDetailsBuilder
impl AgentDetailsBuilder
sourcepub fn agent_version(self, input: impl Into<String>) -> Self
pub fn agent_version(self, input: impl Into<String>) -> Self
Current agent version.
This field is required.sourcepub fn set_agent_version(self, input: Option<String>) -> Self
pub fn set_agent_version(self, input: Option<String>) -> Self
Current agent version.
sourcepub fn get_agent_version(&self) -> &Option<String>
pub fn get_agent_version(&self) -> &Option<String>
Current agent version.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
ID of EC2 instance agent is running on.
This field is required.sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
ID of EC2 instance agent is running on.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
ID of EC2 instance agent is running on.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
Type of EC2 instance agent is running on.
This field is required.sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
Type of EC2 instance agent is running on.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
Type of EC2 instance agent is running on.
sourcepub fn reserved_cpu_cores(self, input: i32) -> Self
pub fn reserved_cpu_cores(self, input: i32) -> Self
Appends an item to reserved_cpu_cores
.
To override the contents of this collection use set_reserved_cpu_cores
.
This field should not be used. Use agentCpuCores instead.
List of CPU cores reserved for processes other than the agent running on the EC2 instance.
sourcepub fn set_reserved_cpu_cores(self, input: Option<Vec<i32>>) -> Self
pub fn set_reserved_cpu_cores(self, input: Option<Vec<i32>>) -> Self
This field should not be used. Use agentCpuCores instead.
List of CPU cores reserved for processes other than the agent running on the EC2 instance.
sourcepub fn get_reserved_cpu_cores(&self) -> &Option<Vec<i32>>
pub fn get_reserved_cpu_cores(&self) -> &Option<Vec<i32>>
This field should not be used. Use agentCpuCores instead.
List of CPU cores reserved for processes other than the agent running on the EC2 instance.
sourcepub fn agent_cpu_cores(self, input: i32) -> Self
pub fn agent_cpu_cores(self, input: i32) -> Self
Appends an item to agent_cpu_cores
.
To override the contents of this collection use set_agent_cpu_cores
.
List of CPU cores reserved for the agent.
sourcepub fn set_agent_cpu_cores(self, input: Option<Vec<i32>>) -> Self
pub fn set_agent_cpu_cores(self, input: Option<Vec<i32>>) -> Self
List of CPU cores reserved for the agent.
sourcepub fn get_agent_cpu_cores(&self) -> &Option<Vec<i32>>
pub fn get_agent_cpu_cores(&self) -> &Option<Vec<i32>>
List of CPU cores reserved for the agent.
sourcepub fn component_versions(self, input: ComponentVersion) -> Self
pub fn component_versions(self, input: ComponentVersion) -> Self
Appends an item to component_versions
.
To override the contents of this collection use set_component_versions
.
List of versions being used by agent components.
sourcepub fn set_component_versions(
self,
input: Option<Vec<ComponentVersion>>
) -> Self
pub fn set_component_versions( self, input: Option<Vec<ComponentVersion>> ) -> Self
List of versions being used by agent components.
sourcepub fn get_component_versions(&self) -> &Option<Vec<ComponentVersion>>
pub fn get_component_versions(&self) -> &Option<Vec<ComponentVersion>>
List of versions being used by agent components.
sourcepub fn build(self) -> Result<AgentDetails, BuildError>
pub fn build(self) -> Result<AgentDetails, BuildError>
Consumes the builder and constructs a AgentDetails
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AgentDetailsBuilder
impl Clone for AgentDetailsBuilder
source§fn clone(&self) -> AgentDetailsBuilder
fn clone(&self) -> AgentDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AgentDetailsBuilder
impl Debug for AgentDetailsBuilder
source§impl Default for AgentDetailsBuilder
impl Default for AgentDetailsBuilder
source§fn default() -> AgentDetailsBuilder
fn default() -> AgentDetailsBuilder
source§impl PartialEq for AgentDetailsBuilder
impl PartialEq for AgentDetailsBuilder
source§fn eq(&self, other: &AgentDetailsBuilder) -> bool
fn eq(&self, other: &AgentDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AgentDetailsBuilder
Auto Trait Implementations§
impl Freeze for AgentDetailsBuilder
impl RefUnwindSafe for AgentDetailsBuilder
impl Send for AgentDetailsBuilder
impl Sync for AgentDetailsBuilder
impl Unpin for AgentDetailsBuilder
impl UnwindSafe for AgentDetailsBuilder
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> 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