Struct aws_sdk_iot::input::delete_thing_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DeleteThingInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The name of the thing to delete.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The name of the thing to delete.
sourcepub fn expected_version(self, input: i64) -> Self
pub fn expected_version(self, input: i64) -> Self
The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the DeleteThing
request is rejected with a VersionConflictException
.
sourcepub fn set_expected_version(self, input: Option<i64>) -> Self
pub fn set_expected_version(self, input: Option<i64>) -> Self
The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the DeleteThing
request is rejected with a VersionConflictException
.
sourcepub fn build(self) -> Result<DeleteThingInput, BuildError>
pub fn build(self) -> Result<DeleteThingInput, BuildError>
Consumes the builder and constructs a DeleteThingInput
.