AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPrimary(const Primary& value) { m_primaryHasBeenSet = true; m_primary = value; }
49 inline void SetPrimary(Primary&& value) { m_primaryHasBeenSet = true; m_primary = std::move(value); }
50 inline FailoverConfig& WithPrimary(const Primary& value) { SetPrimary(value); return *this;}
51 inline FailoverConfig& WithPrimary(Primary&& value) { SetPrimary(std::move(value)); return *this;}
53
55
59 inline const Secondary& GetSecondary() const{ return m_secondary; }
60 inline bool SecondaryHasBeenSet() const { return m_secondaryHasBeenSet; }
61 inline void SetSecondary(const Secondary& value) { m_secondaryHasBeenSet = true; m_secondary = value; }
62 inline void SetSecondary(Secondary&& value) { m_secondaryHasBeenSet = true; m_secondary = std::move(value); }
63 inline FailoverConfig& WithSecondary(const Secondary& value) { SetSecondary(value); return *this;}
64 inline FailoverConfig& WithSecondary(Secondary&& value) { SetSecondary(std::move(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)
FailoverConfig & WithSecondary(const Secondary &value)
const Secondary & GetSecondary() const
FailoverConfig & WithPrimary(const Primary &value)
void SetPrimary(const Primary &value)
AWS_EVENTBRIDGE_API FailoverConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSecondary(const Secondary &value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
FailoverConfig & WithPrimary(Primary &&value)
FailoverConfig & WithSecondary(Secondary &&value)
Aws::Utils::Json::JsonValue JsonValue