Struct aws_sdk_datazone::operation::get_subscription_grant::builders::GetSubscriptionGrantOutputBuilder
source · #[non_exhaustive]pub struct GetSubscriptionGrantOutputBuilder { /* private fields */ }
Expand description
A builder for GetSubscriptionGrantOutput
.
Implementations§
source§impl GetSubscriptionGrantOutputBuilder
impl GetSubscriptionGrantOutputBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID 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 Amazon 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 Amazon DataZone user who created the subscription grant.
sourcepub fn get_created_by(&self) -> &Option<String>
pub fn get_created_by(&self) -> &Option<String>
The Amazon 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 ID of the Amazon DataZone domain in which the 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 ID of the Amazon DataZone domain in which the subscription grant exists.
sourcepub fn get_domain_id(&self) -> &Option<String>
pub fn get_domain_id(&self) -> &Option<String>
The ID of the Amazon DataZone domain in which the subscription grant exists.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp of when the subscription grant is 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 the subscription grant is created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp of when the subscription grant is created.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
The timestamp of when the subscription grant was upated.
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 timestamp of when the subscription grant was upated.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The timestamp of when the subscription grant was upated.
sourcepub fn subscription_target_id(self, input: impl Into<String>) -> Self
pub fn subscription_target_id(self, input: impl Into<String>) -> Self
The subscription target ID associated with 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 subscription target ID associated with the subscription grant.
sourcepub fn get_subscription_target_id(&self) -> &Option<String>
pub fn get_subscription_target_id(&self) -> &Option<String>
The subscription target ID associated with 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 for which the subscription grant is created.
sourcepub fn set_assets(self, input: Option<Vec<SubscribedAsset>>) -> Self
pub fn set_assets(self, input: Option<Vec<SubscribedAsset>>) -> Self
The assets for which the subscription grant is created.
sourcepub fn get_assets(&self) -> &Option<Vec<SubscribedAsset>>
pub fn get_assets(&self) -> &Option<Vec<SubscribedAsset>>
The assets for which the subscription grant is created.
sourcepub fn subscription_id(self, input: impl Into<String>) -> Self
pub fn subscription_id(self, input: impl Into<String>) -> Self
The identifier of the subscription.
sourcepub fn set_subscription_id(self, input: Option<String>) -> Self
pub fn set_subscription_id(self, input: Option<String>) -> Self
The identifier of the subscription.
sourcepub fn get_subscription_id(&self) -> &Option<String>
pub fn get_subscription_id(&self) -> &Option<String>
The identifier of the subscription.
sourcepub fn build(self) -> Result<GetSubscriptionGrantOutput, BuildError>
pub fn build(self) -> Result<GetSubscriptionGrantOutput, BuildError>
Consumes the builder and constructs a GetSubscriptionGrantOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetSubscriptionGrantOutputBuilder
impl Clone for GetSubscriptionGrantOutputBuilder
source§fn clone(&self) -> GetSubscriptionGrantOutputBuilder
fn clone(&self) -> GetSubscriptionGrantOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetSubscriptionGrantOutputBuilder
impl Default for GetSubscriptionGrantOutputBuilder
source§fn default() -> GetSubscriptionGrantOutputBuilder
fn default() -> GetSubscriptionGrantOutputBuilder
source§impl PartialEq for GetSubscriptionGrantOutputBuilder
impl PartialEq for GetSubscriptionGrantOutputBuilder
source§fn eq(&self, other: &GetSubscriptionGrantOutputBuilder) -> bool
fn eq(&self, other: &GetSubscriptionGrantOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.