#[non_exhaustive]pub struct CreateDimensionInputBuilder { /* private fields */ }
Expand description
A builder for CreateDimensionInput
.
Implementations§
source§impl CreateDimensionInputBuilder
impl CreateDimensionInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
sourcepub fn type(self, input: DimensionType) -> Self
pub fn type(self, input: DimensionType) -> Self
Specifies the type of dimension. Supported types: TOPIC_FILTER.
sourcepub fn set_type(self, input: Option<DimensionType>) -> Self
pub fn set_type(self, input: Option<DimensionType>) -> Self
Specifies the type of dimension. Supported types: TOPIC_FILTER.
sourcepub fn get_type(&self) -> &Option<DimensionType>
pub fn get_type(&self) -> &Option<DimensionType>
Specifies the type of dimension. Supported types: TOPIC_FILTER.
sourcepub fn string_values(self, input: impl Into<String>) -> Self
pub fn string_values(self, input: impl Into<String>) -> Self
Appends an item to string_values
.
To override the contents of this collection use set_string_values
.
Specifies the value or list of values for the dimension. For TOPIC_FILTER
dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
sourcepub fn set_string_values(self, input: Option<Vec<String>>) -> Self
pub fn set_string_values(self, input: Option<Vec<String>>) -> Self
Specifies the value or list of values for the dimension. For TOPIC_FILTER
dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
sourcepub fn get_string_values(&self) -> &Option<Vec<String>>
pub fn get_string_values(&self) -> &Option<Vec<String>>
Specifies the value or list of values for the dimension. For TOPIC_FILTER
dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata that can be used to manage the dimension.
Metadata that can be used to manage the dimension.
Metadata that can be used to manage the dimension.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
This field is required.sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
sourcepub fn build(self) -> Result<CreateDimensionInput, BuildError>
pub fn build(self) -> Result<CreateDimensionInput, BuildError>
Consumes the builder and constructs a CreateDimensionInput
.
source§impl CreateDimensionInputBuilder
impl CreateDimensionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDimensionOutput, SdkError<CreateDimensionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDimensionOutput, SdkError<CreateDimensionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDimensionInputBuilder
impl Clone for CreateDimensionInputBuilder
source§fn clone(&self) -> CreateDimensionInputBuilder
fn clone(&self) -> CreateDimensionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDimensionInputBuilder
impl Debug for CreateDimensionInputBuilder
source§impl Default for CreateDimensionInputBuilder
impl Default for CreateDimensionInputBuilder
source§fn default() -> CreateDimensionInputBuilder
fn default() -> CreateDimensionInputBuilder
source§impl PartialEq for CreateDimensionInputBuilder
impl PartialEq for CreateDimensionInputBuilder
source§fn eq(&self, other: &CreateDimensionInputBuilder) -> bool
fn eq(&self, other: &CreateDimensionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.