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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateFlywheelInput {
    /// <p>The Amazon Resource Number (ARN) of the flywheel to update.</p>
    pub flywheel_arn: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
    pub active_model_arn: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
    pub data_access_role_arn: ::std::option::Option<::std::string::String>,
    /// <p>Flywheel data security configuration.</p>
    pub data_security_config: ::std::option::Option<crate::types::UpdateDataSecurityConfig>,
}
impl UpdateFlywheelInput {
    /// <p>The Amazon Resource Number (ARN) of the flywheel to update.</p>
    pub fn flywheel_arn(&self) -> ::std::option::Option<&str> {
        self.flywheel_arn.as_deref()
    }
    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
    pub fn active_model_arn(&self) -> ::std::option::Option<&str> {
        self.active_model_arn.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
    pub fn data_access_role_arn(&self) -> ::std::option::Option<&str> {
        self.data_access_role_arn.as_deref()
    }
    /// <p>Flywheel data security configuration.</p>
    pub fn data_security_config(&self) -> ::std::option::Option<&crate::types::UpdateDataSecurityConfig> {
        self.data_security_config.as_ref()
    }
}
impl UpdateFlywheelInput {
    /// Creates a new builder-style object to manufacture [`UpdateFlywheelInput`](crate::operation::update_flywheel::UpdateFlywheelInput).
    pub fn builder() -> crate::operation::update_flywheel::builders::UpdateFlywheelInputBuilder {
        crate::operation::update_flywheel::builders::UpdateFlywheelInputBuilder::default()
    }
}

/// A builder for [`UpdateFlywheelInput`](crate::operation::update_flywheel::UpdateFlywheelInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateFlywheelInputBuilder {
    pub(crate) flywheel_arn: ::std::option::Option<::std::string::String>,
    pub(crate) active_model_arn: ::std::option::Option<::std::string::String>,
    pub(crate) data_access_role_arn: ::std::option::Option<::std::string::String>,
    pub(crate) data_security_config: ::std::option::Option<crate::types::UpdateDataSecurityConfig>,
}
impl UpdateFlywheelInputBuilder {
    /// <p>The Amazon Resource Number (ARN) of the flywheel to update.</p>
    /// This field is required.
    pub fn flywheel_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.flywheel_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Number (ARN) of the flywheel to update.</p>
    pub fn set_flywheel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.flywheel_arn = input;
        self
    }
    /// <p>The Amazon Resource Number (ARN) of the flywheel to update.</p>
    pub fn get_flywheel_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.flywheel_arn
    }
    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
    pub fn active_model_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.active_model_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
    pub fn set_active_model_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.active_model_arn = input;
        self
    }
    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
    pub fn get_active_model_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.active_model_arn
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
    pub fn data_access_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.data_access_role_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
    pub fn set_data_access_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.data_access_role_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
    pub fn get_data_access_role_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.data_access_role_arn
    }
    /// <p>Flywheel data security configuration.</p>
    pub fn data_security_config(mut self, input: crate::types::UpdateDataSecurityConfig) -> Self {
        self.data_security_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>Flywheel data security configuration.</p>
    pub fn set_data_security_config(mut self, input: ::std::option::Option<crate::types::UpdateDataSecurityConfig>) -> Self {
        self.data_security_config = input;
        self
    }
    /// <p>Flywheel data security configuration.</p>
    pub fn get_data_security_config(&self) -> &::std::option::Option<crate::types::UpdateDataSecurityConfig> {
        &self.data_security_config
    }
    /// Consumes the builder and constructs a [`UpdateFlywheelInput`](crate::operation::update_flywheel::UpdateFlywheelInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_flywheel::UpdateFlywheelInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_flywheel::UpdateFlywheelInput {
            flywheel_arn: self.flywheel_arn,
            active_model_arn: self.active_model_arn,
            data_access_role_arn: self.data_access_role_arn,
            data_security_config: self.data_security_config,
        })
    }
}