aws_sdk_mediaconnect/operation/update_flow/
_update_flow_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateFlowInput {
6    /// <p>The Amazon Resource Name (ARN) of the flow that you want to update.</p>
7    pub flow_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The settings for source failover.</p>
9    pub source_failover_config: ::std::option::Option<crate::types::UpdateFailoverConfig>,
10    /// <p>The maintenance setting of the flow.</p>
11    pub maintenance: ::std::option::Option<crate::types::UpdateMaintenance>,
12    /// <p>The settings for source monitoring.</p>
13    pub source_monitoring_config: ::std::option::Option<crate::types::MonitoringConfig>,
14    /// <p>Specifies the configuration settings for NDI outputs. Required when the flow includes NDI outputs.</p>
15    pub ndi_config: ::std::option::Option<crate::types::NdiConfig>,
16    /// <p>Determines the processing capacity and feature set of the flow.</p>
17    pub flow_size: ::std::option::Option<crate::types::FlowSize>,
18}
19impl UpdateFlowInput {
20    /// <p>The Amazon Resource Name (ARN) of the flow that you want to update.</p>
21    pub fn flow_arn(&self) -> ::std::option::Option<&str> {
22        self.flow_arn.as_deref()
23    }
24    /// <p>The settings for source failover.</p>
25    pub fn source_failover_config(&self) -> ::std::option::Option<&crate::types::UpdateFailoverConfig> {
26        self.source_failover_config.as_ref()
27    }
28    /// <p>The maintenance setting of the flow.</p>
29    pub fn maintenance(&self) -> ::std::option::Option<&crate::types::UpdateMaintenance> {
30        self.maintenance.as_ref()
31    }
32    /// <p>The settings for source monitoring.</p>
33    pub fn source_monitoring_config(&self) -> ::std::option::Option<&crate::types::MonitoringConfig> {
34        self.source_monitoring_config.as_ref()
35    }
36    /// <p>Specifies the configuration settings for NDI outputs. Required when the flow includes NDI outputs.</p>
37    pub fn ndi_config(&self) -> ::std::option::Option<&crate::types::NdiConfig> {
38        self.ndi_config.as_ref()
39    }
40    /// <p>Determines the processing capacity and feature set of the flow.</p>
41    pub fn flow_size(&self) -> ::std::option::Option<&crate::types::FlowSize> {
42        self.flow_size.as_ref()
43    }
44}
45impl UpdateFlowInput {
46    /// Creates a new builder-style object to manufacture [`UpdateFlowInput`](crate::operation::update_flow::UpdateFlowInput).
47    pub fn builder() -> crate::operation::update_flow::builders::UpdateFlowInputBuilder {
48        crate::operation::update_flow::builders::UpdateFlowInputBuilder::default()
49    }
50}
51
52/// A builder for [`UpdateFlowInput`](crate::operation::update_flow::UpdateFlowInput).
53#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
54#[non_exhaustive]
55pub struct UpdateFlowInputBuilder {
56    pub(crate) flow_arn: ::std::option::Option<::std::string::String>,
57    pub(crate) source_failover_config: ::std::option::Option<crate::types::UpdateFailoverConfig>,
58    pub(crate) maintenance: ::std::option::Option<crate::types::UpdateMaintenance>,
59    pub(crate) source_monitoring_config: ::std::option::Option<crate::types::MonitoringConfig>,
60    pub(crate) ndi_config: ::std::option::Option<crate::types::NdiConfig>,
61    pub(crate) flow_size: ::std::option::Option<crate::types::FlowSize>,
62}
63impl UpdateFlowInputBuilder {
64    /// <p>The Amazon Resource Name (ARN) of the flow that you want to update.</p>
65    /// This field is required.
66    pub fn flow_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67        self.flow_arn = ::std::option::Option::Some(input.into());
68        self
69    }
70    /// <p>The Amazon Resource Name (ARN) of the flow that you want to update.</p>
71    pub fn set_flow_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72        self.flow_arn = input;
73        self
74    }
75    /// <p>The Amazon Resource Name (ARN) of the flow that you want to update.</p>
76    pub fn get_flow_arn(&self) -> &::std::option::Option<::std::string::String> {
77        &self.flow_arn
78    }
79    /// <p>The settings for source failover.</p>
80    pub fn source_failover_config(mut self, input: crate::types::UpdateFailoverConfig) -> Self {
81        self.source_failover_config = ::std::option::Option::Some(input);
82        self
83    }
84    /// <p>The settings for source failover.</p>
85    pub fn set_source_failover_config(mut self, input: ::std::option::Option<crate::types::UpdateFailoverConfig>) -> Self {
86        self.source_failover_config = input;
87        self
88    }
89    /// <p>The settings for source failover.</p>
90    pub fn get_source_failover_config(&self) -> &::std::option::Option<crate::types::UpdateFailoverConfig> {
91        &self.source_failover_config
92    }
93    /// <p>The maintenance setting of the flow.</p>
94    pub fn maintenance(mut self, input: crate::types::UpdateMaintenance) -> Self {
95        self.maintenance = ::std::option::Option::Some(input);
96        self
97    }
98    /// <p>The maintenance setting of the flow.</p>
99    pub fn set_maintenance(mut self, input: ::std::option::Option<crate::types::UpdateMaintenance>) -> Self {
100        self.maintenance = input;
101        self
102    }
103    /// <p>The maintenance setting of the flow.</p>
104    pub fn get_maintenance(&self) -> &::std::option::Option<crate::types::UpdateMaintenance> {
105        &self.maintenance
106    }
107    /// <p>The settings for source monitoring.</p>
108    pub fn source_monitoring_config(mut self, input: crate::types::MonitoringConfig) -> Self {
109        self.source_monitoring_config = ::std::option::Option::Some(input);
110        self
111    }
112    /// <p>The settings for source monitoring.</p>
113    pub fn set_source_monitoring_config(mut self, input: ::std::option::Option<crate::types::MonitoringConfig>) -> Self {
114        self.source_monitoring_config = input;
115        self
116    }
117    /// <p>The settings for source monitoring.</p>
118    pub fn get_source_monitoring_config(&self) -> &::std::option::Option<crate::types::MonitoringConfig> {
119        &self.source_monitoring_config
120    }
121    /// <p>Specifies the configuration settings for NDI outputs. Required when the flow includes NDI outputs.</p>
122    pub fn ndi_config(mut self, input: crate::types::NdiConfig) -> Self {
123        self.ndi_config = ::std::option::Option::Some(input);
124        self
125    }
126    /// <p>Specifies the configuration settings for NDI outputs. Required when the flow includes NDI outputs.</p>
127    pub fn set_ndi_config(mut self, input: ::std::option::Option<crate::types::NdiConfig>) -> Self {
128        self.ndi_config = input;
129        self
130    }
131    /// <p>Specifies the configuration settings for NDI outputs. Required when the flow includes NDI outputs.</p>
132    pub fn get_ndi_config(&self) -> &::std::option::Option<crate::types::NdiConfig> {
133        &self.ndi_config
134    }
135    /// <p>Determines the processing capacity and feature set of the flow.</p>
136    pub fn flow_size(mut self, input: crate::types::FlowSize) -> Self {
137        self.flow_size = ::std::option::Option::Some(input);
138        self
139    }
140    /// <p>Determines the processing capacity and feature set of the flow.</p>
141    pub fn set_flow_size(mut self, input: ::std::option::Option<crate::types::FlowSize>) -> Self {
142        self.flow_size = input;
143        self
144    }
145    /// <p>Determines the processing capacity and feature set of the flow.</p>
146    pub fn get_flow_size(&self) -> &::std::option::Option<crate::types::FlowSize> {
147        &self.flow_size
148    }
149    /// Consumes the builder and constructs a [`UpdateFlowInput`](crate::operation::update_flow::UpdateFlowInput).
150    pub fn build(self) -> ::std::result::Result<crate::operation::update_flow::UpdateFlowInput, ::aws_smithy_types::error::operation::BuildError> {
151        ::std::result::Result::Ok(crate::operation::update_flow::UpdateFlowInput {
152            flow_arn: self.flow_arn,
153            source_failover_config: self.source_failover_config,
154            maintenance: self.maintenance,
155            source_monitoring_config: self.source_monitoring_config,
156            ndi_config: self.ndi_config,
157            flow_size: self.flow_size,
158        })
159    }
160}