AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Resilience.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-sap/model/ReplicationMode.h>
10#include <aws/ssm-sap/model/OperationMode.h>
11#include <aws/ssm-sap/model/ClusterStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SsmSap
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SSMSAP_API Resilience();
39 AWS_SSMSAP_API Resilience(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetHsrTier() const{ return m_hsrTier; }
49 inline bool HsrTierHasBeenSet() const { return m_hsrTierHasBeenSet; }
50 inline void SetHsrTier(const Aws::String& value) { m_hsrTierHasBeenSet = true; m_hsrTier = value; }
51 inline void SetHsrTier(Aws::String&& value) { m_hsrTierHasBeenSet = true; m_hsrTier = std::move(value); }
52 inline void SetHsrTier(const char* value) { m_hsrTierHasBeenSet = true; m_hsrTier.assign(value); }
53 inline Resilience& WithHsrTier(const Aws::String& value) { SetHsrTier(value); return *this;}
54 inline Resilience& WithHsrTier(Aws::String&& value) { SetHsrTier(std::move(value)); return *this;}
55 inline Resilience& WithHsrTier(const char* value) { SetHsrTier(value); return *this;}
57
59
62 inline const ReplicationMode& GetHsrReplicationMode() const{ return m_hsrReplicationMode; }
63 inline bool HsrReplicationModeHasBeenSet() const { return m_hsrReplicationModeHasBeenSet; }
64 inline void SetHsrReplicationMode(const ReplicationMode& value) { m_hsrReplicationModeHasBeenSet = true; m_hsrReplicationMode = value; }
65 inline void SetHsrReplicationMode(ReplicationMode&& value) { m_hsrReplicationModeHasBeenSet = true; m_hsrReplicationMode = std::move(value); }
66 inline Resilience& WithHsrReplicationMode(const ReplicationMode& value) { SetHsrReplicationMode(value); return *this;}
67 inline Resilience& WithHsrReplicationMode(ReplicationMode&& value) { SetHsrReplicationMode(std::move(value)); return *this;}
69
71
74 inline const OperationMode& GetHsrOperationMode() const{ return m_hsrOperationMode; }
75 inline bool HsrOperationModeHasBeenSet() const { return m_hsrOperationModeHasBeenSet; }
76 inline void SetHsrOperationMode(const OperationMode& value) { m_hsrOperationModeHasBeenSet = true; m_hsrOperationMode = value; }
77 inline void SetHsrOperationMode(OperationMode&& value) { m_hsrOperationModeHasBeenSet = true; m_hsrOperationMode = std::move(value); }
78 inline Resilience& WithHsrOperationMode(const OperationMode& value) { SetHsrOperationMode(value); return *this;}
79 inline Resilience& WithHsrOperationMode(OperationMode&& value) { SetHsrOperationMode(std::move(value)); return *this;}
81
83
86 inline const ClusterStatus& GetClusterStatus() const{ return m_clusterStatus; }
87 inline bool ClusterStatusHasBeenSet() const { return m_clusterStatusHasBeenSet; }
88 inline void SetClusterStatus(const ClusterStatus& value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = value; }
89 inline void SetClusterStatus(ClusterStatus&& value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = std::move(value); }
90 inline Resilience& WithClusterStatus(const ClusterStatus& value) { SetClusterStatus(value); return *this;}
91 inline Resilience& WithClusterStatus(ClusterStatus&& value) { SetClusterStatus(std::move(value)); return *this;}
93
95
99 inline bool GetEnqueueReplication() const{ return m_enqueueReplication; }
100 inline bool EnqueueReplicationHasBeenSet() const { return m_enqueueReplicationHasBeenSet; }
101 inline void SetEnqueueReplication(bool value) { m_enqueueReplicationHasBeenSet = true; m_enqueueReplication = value; }
102 inline Resilience& WithEnqueueReplication(bool value) { SetEnqueueReplication(value); return *this;}
104 private:
105
106 Aws::String m_hsrTier;
107 bool m_hsrTierHasBeenSet = false;
108
109 ReplicationMode m_hsrReplicationMode;
110 bool m_hsrReplicationModeHasBeenSet = false;
111
112 OperationMode m_hsrOperationMode;
113 bool m_hsrOperationModeHasBeenSet = false;
114
115 ClusterStatus m_clusterStatus;
116 bool m_clusterStatusHasBeenSet = false;
117
118 bool m_enqueueReplication;
119 bool m_enqueueReplicationHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace SsmSap
124} // namespace Aws
void SetHsrReplicationMode(const ReplicationMode &value)
Definition Resilience.h:64
void SetHsrReplicationMode(ReplicationMode &&value)
Definition Resilience.h:65
void SetEnqueueReplication(bool value)
Definition Resilience.h:101
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
Resilience & WithClusterStatus(const ClusterStatus &value)
Definition Resilience.h:90
Resilience & WithHsrReplicationMode(ReplicationMode &&value)
Definition Resilience.h:67
void SetClusterStatus(ClusterStatus &&value)
Definition Resilience.h:89
AWS_SSMSAP_API Resilience & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ClusterStatusHasBeenSet() const
Definition Resilience.h:87
void SetHsrTier(const char *value)
Definition Resilience.h:52
void SetClusterStatus(const ClusterStatus &value)
Definition Resilience.h:88
bool HsrReplicationModeHasBeenSet() const
Definition Resilience.h:63
const ClusterStatus & GetClusterStatus() const
Definition Resilience.h:86
void SetHsrTier(const Aws::String &value)
Definition Resilience.h:50
bool HsrOperationModeHasBeenSet() const
Definition Resilience.h:75
const ReplicationMode & GetHsrReplicationMode() const
Definition Resilience.h:62
Resilience & WithHsrTier(const char *value)
Definition Resilience.h:55
void SetHsrOperationMode(OperationMode &&value)
Definition Resilience.h:77
Resilience & WithEnqueueReplication(bool value)
Definition Resilience.h:102
Resilience & WithHsrReplicationMode(const ReplicationMode &value)
Definition Resilience.h:66
Resilience & WithHsrTier(const Aws::String &value)
Definition Resilience.h:53
Resilience & WithHsrOperationMode(OperationMode &&value)
Definition Resilience.h:79
Resilience & WithClusterStatus(ClusterStatus &&value)
Definition Resilience.h:91
bool EnqueueReplicationHasBeenSet() const
Definition Resilience.h:100
const OperationMode & GetHsrOperationMode() const
Definition Resilience.h:74
AWS_SSMSAP_API Resilience(Aws::Utils::Json::JsonView jsonValue)
void SetHsrOperationMode(const OperationMode &value)
Definition Resilience.h:76
void SetHsrTier(Aws::String &&value)
Definition Resilience.h:51
Resilience & WithHsrTier(Aws::String &&value)
Definition Resilience.h:54
Resilience & WithHsrOperationMode(const OperationMode &value)
Definition Resilience.h:78
const Aws::String & GetHsrTier() const
Definition Resilience.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue