#[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 ==
.impl StructuralPartialEq for CreateDimensionInput
Auto Trait Implementations§
impl Freeze for CreateDimensionInput
impl RefUnwindSafe for CreateDimensionInput
impl Send for CreateDimensionInput
impl Sync for CreateDimensionInput
impl Unpin for CreateDimensionInput
impl UnwindSafe for CreateDimensionInput
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