AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
LoggingConfigurationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ivschat/Ivschat_EXPORTS.h>
11#include <aws/ivschat/model/DestinationConfiguration.h>
12#include <aws/ivschat/model/LoggingConfigurationState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ivschat {
24namespace Model {
25
33 public:
34 AWS_IVSCHAT_API LoggingConfigurationSummary() = default;
37 AWS_IVSCHAT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetId() const { return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 template <typename IdT = Aws::String>
65 void SetId(IdT&& value) {
66 m_idHasBeenSet = true;
67 m_id = std::forward<IdT>(value);
68 }
69 template <typename IdT = Aws::String>
71 SetId(std::forward<IdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
82 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
83 template <typename CreateTimeT = Aws::Utils::DateTime>
84 void SetCreateTime(CreateTimeT&& value) {
85 m_createTimeHasBeenSet = true;
86 m_createTime = std::forward<CreateTimeT>(value);
87 }
88 template <typename CreateTimeT = Aws::Utils::DateTime>
90 SetCreateTime(std::forward<CreateTimeT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
101 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
102 template <typename UpdateTimeT = Aws::Utils::DateTime>
103 void SetUpdateTime(UpdateTimeT&& value) {
104 m_updateTimeHasBeenSet = true;
105 m_updateTime = std::forward<UpdateTimeT>(value);
106 }
107 template <typename UpdateTimeT = Aws::Utils::DateTime>
109 SetUpdateTime(std::forward<UpdateTimeT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetName() const { return m_name; }
119 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
120 template <typename NameT = Aws::String>
121 void SetName(NameT&& value) {
122 m_nameHasBeenSet = true;
123 m_name = std::forward<NameT>(value);
124 }
125 template <typename NameT = Aws::String>
127 SetName(std::forward<NameT>(value));
128 return *this;
129 }
131
133
137 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
138 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
139 template <typename DestinationConfigurationT = DestinationConfiguration>
140 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
141 m_destinationConfigurationHasBeenSet = true;
142 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
143 }
144 template <typename DestinationConfigurationT = DestinationConfiguration>
145 LoggingConfigurationSummary& WithDestinationConfiguration(DestinationConfigurationT&& value) {
146 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
147 return *this;
148 }
150
152
156 inline LoggingConfigurationState GetState() const { return m_state; }
157 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
159 m_stateHasBeenSet = true;
160 m_state = value;
161 }
163 SetState(value);
164 return *this;
165 }
167
169
178 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 void SetTags(TagsT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags = std::forward<TagsT>(value);
184 }
185 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 SetTags(std::forward<TagsT>(value));
188 return *this;
189 }
190 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
191 LoggingConfigurationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_arn;
199
200 Aws::String m_id;
201
202 Aws::Utils::DateTime m_createTime{};
203
204 Aws::Utils::DateTime m_updateTime{};
205
206 Aws::String m_name;
207
208 DestinationConfiguration m_destinationConfiguration;
209
211
213 bool m_arnHasBeenSet = false;
214 bool m_idHasBeenSet = false;
215 bool m_createTimeHasBeenSet = false;
216 bool m_updateTimeHasBeenSet = false;
217 bool m_nameHasBeenSet = false;
218 bool m_destinationConfigurationHasBeenSet = false;
219 bool m_stateHasBeenSet = false;
220 bool m_tagsHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace ivschat
225} // namespace Aws
LoggingConfigurationSummary & WithId(IdT &&value)
AWS_IVSCHAT_API LoggingConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
LoggingConfigurationSummary & WithState(LoggingConfigurationState value)
LoggingConfigurationSummary & WithArn(ArnT &&value)
LoggingConfigurationSummary & WithUpdateTime(UpdateTimeT &&value)
LoggingConfigurationSummary & WithCreateTime(CreateTimeT &&value)
AWS_IVSCHAT_API Aws::Utils::Json::JsonValue Jsonize() const
LoggingConfigurationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IVSCHAT_API LoggingConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const DestinationConfiguration & GetDestinationConfiguration() const
LoggingConfigurationSummary & WithName(NameT &&value)
LoggingConfigurationSummary & WithTags(TagsT &&value)
LoggingConfigurationSummary & WithDestinationConfiguration(DestinationConfigurationT &&value)
void SetDestinationConfiguration(DestinationConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IVSCHAT_API LoggingConfigurationSummary()=default
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
Aws::Utils::Json::JsonValue JsonValue