#[non_exhaustive]pub struct GrantEntitlementRequestBuilder { /* private fields */ }
Expand description
A builder for GrantEntitlementRequest
.
Implementations§
source§impl GrantEntitlementRequestBuilder
impl GrantEntitlementRequestBuilder
sourcepub fn data_transfer_subscriber_fee_percent(self, input: i32) -> Self
pub fn data_transfer_subscriber_fee_percent(self, input: i32) -> Self
Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
sourcepub fn set_data_transfer_subscriber_fee_percent(
self,
input: Option<i32>,
) -> Self
pub fn set_data_transfer_subscriber_fee_percent( self, input: Option<i32>, ) -> Self
Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
sourcepub fn get_data_transfer_subscriber_fee_percent(&self) -> &Option<i32>
pub fn get_data_transfer_subscriber_fee_percent(&self) -> &Option<i32>
Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.
sourcepub fn encryption(self, input: Encryption) -> Self
pub fn encryption(self, input: Encryption) -> Self
The type of encryption that will be used on the output that is associated with this entitlement. Allowable encryption types: static-key, speke.
sourcepub fn set_encryption(self, input: Option<Encryption>) -> Self
pub fn set_encryption(self, input: Option<Encryption>) -> Self
The type of encryption that will be used on the output that is associated with this entitlement. Allowable encryption types: static-key, speke.
sourcepub fn get_encryption(&self) -> &Option<Encryption>
pub fn get_encryption(&self) -> &Option<Encryption>
The type of encryption that will be used on the output that is associated with this entitlement. Allowable encryption types: static-key, speke.
sourcepub fn entitlement_status(self, input: EntitlementStatus) -> Self
pub fn entitlement_status(self, input: EntitlementStatus) -> Self
An indication of whether the new entitlement should be enabled or disabled as soon as it is created. If you don’t specify the entitlementStatus field in your request, MediaConnect sets it to ENABLED.
sourcepub fn set_entitlement_status(self, input: Option<EntitlementStatus>) -> Self
pub fn set_entitlement_status(self, input: Option<EntitlementStatus>) -> Self
An indication of whether the new entitlement should be enabled or disabled as soon as it is created. If you don’t specify the entitlementStatus field in your request, MediaConnect sets it to ENABLED.
sourcepub fn get_entitlement_status(&self) -> &Option<EntitlementStatus>
pub fn get_entitlement_status(&self) -> &Option<EntitlementStatus>
An indication of whether the new entitlement should be enabled or disabled as soon as it is created. If you don’t specify the entitlementStatus field in your request, MediaConnect sets it to ENABLED.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the entitlement. This value must be unique within the current flow.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the entitlement. This value must be unique within the current flow.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the entitlement. This value must be unique within the current flow.
sourcepub fn subscribers(self, input: impl Into<String>) -> Self
pub fn subscribers(self, input: impl Into<String>) -> Self
Appends an item to subscribers
.
To override the contents of this collection use set_subscribers
.
The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.
sourcepub fn set_subscribers(self, input: Option<Vec<String>>) -> Self
pub fn set_subscribers(self, input: Option<Vec<String>>) -> Self
The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.
sourcepub fn get_subscribers(&self) -> &Option<Vec<String>>
pub fn get_subscribers(&self) -> &Option<Vec<String>>
The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.
sourcepub fn build(self) -> GrantEntitlementRequest
pub fn build(self) -> GrantEntitlementRequest
Consumes the builder and constructs a GrantEntitlementRequest
.
Trait Implementations§
source§impl Clone for GrantEntitlementRequestBuilder
impl Clone for GrantEntitlementRequestBuilder
source§fn clone(&self) -> GrantEntitlementRequestBuilder
fn clone(&self) -> GrantEntitlementRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GrantEntitlementRequestBuilder
impl Default for GrantEntitlementRequestBuilder
source§fn default() -> GrantEntitlementRequestBuilder
fn default() -> GrantEntitlementRequestBuilder
source§impl PartialEq for GrantEntitlementRequestBuilder
impl PartialEq for GrantEntitlementRequestBuilder
source§fn eq(&self, other: &GrantEntitlementRequestBuilder) -> bool
fn eq(&self, other: &GrantEntitlementRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GrantEntitlementRequestBuilder
Auto Trait Implementations§
impl Freeze for GrantEntitlementRequestBuilder
impl RefUnwindSafe for GrantEntitlementRequestBuilder
impl Send for GrantEntitlementRequestBuilder
impl Sync for GrantEntitlementRequestBuilder
impl Unpin for GrantEntitlementRequestBuilder
impl UnwindSafe for GrantEntitlementRequestBuilder
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