Struct aws_sdk_iot::types::builders::RelatedResourceBuilder
source · #[non_exhaustive]pub struct RelatedResourceBuilder { /* private fields */ }
Expand description
A builder for RelatedResource
.
Implementations§
source§impl RelatedResourceBuilder
impl RelatedResourceBuilder
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The type of resource.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The type of resource.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of resource.
sourcepub fn resource_identifier(self, input: ResourceIdentifier) -> Self
pub fn resource_identifier(self, input: ResourceIdentifier) -> Self
Information that identifies the resource.
sourcepub fn set_resource_identifier(self, input: Option<ResourceIdentifier>) -> Self
pub fn set_resource_identifier(self, input: Option<ResourceIdentifier>) -> Self
Information that identifies the resource.
sourcepub fn get_resource_identifier(&self) -> &Option<ResourceIdentifier>
pub fn get_resource_identifier(&self) -> &Option<ResourceIdentifier>
Information that identifies the resource.
sourcepub fn additional_info(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn additional_info(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to additional_info
.
To override the contents of this collection use set_additional_info
.
Other information about the resource.
sourcepub fn set_additional_info(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_additional_info(self, input: Option<HashMap<String, String>>) -> Self
Other information about the resource.
sourcepub fn get_additional_info(&self) -> &Option<HashMap<String, String>>
pub fn get_additional_info(&self) -> &Option<HashMap<String, String>>
Other information about the resource.
sourcepub fn build(self) -> RelatedResource
pub fn build(self) -> RelatedResource
Consumes the builder and constructs a RelatedResource
.
Trait Implementations§
source§impl Clone for RelatedResourceBuilder
impl Clone for RelatedResourceBuilder
source§fn clone(&self) -> RelatedResourceBuilder
fn clone(&self) -> RelatedResourceBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RelatedResourceBuilder
impl Debug for RelatedResourceBuilder
source§impl Default for RelatedResourceBuilder
impl Default for RelatedResourceBuilder
source§fn default() -> RelatedResourceBuilder
fn default() -> RelatedResourceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RelatedResourceBuilder
impl PartialEq for RelatedResourceBuilder
impl StructuralPartialEq for RelatedResourceBuilder
Auto Trait Implementations§
impl Freeze for RelatedResourceBuilder
impl RefUnwindSafe for RelatedResourceBuilder
impl Send for RelatedResourceBuilder
impl Sync for RelatedResourceBuilder
impl Unpin for RelatedResourceBuilder
impl UnwindSafe for RelatedResourceBuilder
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.