Struct aws_arn::builder::ResourceBuilder
source · [−]pub struct ResourceBuilder { /* private fields */ }
Expand description
Builder type for a ResourceIdentifier
.
The methods build_resource_path
and build_qualified_id
are used to construct identifiers
with either the ‘/’ or ‘:’ separator between the collected components.
Implementations
sourceimpl ResourceBuilder
impl ResourceBuilder
sourcepub fn named(id: Identifier) -> Self
pub fn named(id: Identifier) -> Self
Construct a new resource builder containing only the provided identifier.
sourcepub fn typed(id: Identifier) -> Self
pub fn typed(id: Identifier) -> Self
Construct a new resource builder containing only the provided identifier.
sourcepub fn add(&mut self, id: ResourceIdentifier) -> &mut Self
pub fn add(&mut self, id: ResourceIdentifier) -> &mut Self
Add the provided ResourceIdentifier
to the inner list of components.
sourcepub fn qualified_name(&mut self, id: ResourceIdentifier) -> &mut Self
pub fn qualified_name(&mut self, id: ResourceIdentifier) -> &mut Self
Add the provided ResourceIdentifier
to the inner list of components.
sourcepub fn resource_path(&mut self, id: ResourceIdentifier) -> &mut Self
pub fn resource_path(&mut self, id: ResourceIdentifier) -> &mut Self
Add the provided ResourceIdentifier
to the inner list of components.
sourcepub fn type_name(&mut self, id: Identifier) -> &mut Self
pub fn type_name(&mut self, id: Identifier) -> &mut Self
Add the provided Identifier
to the inner list of components.
sourcepub fn resource_name(&mut self, id: Identifier) -> &mut Self
pub fn resource_name(&mut self, id: Identifier) -> &mut Self
Add the provided Identifier
to the inner list of components.
sourcepub fn sub_resource_name(&mut self, id: Identifier) -> &mut Self
pub fn sub_resource_name(&mut self, id: Identifier) -> &mut Self
Add the provided Identifier
to the inner list of components.
sourcepub fn version(&mut self, v: u32) -> &mut Self
pub fn version(&mut self, v: u32) -> &mut Self
Add the provided integer version number to the inner list of components.
sourcepub fn build_resource_path(&mut self) -> ResourceIdentifier
pub fn build_resource_path(&mut self) -> ResourceIdentifier
Return the iner list of components as a resource identifier path.
sourcepub fn build_qualified_id(&mut self) -> ResourceIdentifier
pub fn build_qualified_id(&mut self) -> ResourceIdentifier
Return the iner list of components as a qualified resource identifier.
Trait Implementations
sourceimpl Clone for ResourceBuilder
impl Clone for ResourceBuilder
sourcefn clone(&self) -> ResourceBuilder
fn clone(&self) -> ResourceBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResourceBuilder
impl Debug for ResourceBuilder
sourceimpl Default for ResourceBuilder
impl Default for ResourceBuilder
sourcefn default() -> ResourceBuilder
fn default() -> ResourceBuilder
Returns the “default value” for a type. Read more
sourceimpl From<Identifier> for ResourceBuilder
impl From<Identifier> for ResourceBuilder
sourcefn from(v: Identifier) -> Self
fn from(v: Identifier) -> Self
Converts to this type from the input type.
sourceimpl From<ResourceIdentifier> for ResourceBuilder
impl From<ResourceIdentifier> for ResourceBuilder
sourcefn from(v: ResourceIdentifier) -> Self
fn from(v: ResourceIdentifier) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ResourceBuilder
impl Send for ResourceBuilder
impl Sync for ResourceBuilder
impl Unpin for ResourceBuilder
impl UnwindSafe for ResourceBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more