#[non_exhaustive]pub struct CreateDimensionInput {
pub name: Option<String>,
pub type: Option<DimensionType>,
pub string_values: Option<Vec<String>>,
pub tags: Option<Vec<Tag>>,
pub client_request_token: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: 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.
type: Option<DimensionType>
Specifies the type of dimension. Supported types: TOPIC_FILTER.
string_values: 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/#").
Metadata that can be used to manage the dimension.
client_request_token: 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.
Implementations§
source§impl CreateDimensionInput
impl CreateDimensionInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
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) -> Option<&DimensionType>
pub fn type(&self) -> Option<&DimensionType>
Specifies the type of dimension. Supported types: TOPIC_FILTER.
sourcepub fn string_values(&self) -> &[String]
pub fn string_values(&self) -> &[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/#").
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .string_values.is_none()
.
Metadata that can be used to manage the dimension.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
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.
source§impl CreateDimensionInput
impl CreateDimensionInput
sourcepub fn builder() -> CreateDimensionInputBuilder
pub fn builder() -> CreateDimensionInputBuilder
Creates a new builder-style object to manufacture CreateDimensionInput
.
Trait Implementations§
source§impl Clone for CreateDimensionInput
impl Clone for CreateDimensionInput
source§fn clone(&self) -> CreateDimensionInput
fn clone(&self) -> CreateDimensionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDimensionInput
impl Debug for CreateDimensionInput
source§impl PartialEq for CreateDimensionInput
impl PartialEq for CreateDimensionInput
source§fn eq(&self, other: &CreateDimensionInput) -> bool
fn eq(&self, other: &CreateDimensionInput) -> bool
self
and other
values to be equal, and is used
by ==
.