#[non_exhaustive]pub struct SubscriptionGrantSummaryBuilder { /* private fields */ }Expand description
A builder for SubscriptionGrantSummary.
Implementations§
source§impl SubscriptionGrantSummaryBuilder
impl SubscriptionGrantSummaryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the subscription grant.
This field is required.sourcepub fn created_by(self, input: impl Into<String>) -> Self
pub fn created_by(self, input: impl Into<String>) -> Self
The datazone user who created the subscription grant.
This field is required.sourcepub fn set_created_by(self, input: Option<String>) -> Self
pub fn set_created_by(self, input: Option<String>) -> Self
The datazone user who created the subscription grant.
sourcepub fn get_created_by(&self) -> &Option<String>
pub fn get_created_by(&self) -> &Option<String>
The datazone user who created the subscription grant.
sourcepub fn updated_by(self, input: impl Into<String>) -> Self
pub fn updated_by(self, input: impl Into<String>) -> Self
The Amazon DataZone user who updated the subscription grant.
sourcepub fn set_updated_by(self, input: Option<String>) -> Self
pub fn set_updated_by(self, input: Option<String>) -> Self
The Amazon DataZone user who updated the subscription grant.
sourcepub fn get_updated_by(&self) -> &Option<String>
pub fn get_updated_by(&self) -> &Option<String>
The Amazon DataZone user who updated the subscription grant.
sourcepub fn domain_id(self, input: impl Into<String>) -> Self
pub fn domain_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon DataZone domain in which a subscription grant exists.
This field is required.sourcepub fn set_domain_id(self, input: Option<String>) -> Self
pub fn set_domain_id(self, input: Option<String>) -> Self
The identifier of the Amazon DataZone domain in which a subscription grant exists.
sourcepub fn get_domain_id(&self) -> &Option<String>
pub fn get_domain_id(&self) -> &Option<String>
The identifier of the Amazon DataZone domain in which a subscription grant exists.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp of when a subscription grant was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp of when a subscription grant was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp of when a subscription grant was created.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
The timestampf of when the subscription grant was updated.
This field is required.sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
The timestampf of when the subscription grant was updated.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The timestampf of when the subscription grant was updated.
sourcepub fn subscription_target_id(self, input: impl Into<String>) -> Self
pub fn subscription_target_id(self, input: impl Into<String>) -> Self
The identifier of the target of the subscription grant.
This field is required.sourcepub fn set_subscription_target_id(self, input: Option<String>) -> Self
pub fn set_subscription_target_id(self, input: Option<String>) -> Self
The identifier of the target of the subscription grant.
sourcepub fn get_subscription_target_id(&self) -> &Option<String>
pub fn get_subscription_target_id(&self) -> &Option<String>
The identifier of the target of the subscription grant.
sourcepub fn granted_entity(self, input: GrantedEntity) -> Self
pub fn granted_entity(self, input: GrantedEntity) -> Self
The entity to which the subscription is granted.
This field is required.sourcepub fn set_granted_entity(self, input: Option<GrantedEntity>) -> Self
pub fn set_granted_entity(self, input: Option<GrantedEntity>) -> Self
The entity to which the subscription is granted.
sourcepub fn get_granted_entity(&self) -> &Option<GrantedEntity>
pub fn get_granted_entity(&self) -> &Option<GrantedEntity>
The entity to which the subscription is granted.
sourcepub fn status(self, input: SubscriptionGrantOverallStatus) -> Self
pub fn status(self, input: SubscriptionGrantOverallStatus) -> Self
The status of the subscription grant.
This field is required.sourcepub fn set_status(self, input: Option<SubscriptionGrantOverallStatus>) -> Self
pub fn set_status(self, input: Option<SubscriptionGrantOverallStatus>) -> Self
The status of the subscription grant.
sourcepub fn get_status(&self) -> &Option<SubscriptionGrantOverallStatus>
pub fn get_status(&self) -> &Option<SubscriptionGrantOverallStatus>
The status of the subscription grant.
sourcepub fn assets(self, input: SubscribedAsset) -> Self
pub fn assets(self, input: SubscribedAsset) -> Self
Appends an item to assets.
To override the contents of this collection use set_assets.
The assets included in the subscription grant.
sourcepub fn set_assets(self, input: Option<Vec<SubscribedAsset>>) -> Self
pub fn set_assets(self, input: Option<Vec<SubscribedAsset>>) -> Self
The assets included in the subscription grant.
sourcepub fn get_assets(&self) -> &Option<Vec<SubscribedAsset>>
pub fn get_assets(&self) -> &Option<Vec<SubscribedAsset>>
The assets included in the subscription grant.
sourcepub fn subscription_id(self, input: impl Into<String>) -> Self
👎Deprecated: Multiple subscriptions can exist for a single grant
pub fn subscription_id(self, input: impl Into<String>) -> Self
The ID of the subscription.
sourcepub fn set_subscription_id(self, input: Option<String>) -> Self
👎Deprecated: Multiple subscriptions can exist for a single grant
pub fn set_subscription_id(self, input: Option<String>) -> Self
The ID of the subscription.
sourcepub fn get_subscription_id(&self) -> &Option<String>
👎Deprecated: Multiple subscriptions can exist for a single grant
pub fn get_subscription_id(&self) -> &Option<String>
The ID of the subscription.
sourcepub fn build(self) -> Result<SubscriptionGrantSummary, BuildError>
pub fn build(self) -> Result<SubscriptionGrantSummary, BuildError>
Consumes the builder and constructs a SubscriptionGrantSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SubscriptionGrantSummaryBuilder
impl Clone for SubscriptionGrantSummaryBuilder
source§fn clone(&self) -> SubscriptionGrantSummaryBuilder
fn clone(&self) -> SubscriptionGrantSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SubscriptionGrantSummaryBuilder
impl Default for SubscriptionGrantSummaryBuilder
source§fn default() -> SubscriptionGrantSummaryBuilder
fn default() -> SubscriptionGrantSummaryBuilder
source§impl PartialEq for SubscriptionGrantSummaryBuilder
impl PartialEq for SubscriptionGrantSummaryBuilder
source§fn eq(&self, other: &SubscriptionGrantSummaryBuilder) -> bool
fn eq(&self, other: &SubscriptionGrantSummaryBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscriptionGrantSummaryBuilder
Auto Trait Implementations§
impl Freeze for SubscriptionGrantSummaryBuilder
impl RefUnwindSafe for SubscriptionGrantSummaryBuilder
impl Send for SubscriptionGrantSummaryBuilder
impl Sync for SubscriptionGrantSummaryBuilder
impl Unpin for SubscriptionGrantSummaryBuilder
impl UnwindSafe for SubscriptionGrantSummaryBuilder
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