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
// 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 RebootReplicationInstanceInput {
/// <p>The Amazon Resource Name (ARN) of the replication instance.</p>
pub replication_instance_arn: ::std::option::Option<::std::string::String>,
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a Multi-AZ failover. If the instance isn't configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub force_failover: ::std::option::Option<bool>,
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a planned Multi-AZ failover where resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub force_planned_failover: ::std::option::Option<bool>,
}
impl RebootReplicationInstanceInput {
/// <p>The Amazon Resource Name (ARN) of the replication instance.</p>
pub fn replication_instance_arn(&self) -> ::std::option::Option<&str> {
self.replication_instance_arn.as_deref()
}
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a Multi-AZ failover. If the instance isn't configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub fn force_failover(&self) -> ::std::option::Option<bool> {
self.force_failover
}
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a planned Multi-AZ failover where resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub fn force_planned_failover(&self) -> ::std::option::Option<bool> {
self.force_planned_failover
}
}
impl RebootReplicationInstanceInput {
/// Creates a new builder-style object to manufacture [`RebootReplicationInstanceInput`](crate::operation::reboot_replication_instance::RebootReplicationInstanceInput).
pub fn builder() -> crate::operation::reboot_replication_instance::builders::RebootReplicationInstanceInputBuilder {
crate::operation::reboot_replication_instance::builders::RebootReplicationInstanceInputBuilder::default()
}
}
/// A builder for [`RebootReplicationInstanceInput`](crate::operation::reboot_replication_instance::RebootReplicationInstanceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RebootReplicationInstanceInputBuilder {
pub(crate) replication_instance_arn: ::std::option::Option<::std::string::String>,
pub(crate) force_failover: ::std::option::Option<bool>,
pub(crate) force_planned_failover: ::std::option::Option<bool>,
}
impl RebootReplicationInstanceInputBuilder {
/// <p>The Amazon Resource Name (ARN) of the replication instance.</p>
/// This field is required.
pub fn replication_instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.replication_instance_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the replication instance.</p>
pub fn set_replication_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.replication_instance_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the replication instance.</p>
pub fn get_replication_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.replication_instance_arn
}
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a Multi-AZ failover. If the instance isn't configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub fn force_failover(mut self, input: bool) -> Self {
self.force_failover = ::std::option::Option::Some(input);
self
}
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a Multi-AZ failover. If the instance isn't configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub fn set_force_failover(mut self, input: ::std::option::Option<bool>) -> Self {
self.force_failover = input;
self
}
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a Multi-AZ failover. If the instance isn't configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub fn get_force_failover(&self) -> &::std::option::Option<bool> {
&self.force_failover
}
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a planned Multi-AZ failover where resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub fn force_planned_failover(mut self, input: bool) -> Self {
self.force_planned_failover = ::std::option::Option::Some(input);
self
}
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a planned Multi-AZ failover where resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub fn set_force_planned_failover(mut self, input: ::std::option::Option<bool>) -> Self {
self.force_planned_failover = input;
self
}
/// <p>If this parameter is <code>true</code>, the reboot is conducted through a planned Multi-AZ failover where resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for Multi-AZ, then you can't specify <code>true</code>. ( <code>--force-planned-failover</code> and <code>--force-failover</code> can't both be set to <code>true</code>.)</p>
pub fn get_force_planned_failover(&self) -> &::std::option::Option<bool> {
&self.force_planned_failover
}
/// Consumes the builder and constructs a [`RebootReplicationInstanceInput`](crate::operation::reboot_replication_instance::RebootReplicationInstanceInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::reboot_replication_instance::RebootReplicationInstanceInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::reboot_replication_instance::RebootReplicationInstanceInput {
replication_instance_arn: self.replication_instance_arn,
force_failover: self.force_failover,
force_planned_failover: self.force_planned_failover,
})
}
}