#[non_exhaustive]pub struct ResourceTargetDefinitionBuilder { /* private fields */ }
Expand description
A builder for ResourceTargetDefinition
.
Implementations§
source§impl ResourceTargetDefinitionBuilder
impl ResourceTargetDefinitionBuilder
sourcepub fn attribute(self, input: ResourceAttribute) -> Self
pub fn attribute(self, input: ResourceAttribute) -> Self
Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata
, Properties
, or Tags
.
sourcepub fn set_attribute(self, input: Option<ResourceAttribute>) -> Self
pub fn set_attribute(self, input: Option<ResourceAttribute>) -> Self
Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata
, Properties
, or Tags
.
sourcepub fn get_attribute(&self) -> &Option<ResourceAttribute>
pub fn get_attribute(&self) -> &Option<ResourceAttribute>
Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata
, Properties
, or Tags
.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
If the Attribute
value is Properties
, the name of the property. For all other attributes, the value is null.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
If the Attribute
value is Properties
, the name of the property. For all other attributes, the value is null.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
If the Attribute
value is Properties
, the name of the property. For all other attributes, the value is null.
sourcepub fn requires_recreation(self, input: RequiresRecreation) -> Self
pub fn requires_recreation(self, input: RequiresRecreation) -> Self
If the Attribute
value is Properties
, indicates whether a change to this property causes the resource to be recreated. The value can be Never
, Always
, or Conditionally
. To determine the conditions for a Conditionally
recreation, see the update behavior for that property in the CloudFormation User Guide.
sourcepub fn set_requires_recreation(self, input: Option<RequiresRecreation>) -> Self
pub fn set_requires_recreation(self, input: Option<RequiresRecreation>) -> Self
If the Attribute
value is Properties
, indicates whether a change to this property causes the resource to be recreated. The value can be Never
, Always
, or Conditionally
. To determine the conditions for a Conditionally
recreation, see the update behavior for that property in the CloudFormation User Guide.
sourcepub fn get_requires_recreation(&self) -> &Option<RequiresRecreation>
pub fn get_requires_recreation(&self) -> &Option<RequiresRecreation>
If the Attribute
value is Properties
, indicates whether a change to this property causes the resource to be recreated. The value can be Never
, Always
, or Conditionally
. To determine the conditions for a Conditionally
recreation, see the update behavior for that property in the CloudFormation User Guide.
sourcepub fn before_value(self, input: impl Into<String>) -> Self
pub fn before_value(self, input: impl Into<String>) -> Self
The value of the property before the change is executed. Large values can be truncated.
sourcepub fn set_before_value(self, input: Option<String>) -> Self
pub fn set_before_value(self, input: Option<String>) -> Self
The value of the property before the change is executed. Large values can be truncated.
sourcepub fn get_before_value(&self) -> &Option<String>
pub fn get_before_value(&self) -> &Option<String>
The value of the property before the change is executed. Large values can be truncated.
sourcepub fn after_value(self, input: impl Into<String>) -> Self
pub fn after_value(self, input: impl Into<String>) -> Self
The value of the property after the change is executed. Large values can be truncated.
sourcepub fn set_after_value(self, input: Option<String>) -> Self
pub fn set_after_value(self, input: Option<String>) -> Self
The value of the property after the change is executed. Large values can be truncated.
sourcepub fn get_after_value(&self) -> &Option<String>
pub fn get_after_value(&self) -> &Option<String>
The value of the property after the change is executed. Large values can be truncated.
sourcepub fn attribute_change_type(self, input: AttributeChangeType) -> Self
pub fn attribute_change_type(self, input: AttributeChangeType) -> Self
The type of change to be made to the property if the change is executed.
-
Add
The item will be added. -
Remove
The item will be removed. -
Modify
The item will be modified.
sourcepub fn set_attribute_change_type(
self,
input: Option<AttributeChangeType>
) -> Self
pub fn set_attribute_change_type( self, input: Option<AttributeChangeType> ) -> Self
The type of change to be made to the property if the change is executed.
-
Add
The item will be added. -
Remove
The item will be removed. -
Modify
The item will be modified.
sourcepub fn get_attribute_change_type(&self) -> &Option<AttributeChangeType>
pub fn get_attribute_change_type(&self) -> &Option<AttributeChangeType>
The type of change to be made to the property if the change is executed.
-
Add
The item will be added. -
Remove
The item will be removed. -
Modify
The item will be modified.
sourcepub fn build(self) -> ResourceTargetDefinition
pub fn build(self) -> ResourceTargetDefinition
Consumes the builder and constructs a ResourceTargetDefinition
.
Trait Implementations§
source§impl Clone for ResourceTargetDefinitionBuilder
impl Clone for ResourceTargetDefinitionBuilder
source§fn clone(&self) -> ResourceTargetDefinitionBuilder
fn clone(&self) -> ResourceTargetDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResourceTargetDefinitionBuilder
impl Default for ResourceTargetDefinitionBuilder
source§fn default() -> ResourceTargetDefinitionBuilder
fn default() -> ResourceTargetDefinitionBuilder
source§impl PartialEq for ResourceTargetDefinitionBuilder
impl PartialEq for ResourceTargetDefinitionBuilder
source§fn eq(&self, other: &ResourceTargetDefinitionBuilder) -> bool
fn eq(&self, other: &ResourceTargetDefinitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceTargetDefinitionBuilder
Auto Trait Implementations§
impl Freeze for ResourceTargetDefinitionBuilder
impl RefUnwindSafe for ResourceTargetDefinitionBuilder
impl Send for ResourceTargetDefinitionBuilder
impl Sync for ResourceTargetDefinitionBuilder
impl Unpin for ResourceTargetDefinitionBuilder
impl UnwindSafe for ResourceTargetDefinitionBuilder
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