1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// The entitlement fields that you want to update.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateFlowEntitlementInput {
/// 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.
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// The type of encryption that will be used on the output associated with this entitlement. Allowable encryption types: static-key, speke.
#[doc(hidden)]
pub encryption: std::option::Option<crate::types::UpdateEncryption>,
/// The ARN of the entitlement that you want to update.
#[doc(hidden)]
pub entitlement_arn: std::option::Option<std::string::String>,
/// An indication of whether you want to enable the entitlement to allow access, or disable it to stop streaming content to the subscriber’s flow temporarily. If you don’t specify the entitlementStatus field in your request, MediaConnect leaves the value unchanged.
#[doc(hidden)]
pub entitlement_status: std::option::Option<crate::types::EntitlementStatus>,
/// The flow that is associated with the entitlement that you want to update.
#[doc(hidden)]
pub flow_arn: std::option::Option<std::string::String>,
/// The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
#[doc(hidden)]
pub subscribers: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl UpdateFlowEntitlementInput {
/// 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.
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// The type of encryption that will be used on the output associated with this entitlement. Allowable encryption types: static-key, speke.
pub fn encryption(&self) -> std::option::Option<&crate::types::UpdateEncryption> {
self.encryption.as_ref()
}
/// The ARN of the entitlement that you want to update.
pub fn entitlement_arn(&self) -> std::option::Option<&str> {
self.entitlement_arn.as_deref()
}
/// An indication of whether you want to enable the entitlement to allow access, or disable it to stop streaming content to the subscriber’s flow temporarily. If you don’t specify the entitlementStatus field in your request, MediaConnect leaves the value unchanged.
pub fn entitlement_status(&self) -> std::option::Option<&crate::types::EntitlementStatus> {
self.entitlement_status.as_ref()
}
/// The flow that is associated with the entitlement that you want to update.
pub fn flow_arn(&self) -> std::option::Option<&str> {
self.flow_arn.as_deref()
}
/// The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
pub fn subscribers(&self) -> std::option::Option<&[std::string::String]> {
self.subscribers.as_deref()
}
}
impl UpdateFlowEntitlementInput {
/// Creates a new builder-style object to manufacture [`UpdateFlowEntitlementInput`](crate::operation::update_flow_entitlement::UpdateFlowEntitlementInput).
pub fn builder(
) -> crate::operation::update_flow_entitlement::builders::UpdateFlowEntitlementInputBuilder
{
crate::operation::update_flow_entitlement::builders::UpdateFlowEntitlementInputBuilder::default()
}
}
/// A builder for [`UpdateFlowEntitlementInput`](crate::operation::update_flow_entitlement::UpdateFlowEntitlementInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateFlowEntitlementInputBuilder {
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) encryption: std::option::Option<crate::types::UpdateEncryption>,
pub(crate) entitlement_arn: std::option::Option<std::string::String>,
pub(crate) entitlement_status: std::option::Option<crate::types::EntitlementStatus>,
pub(crate) flow_arn: std::option::Option<std::string::String>,
pub(crate) subscribers: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl UpdateFlowEntitlementInputBuilder {
/// 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.
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
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.
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// The type of encryption that will be used on the output associated with this entitlement. Allowable encryption types: static-key, speke.
pub fn encryption(mut self, input: crate::types::UpdateEncryption) -> Self {
self.encryption = Some(input);
self
}
/// The type of encryption that will be used on the output associated with this entitlement. Allowable encryption types: static-key, speke.
pub fn set_encryption(
mut self,
input: std::option::Option<crate::types::UpdateEncryption>,
) -> Self {
self.encryption = input;
self
}
/// The ARN of the entitlement that you want to update.
pub fn entitlement_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.entitlement_arn = Some(input.into());
self
}
/// The ARN of the entitlement that you want to update.
pub fn set_entitlement_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.entitlement_arn = input;
self
}
/// An indication of whether you want to enable the entitlement to allow access, or disable it to stop streaming content to the subscriber’s flow temporarily. If you don’t specify the entitlementStatus field in your request, MediaConnect leaves the value unchanged.
pub fn entitlement_status(mut self, input: crate::types::EntitlementStatus) -> Self {
self.entitlement_status = Some(input);
self
}
/// An indication of whether you want to enable the entitlement to allow access, or disable it to stop streaming content to the subscriber’s flow temporarily. If you don’t specify the entitlementStatus field in your request, MediaConnect leaves the value unchanged.
pub fn set_entitlement_status(
mut self,
input: std::option::Option<crate::types::EntitlementStatus>,
) -> Self {
self.entitlement_status = input;
self
}
/// The flow that is associated with the entitlement that you want to update.
pub fn flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_arn = Some(input.into());
self
}
/// The flow that is associated with the entitlement that you want to update.
pub fn set_flow_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.flow_arn = input;
self
}
/// Appends an item to `subscribers`.
///
/// To override the contents of this collection use [`set_subscribers`](Self::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 flow using your content as the source.
pub fn subscribers(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.subscribers.unwrap_or_default();
v.push(input.into());
self.subscribers = Some(v);
self
}
/// The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
pub fn set_subscribers(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.subscribers = input;
self
}
/// Consumes the builder and constructs a [`UpdateFlowEntitlementInput`](crate::operation::update_flow_entitlement::UpdateFlowEntitlementInput).
pub fn build(
self,
) -> Result<
crate::operation::update_flow_entitlement::UpdateFlowEntitlementInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::update_flow_entitlement::UpdateFlowEntitlementInput {
description: self.description,
encryption: self.encryption,
entitlement_arn: self.entitlement_arn,
entitlement_status: self.entitlement_status,
flow_arn: self.flow_arn,
subscribers: self.subscribers,
},
)
}
}