AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FailoverConfig.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/model/Primary.h>
9#include <aws/eventbridge/model/Secondary.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EventBridge {
21namespace Model {
22
30 public:
31 AWS_EVENTBRIDGE_API FailoverConfig() = default;
32 AWS_EVENTBRIDGE_API FailoverConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_EVENTBRIDGE_API FailoverConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Primary& GetPrimary() const { return m_primary; }
41 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
42 template <typename PrimaryT = Primary>
43 void SetPrimary(PrimaryT&& value) {
44 m_primaryHasBeenSet = true;
45 m_primary = std::forward<PrimaryT>(value);
46 }
47 template <typename PrimaryT = Primary>
48 FailoverConfig& WithPrimary(PrimaryT&& value) {
49 SetPrimary(std::forward<PrimaryT>(value));
50 return *this;
51 }
53
55
59 inline const Secondary& GetSecondary() const { return m_secondary; }
60 inline bool SecondaryHasBeenSet() const { return m_secondaryHasBeenSet; }
61 template <typename SecondaryT = Secondary>
62 void SetSecondary(SecondaryT&& value) {
63 m_secondaryHasBeenSet = true;
64 m_secondary = std::forward<SecondaryT>(value);
65 }
66 template <typename SecondaryT = Secondary>
67 FailoverConfig& WithSecondary(SecondaryT&& value) {
68 SetSecondary(std::forward<SecondaryT>(value));
69 return *this;
70 }
72 private:
73 Primary m_primary;
74
75 Secondary m_secondary;
76 bool m_primaryHasBeenSet = false;
77 bool m_secondaryHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EventBridge
82} // namespace Aws
AWS_EVENTBRIDGE_API FailoverConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Secondary & GetSecondary() const
AWS_EVENTBRIDGE_API FailoverConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSecondary(SecondaryT &&value)
FailoverConfig & WithSecondary(SecondaryT &&value)
FailoverConfig & WithPrimary(PrimaryT &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API FailoverConfig()=default
Aws::Utils::Json::JsonValue JsonValue