AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EventBridge
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EVENTBRIDGE_API FailoverConfig() = default;
37 AWS_EVENTBRIDGE_API FailoverConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_EVENTBRIDGE_API FailoverConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Primary& GetPrimary() const { return m_primary; }
47 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
48 template<typename PrimaryT = Primary>
49 void SetPrimary(PrimaryT&& value) { m_primaryHasBeenSet = true; m_primary = std::forward<PrimaryT>(value); }
50 template<typename PrimaryT = Primary>
51 FailoverConfig& WithPrimary(PrimaryT&& value) { SetPrimary(std::forward<PrimaryT>(value)); return *this;}
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) { m_secondaryHasBeenSet = true; m_secondary = std::forward<SecondaryT>(value); }
63 template<typename SecondaryT = Secondary>
64 FailoverConfig& WithSecondary(SecondaryT&& value) { SetSecondary(std::forward<SecondaryT>(value)); return *this;}
66 private:
67
68 Primary m_primary;
69 bool m_primaryHasBeenSet = false;
70
71 Secondary m_secondary;
72 bool m_secondaryHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace EventBridge
77} // 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