Struct aws_sdk_kafka::types::builders::ConfigurationBuilder
source · #[non_exhaustive]pub struct ConfigurationBuilder { /* private fields */ }
Expand description
A builder for Configuration
.
Implementations§
source§impl ConfigurationBuilder
impl ConfigurationBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the configuration.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the configuration.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time when the configuration was created.
This field is required.sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time when the configuration was created.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The time when the configuration was created.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the configuration.
This field is required.sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the configuration.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the configuration.
sourcepub fn kafka_versions(self, input: impl Into<String>) -> Self
pub fn kafka_versions(self, input: impl Into<String>) -> Self
Appends an item to kafka_versions
.
To override the contents of this collection use set_kafka_versions
.
An array of the versions of Apache Kafka with which you can use this MSK configuration. You can use this configuration for an MSK cluster only if the Apache Kafka version specified for the cluster appears in this array.
sourcepub fn set_kafka_versions(self, input: Option<Vec<String>>) -> Self
pub fn set_kafka_versions(self, input: Option<Vec<String>>) -> Self
An array of the versions of Apache Kafka with which you can use this MSK configuration. You can use this configuration for an MSK cluster only if the Apache Kafka version specified for the cluster appears in this array.
sourcepub fn get_kafka_versions(&self) -> &Option<Vec<String>>
pub fn get_kafka_versions(&self) -> &Option<Vec<String>>
An array of the versions of Apache Kafka with which you can use this MSK configuration. You can use this configuration for an MSK cluster only if the Apache Kafka version specified for the cluster appears in this array.
sourcepub fn latest_revision(self, input: ConfigurationRevision) -> Self
pub fn latest_revision(self, input: ConfigurationRevision) -> Self
Latest revision of the configuration.
This field is required.sourcepub fn set_latest_revision(self, input: Option<ConfigurationRevision>) -> Self
pub fn set_latest_revision(self, input: Option<ConfigurationRevision>) -> Self
Latest revision of the configuration.
sourcepub fn get_latest_revision(&self) -> &Option<ConfigurationRevision>
pub fn get_latest_revision(&self) -> &Option<ConfigurationRevision>
Latest revision of the configuration.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the configuration.
This field is required.sourcepub fn state(self, input: ConfigurationState) -> Self
pub fn state(self, input: ConfigurationState) -> Self
The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED.
This field is required.sourcepub fn set_state(self, input: Option<ConfigurationState>) -> Self
pub fn set_state(self, input: Option<ConfigurationState>) -> Self
The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED.
sourcepub fn get_state(&self) -> &Option<ConfigurationState>
pub fn get_state(&self) -> &Option<ConfigurationState>
The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED.
sourcepub fn build(self) -> Configuration
pub fn build(self) -> Configuration
Consumes the builder and constructs a Configuration
.
Trait Implementations§
source§impl Clone for ConfigurationBuilder
impl Clone for ConfigurationBuilder
source§fn clone(&self) -> ConfigurationBuilder
fn clone(&self) -> ConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConfigurationBuilder
impl Debug for ConfigurationBuilder
source§impl Default for ConfigurationBuilder
impl Default for ConfigurationBuilder
source§fn default() -> ConfigurationBuilder
fn default() -> ConfigurationBuilder
source§impl PartialEq for ConfigurationBuilder
impl PartialEq for ConfigurationBuilder
source§fn eq(&self, other: &ConfigurationBuilder) -> bool
fn eq(&self, other: &ConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.