Struct aws_sdk_iot::operation::deprecate_thing_type::builders::DeprecateThingTypeFluentBuilder
source · pub struct DeprecateThingTypeFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeprecateThingType
.
Deprecates a thing type. You can not associate new things with deprecated thing type.
Requires permission to access the DeprecateThingType action.
Implementations§
source§impl DeprecateThingTypeFluentBuilder
impl DeprecateThingTypeFluentBuilder
sourcepub fn as_input(&self) -> &DeprecateThingTypeInputBuilder
pub fn as_input(&self) -> &DeprecateThingTypeInputBuilder
Access the DeprecateThingType as a reference.
sourcepub async fn send(
self
) -> Result<DeprecateThingTypeOutput, SdkError<DeprecateThingTypeError, HttpResponse>>
pub async fn send( self ) -> Result<DeprecateThingTypeOutput, SdkError<DeprecateThingTypeError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<DeprecateThingTypeOutput, DeprecateThingTypeError, Self>
pub fn customize( self ) -> CustomizableOperation<DeprecateThingTypeOutput, DeprecateThingTypeError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn thing_type_name(self, input: impl Into<String>) -> Self
pub fn thing_type_name(self, input: impl Into<String>) -> Self
The name of the thing type to deprecate.
sourcepub fn set_thing_type_name(self, input: Option<String>) -> Self
pub fn set_thing_type_name(self, input: Option<String>) -> Self
The name of the thing type to deprecate.
sourcepub fn get_thing_type_name(&self) -> &Option<String>
pub fn get_thing_type_name(&self) -> &Option<String>
The name of the thing type to deprecate.
sourcepub fn undo_deprecate(self, input: bool) -> Self
pub fn undo_deprecate(self, input: bool) -> Self
Whether to undeprecate a deprecated thing type. If true, the thing type will not be deprecated anymore and you can associate it with things.
sourcepub fn set_undo_deprecate(self, input: Option<bool>) -> Self
pub fn set_undo_deprecate(self, input: Option<bool>) -> Self
Whether to undeprecate a deprecated thing type. If true, the thing type will not be deprecated anymore and you can associate it with things.
sourcepub fn get_undo_deprecate(&self) -> &Option<bool>
pub fn get_undo_deprecate(&self) -> &Option<bool>
Whether to undeprecate a deprecated thing type. If true, the thing type will not be deprecated anymore and you can associate it with things.
Trait Implementations§
source§impl Clone for DeprecateThingTypeFluentBuilder
impl Clone for DeprecateThingTypeFluentBuilder
source§fn clone(&self) -> DeprecateThingTypeFluentBuilder
fn clone(&self) -> DeprecateThingTypeFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more