AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFailoverConfig.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/model/FailoverMode.h>
9#include <aws/mediaconnect/model/SourcePriority.h>
10#include <aws/mediaconnect/model/State.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaConnect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDIACONNECT_API UpdateFailoverConfig();
37 AWS_MEDIACONNECT_API UpdateFailoverConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const FailoverMode& GetFailoverMode() const{ return m_failoverMode; }
49 inline bool FailoverModeHasBeenSet() const { return m_failoverModeHasBeenSet; }
50 inline void SetFailoverMode(const FailoverMode& value) { m_failoverModeHasBeenSet = true; m_failoverMode = value; }
51 inline void SetFailoverMode(FailoverMode&& value) { m_failoverModeHasBeenSet = true; m_failoverMode = std::move(value); }
52 inline UpdateFailoverConfig& WithFailoverMode(const FailoverMode& value) { SetFailoverMode(value); return *this;}
53 inline UpdateFailoverConfig& WithFailoverMode(FailoverMode&& value) { SetFailoverMode(std::move(value)); return *this;}
55
57
60 inline int GetRecoveryWindow() const{ return m_recoveryWindow; }
61 inline bool RecoveryWindowHasBeenSet() const { return m_recoveryWindowHasBeenSet; }
62 inline void SetRecoveryWindow(int value) { m_recoveryWindowHasBeenSet = true; m_recoveryWindow = value; }
63 inline UpdateFailoverConfig& WithRecoveryWindow(int value) { SetRecoveryWindow(value); return *this;}
65
67
71 inline const SourcePriority& GetSourcePriority() const{ return m_sourcePriority; }
72 inline bool SourcePriorityHasBeenSet() const { return m_sourcePriorityHasBeenSet; }
73 inline void SetSourcePriority(const SourcePriority& value) { m_sourcePriorityHasBeenSet = true; m_sourcePriority = value; }
74 inline void SetSourcePriority(SourcePriority&& value) { m_sourcePriorityHasBeenSet = true; m_sourcePriority = std::move(value); }
75 inline UpdateFailoverConfig& WithSourcePriority(const SourcePriority& value) { SetSourcePriority(value); return *this;}
76 inline UpdateFailoverConfig& WithSourcePriority(SourcePriority&& value) { SetSourcePriority(std::move(value)); return *this;}
78
80
81 inline const State& GetState() const{ return m_state; }
82 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; }
84 inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
85 inline UpdateFailoverConfig& WithState(const State& value) { SetState(value); return *this;}
86 inline UpdateFailoverConfig& WithState(State&& value) { SetState(std::move(value)); return *this;}
88 private:
89
90 FailoverMode m_failoverMode;
91 bool m_failoverModeHasBeenSet = false;
92
93 int m_recoveryWindow;
94 bool m_recoveryWindowHasBeenSet = false;
95
96 SourcePriority m_sourcePriority;
97 bool m_sourcePriorityHasBeenSet = false;
98
99 State m_state;
100 bool m_stateHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace MediaConnect
105} // namespace Aws
UpdateFailoverConfig & WithState(const State &value)
UpdateFailoverConfig & WithSourcePriority(const SourcePriority &value)
UpdateFailoverConfig & WithSourcePriority(SourcePriority &&value)
UpdateFailoverConfig & WithRecoveryWindow(int value)
AWS_MEDIACONNECT_API UpdateFailoverConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdateFailoverConfig & WithState(State &&value)
UpdateFailoverConfig & WithFailoverMode(const FailoverMode &value)
UpdateFailoverConfig & WithFailoverMode(FailoverMode &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourcePriority(const SourcePriority &value)
AWS_MEDIACONNECT_API UpdateFailoverConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue