AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
SilentAudio.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/model/State.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MediaConnect {
20namespace Model {
21
29 public:
30 AWS_MEDIACONNECT_API SilentAudio() = default;
31 AWS_MEDIACONNECT_API SilentAudio(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIACONNECT_API SilentAudio& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline State GetState() const { return m_state; }
41 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
42 inline void SetState(State value) {
43 m_stateHasBeenSet = true;
44 m_state = value;
45 }
46 inline SilentAudio& WithState(State value) {
47 SetState(value);
48 return *this;
49 }
51
53
57 inline int GetThresholdSeconds() const { return m_thresholdSeconds; }
58 inline bool ThresholdSecondsHasBeenSet() const { return m_thresholdSecondsHasBeenSet; }
59 inline void SetThresholdSeconds(int value) {
60 m_thresholdSecondsHasBeenSet = true;
61 m_thresholdSeconds = value;
62 }
63 inline SilentAudio& WithThresholdSeconds(int value) {
65 return *this;
66 }
68 private:
69 State m_state{State::NOT_SET};
70
71 int m_thresholdSeconds{0};
72 bool m_stateHasBeenSet = false;
73 bool m_thresholdSecondsHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace MediaConnect
78} // namespace Aws
SilentAudio & WithState(State value)
Definition SilentAudio.h:46
AWS_MEDIACONNECT_API SilentAudio & operator=(Aws::Utils::Json::JsonView jsonValue)
SilentAudio & WithThresholdSeconds(int value)
Definition SilentAudio.h:63
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API SilentAudio(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API SilentAudio()=default
Aws::Utils::Json::JsonValue JsonValue