AWS SDK for C++

AWS SDK for C++ Version 1.11.917

Loading...
Searching...
No Matches
CreateFailoverSlateConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs/IVSRequest.h>
10#include <aws/ivs/IVS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IVS {
16namespace Model {
17
21 public:
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateFailoverSlateConfiguration"; }
29
30 AWS_IVS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
55 inline int GetActivationThresholdSeconds() const { return m_activationThresholdSeconds; }
56 inline bool ActivationThresholdSecondsHasBeenSet() const { return m_activationThresholdSecondsHasBeenSet; }
57 inline void SetActivationThresholdSeconds(int value) {
58 m_activationThresholdSecondsHasBeenSet = true;
59 m_activationThresholdSeconds = value;
60 }
63 return *this;
64 }
66
68
72 inline int GetMinSlateDisplaySeconds() const { return m_minSlateDisplaySeconds; }
73 inline bool MinSlateDisplaySecondsHasBeenSet() const { return m_minSlateDisplaySecondsHasBeenSet; }
74 inline void SetMinSlateDisplaySeconds(int value) {
75 m_minSlateDisplaySecondsHasBeenSet = true;
76 m_minSlateDisplaySeconds = value;
77 }
80 return *this;
81 }
83
85
89 inline int GetMaxSlateDisplaySeconds() const { return m_maxSlateDisplaySeconds; }
90 inline bool MaxSlateDisplaySecondsHasBeenSet() const { return m_maxSlateDisplaySecondsHasBeenSet; }
91 inline void SetMaxSlateDisplaySeconds(int value) {
92 m_maxSlateDisplaySecondsHasBeenSet = true;
93 m_maxSlateDisplaySeconds = value;
94 }
97 return *this;
98 }
100
102
111 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 void SetTags(TagsT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags = std::forward<TagsT>(value);
117 }
118 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 SetTags(std::forward<TagsT>(value));
121 return *this;
122 }
123 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
124 CreateFailoverSlateConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_name;
132
133 int m_activationThresholdSeconds{0};
134
135 int m_minSlateDisplaySeconds{0};
136
137 int m_maxSlateDisplaySeconds{0};
138
140 bool m_nameHasBeenSet = false;
141 bool m_activationThresholdSecondsHasBeenSet = false;
142 bool m_minSlateDisplaySecondsHasBeenSet = false;
143 bool m_maxSlateDisplaySecondsHasBeenSet = false;
144 bool m_tagsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace IVS
149} // namespace Aws
CreateFailoverSlateConfigurationRequest & WithMinSlateDisplaySeconds(int value)
AWS_IVS_API Aws::String SerializePayload() const override
CreateFailoverSlateConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateFailoverSlateConfigurationRequest & WithMaxSlateDisplaySeconds(int value)
CreateFailoverSlateConfigurationRequest & WithTags(TagsT &&value)
CreateFailoverSlateConfigurationRequest & WithActivationThresholdSeconds(int value)
CreateFailoverSlateConfigurationRequest & WithName(NameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String