#[non_exhaustive]
pub struct AwsEcsClusterDetailsBuilder { /* private fields */ }
Expand description

A builder for AwsEcsClusterDetails.

Implementations§

source§

impl AwsEcsClusterDetailsBuilder

source

pub fn cluster_arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) that identifies the cluster.

source

pub fn set_cluster_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) that identifies the cluster.

source

pub fn get_cluster_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) that identifies the cluster.

source

pub fn active_services_count(self, input: i32) -> Self

The number of services that are running on the cluster in an ACTIVE state. You can view these services with the Amazon ECS ListServices API operation.

source

pub fn set_active_services_count(self, input: Option<i32>) -> Self

The number of services that are running on the cluster in an ACTIVE state. You can view these services with the Amazon ECS ListServices API operation.

source

pub fn get_active_services_count(&self) -> &Option<i32>

The number of services that are running on the cluster in an ACTIVE state. You can view these services with the Amazon ECS ListServices API operation.

source

pub fn capacity_providers(self, input: impl Into<String>) -> Self

Appends an item to capacity_providers.

To override the contents of this collection use set_capacity_providers.

The short name of one or more capacity providers to associate with the cluster.

source

pub fn set_capacity_providers(self, input: Option<Vec<String>>) -> Self

The short name of one or more capacity providers to associate with the cluster.

source

pub fn get_capacity_providers(&self) -> &Option<Vec<String>>

The short name of one or more capacity providers to associate with the cluster.

source

pub fn cluster_settings( self, input: AwsEcsClusterClusterSettingsDetails ) -> Self

Appends an item to cluster_settings.

To override the contents of this collection use set_cluster_settings.

The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.

source

pub fn set_cluster_settings( self, input: Option<Vec<AwsEcsClusterClusterSettingsDetails>> ) -> Self

The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.

source

pub fn get_cluster_settings( &self ) -> &Option<Vec<AwsEcsClusterClusterSettingsDetails>>

The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.

source

pub fn configuration(self, input: AwsEcsClusterConfigurationDetails) -> Self

The run command configuration for the cluster.

source

pub fn set_configuration( self, input: Option<AwsEcsClusterConfigurationDetails> ) -> Self

The run command configuration for the cluster.

source

pub fn get_configuration(&self) -> &Option<AwsEcsClusterConfigurationDetails>

The run command configuration for the cluster.

source

pub fn default_capacity_provider_strategy( self, input: AwsEcsClusterDefaultCapacityProviderStrategyDetails ) -> Self

Appends an item to default_capacity_provider_strategy.

To override the contents of this collection use set_default_capacity_provider_strategy.

The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.

source

pub fn set_default_capacity_provider_strategy( self, input: Option<Vec<AwsEcsClusterDefaultCapacityProviderStrategyDetails>> ) -> Self

The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.

source

pub fn get_default_capacity_provider_strategy( &self ) -> &Option<Vec<AwsEcsClusterDefaultCapacityProviderStrategyDetails>>

The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.

source

pub fn cluster_name(self, input: impl Into<String>) -> Self

A name that you use to identify your cluster.

source

pub fn set_cluster_name(self, input: Option<String>) -> Self

A name that you use to identify your cluster.

source

pub fn get_cluster_name(&self) -> &Option<String>

A name that you use to identify your cluster.

source

pub fn registered_container_instances_count(self, input: i32) -> Self

The number of container instances registered into the cluster. This includes container instances in both ACTIVE and DRAINING status.

source

pub fn set_registered_container_instances_count( self, input: Option<i32> ) -> Self

The number of container instances registered into the cluster. This includes container instances in both ACTIVE and DRAINING status.

source

pub fn get_registered_container_instances_count(&self) -> &Option<i32>

The number of container instances registered into the cluster. This includes container instances in both ACTIVE and DRAINING status.

source

pub fn running_tasks_count(self, input: i32) -> Self

The number of tasks in the cluster that are in the RUNNING state.

source

pub fn set_running_tasks_count(self, input: Option<i32>) -> Self

The number of tasks in the cluster that are in the RUNNING state.

source

pub fn get_running_tasks_count(&self) -> &Option<i32>

The number of tasks in the cluster that are in the RUNNING state.

source

pub fn status(self, input: impl Into<String>) -> Self

The status of the cluster.

source

pub fn set_status(self, input: Option<String>) -> Self

The status of the cluster.

source

pub fn get_status(&self) -> &Option<String>

The status of the cluster.

source

pub fn build(self) -> AwsEcsClusterDetails

Consumes the builder and constructs a AwsEcsClusterDetails.

Trait Implementations§

source§

impl Clone for AwsEcsClusterDetailsBuilder

source§

fn clone(&self) -> AwsEcsClusterDetailsBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AwsEcsClusterDetailsBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AwsEcsClusterDetailsBuilder

source§

fn default() -> AwsEcsClusterDetailsBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<AwsEcsClusterDetailsBuilder> for AwsEcsClusterDetailsBuilder

source§

fn eq(&self, other: &AwsEcsClusterDetailsBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for AwsEcsClusterDetailsBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more