aws_sdk_ssmsap/types/
_backint_config.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct BackintConfig {
7 pub backint_mode: crate::types::BackintMode,
9 pub ensure_no_backup_in_process: bool,
11}
12impl BackintConfig {
13 pub fn backint_mode(&self) -> &crate::types::BackintMode {
15 &self.backint_mode
16 }
17 pub fn ensure_no_backup_in_process(&self) -> bool {
19 self.ensure_no_backup_in_process
20 }
21}
22impl BackintConfig {
23 pub fn builder() -> crate::types::builders::BackintConfigBuilder {
25 crate::types::builders::BackintConfigBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct BackintConfigBuilder {
33 pub(crate) backint_mode: ::std::option::Option<crate::types::BackintMode>,
34 pub(crate) ensure_no_backup_in_process: ::std::option::Option<bool>,
35}
36impl BackintConfigBuilder {
37 pub fn backint_mode(mut self, input: crate::types::BackintMode) -> Self {
40 self.backint_mode = ::std::option::Option::Some(input);
41 self
42 }
43 pub fn set_backint_mode(mut self, input: ::std::option::Option<crate::types::BackintMode>) -> Self {
45 self.backint_mode = input;
46 self
47 }
48 pub fn get_backint_mode(&self) -> &::std::option::Option<crate::types::BackintMode> {
50 &self.backint_mode
51 }
52 pub fn ensure_no_backup_in_process(mut self, input: bool) -> Self {
55 self.ensure_no_backup_in_process = ::std::option::Option::Some(input);
56 self
57 }
58 pub fn set_ensure_no_backup_in_process(mut self, input: ::std::option::Option<bool>) -> Self {
60 self.ensure_no_backup_in_process = input;
61 self
62 }
63 pub fn get_ensure_no_backup_in_process(&self) -> &::std::option::Option<bool> {
65 &self.ensure_no_backup_in_process
66 }
67 pub fn build(self) -> ::std::result::Result<crate::types::BackintConfig, ::aws_smithy_types::error::operation::BuildError> {
72 ::std::result::Result::Ok(crate::types::BackintConfig {
73 backint_mode: self.backint_mode.ok_or_else(|| {
74 ::aws_smithy_types::error::operation::BuildError::missing_field(
75 "backint_mode",
76 "backint_mode was not specified but it is required when building BackintConfig",
77 )
78 })?,
79 ensure_no_backup_in_process: self.ensure_no_backup_in_process.ok_or_else(|| {
80 ::aws_smithy_types::error::operation::BuildError::missing_field(
81 "ensure_no_backup_in_process",
82 "ensure_no_backup_in_process was not specified but it is required when building BackintConfig",
83 )
84 })?,
85 })
86 }
87}