Struct aws_sdk_datazone::types::builders::SubscribedAssetBuilder
source · #[non_exhaustive]pub struct SubscribedAssetBuilder { /* private fields */ }
Expand description
A builder for SubscribedAsset
.
Implementations§
source§impl SubscribedAssetBuilder
impl SubscribedAssetBuilder
sourcepub fn asset_id(self, input: impl Into<String>) -> Self
pub fn asset_id(self, input: impl Into<String>) -> Self
The identifier of the asset for which the subscription grant is created.
This field is required.sourcepub fn set_asset_id(self, input: Option<String>) -> Self
pub fn set_asset_id(self, input: Option<String>) -> Self
The identifier of the asset for which the subscription grant is created.
sourcepub fn get_asset_id(&self) -> &Option<String>
pub fn get_asset_id(&self) -> &Option<String>
The identifier of the asset for which the subscription grant is created.
sourcepub fn asset_revision(self, input: impl Into<String>) -> Self
pub fn asset_revision(self, input: impl Into<String>) -> Self
The revision of the asset for which the subscription grant is created.
This field is required.sourcepub fn set_asset_revision(self, input: Option<String>) -> Self
pub fn set_asset_revision(self, input: Option<String>) -> Self
The revision of the asset for which the subscription grant is created.
sourcepub fn get_asset_revision(&self) -> &Option<String>
pub fn get_asset_revision(&self) -> &Option<String>
The revision of the asset for which the subscription grant is created.
sourcepub fn status(self, input: SubscriptionGrantStatus) -> Self
pub fn status(self, input: SubscriptionGrantStatus) -> Self
The status of the asset for which the subscription grant is created.
This field is required.sourcepub fn set_status(self, input: Option<SubscriptionGrantStatus>) -> Self
pub fn set_status(self, input: Option<SubscriptionGrantStatus>) -> Self
The status of the asset for which the subscription grant is created.
sourcepub fn get_status(&self) -> &Option<SubscriptionGrantStatus>
pub fn get_status(&self) -> &Option<SubscriptionGrantStatus>
The status of the asset for which the subscription grant is created.
sourcepub fn target_name(self, input: impl Into<String>) -> Self
pub fn target_name(self, input: impl Into<String>) -> Self
The target name of the asset for which the subscription grant is created.
sourcepub fn set_target_name(self, input: Option<String>) -> Self
pub fn set_target_name(self, input: Option<String>) -> Self
The target name of the asset for which the subscription grant is created.
sourcepub fn get_target_name(&self) -> &Option<String>
pub fn get_target_name(&self) -> &Option<String>
The target name of the asset for which the subscription grant is created.
sourcepub fn failure_cause(self, input: FailureCause) -> Self
pub fn failure_cause(self, input: FailureCause) -> Self
The failure cause included in the details of the asset for which the subscription grant is created.
sourcepub fn set_failure_cause(self, input: Option<FailureCause>) -> Self
pub fn set_failure_cause(self, input: Option<FailureCause>) -> Self
The failure cause included in the details of the asset for which the subscription grant is created.
sourcepub fn get_failure_cause(&self) -> &Option<FailureCause>
pub fn get_failure_cause(&self) -> &Option<FailureCause>
The failure cause included in the details of the asset for which the subscription grant is created.
sourcepub fn granted_timestamp(self, input: DateTime) -> Self
pub fn granted_timestamp(self, input: DateTime) -> Self
The timestamp of when the subscription grant to the asset is created.
sourcepub fn set_granted_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_granted_timestamp(self, input: Option<DateTime>) -> Self
The timestamp of when the subscription grant to the asset is created.
sourcepub fn get_granted_timestamp(&self) -> &Option<DateTime>
pub fn get_granted_timestamp(&self) -> &Option<DateTime>
The timestamp of when the subscription grant to the asset is created.
sourcepub fn failure_timestamp(self, input: DateTime) -> Self
pub fn failure_timestamp(self, input: DateTime) -> Self
The failure timestamp included in the details of the asset for which the subscription grant is created.
sourcepub fn set_failure_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_failure_timestamp(self, input: Option<DateTime>) -> Self
The failure timestamp included in the details of the asset for which the subscription grant is created.
sourcepub fn get_failure_timestamp(&self) -> &Option<DateTime>
pub fn get_failure_timestamp(&self) -> &Option<DateTime>
The failure timestamp included in the details of the asset for which the subscription grant is created.
sourcepub fn build(self) -> Result<SubscribedAsset, BuildError>
pub fn build(self) -> Result<SubscribedAsset, BuildError>
Consumes the builder and constructs a SubscribedAsset
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SubscribedAssetBuilder
impl Clone for SubscribedAssetBuilder
source§fn clone(&self) -> SubscribedAssetBuilder
fn clone(&self) -> SubscribedAssetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SubscribedAssetBuilder
impl Debug for SubscribedAssetBuilder
source§impl Default for SubscribedAssetBuilder
impl Default for SubscribedAssetBuilder
source§fn default() -> SubscribedAssetBuilder
fn default() -> SubscribedAssetBuilder
source§impl PartialEq for SubscribedAssetBuilder
impl PartialEq for SubscribedAssetBuilder
impl StructuralPartialEq for SubscribedAssetBuilder
Auto Trait Implementations§
impl Freeze for SubscribedAssetBuilder
impl RefUnwindSafe for SubscribedAssetBuilder
impl Send for SubscribedAssetBuilder
impl Sync for SubscribedAssetBuilder
impl Unpin for SubscribedAssetBuilder
impl UnwindSafe for SubscribedAssetBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
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>
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