AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeliverySource.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 CloudWatchLogs
24{
25namespace Model
26{
27
60 {
61 public:
62 AWS_CLOUDWATCHLOGS_API DeliverySource();
63 AWS_CLOUDWATCHLOGS_API DeliverySource(Aws::Utils::Json::JsonView jsonValue);
64 AWS_CLOUDWATCHLOGS_API DeliverySource& operator=(Aws::Utils::Json::JsonView jsonValue);
65 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
66
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline DeliverySource& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline DeliverySource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline DeliverySource& WithName(const char* value) { SetName(value); return *this;}
81
83
87 inline const Aws::String& GetArn() const{ return m_arn; }
88 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
89 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
90 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
91 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
92 inline DeliverySource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
93 inline DeliverySource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
94 inline DeliverySource& WithArn(const char* value) { SetArn(value); return *this;}
96
98
103 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
104 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
105 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
106 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
107 inline DeliverySource& WithResourceArns(const Aws::Vector<Aws::String>& value) { SetResourceArns(value); return *this;}
108 inline DeliverySource& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
109 inline DeliverySource& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
110 inline DeliverySource& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
111 inline DeliverySource& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
113
115
118 inline const Aws::String& GetService() const{ return m_service; }
119 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
120 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
121 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
122 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
123 inline DeliverySource& WithService(const Aws::String& value) { SetService(value); return *this;}
124 inline DeliverySource& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
125 inline DeliverySource& WithService(const char* value) { SetService(value); return *this;}
127
129
133 inline const Aws::String& GetLogType() const{ return m_logType; }
134 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
135 inline void SetLogType(const Aws::String& value) { m_logTypeHasBeenSet = true; m_logType = value; }
136 inline void SetLogType(Aws::String&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
137 inline void SetLogType(const char* value) { m_logTypeHasBeenSet = true; m_logType.assign(value); }
138 inline DeliverySource& WithLogType(const Aws::String& value) { SetLogType(value); return *this;}
139 inline DeliverySource& WithLogType(Aws::String&& value) { SetLogType(std::move(value)); return *this;}
140 inline DeliverySource& WithLogType(const char* value) { SetLogType(value); return *this;}
142
144
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
150 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
151 inline DeliverySource& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
152 inline DeliverySource& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
153 inline DeliverySource& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154 inline DeliverySource& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
155 inline DeliverySource& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
156 inline DeliverySource& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
157 inline DeliverySource& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
158 inline DeliverySource& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
159 inline DeliverySource& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
161 private:
162
163 Aws::String m_name;
164 bool m_nameHasBeenSet = false;
165
166 Aws::String m_arn;
167 bool m_arnHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_resourceArns;
170 bool m_resourceArnsHasBeenSet = false;
171
172 Aws::String m_service;
173 bool m_serviceHasBeenSet = false;
174
175 Aws::String m_logType;
176 bool m_logTypeHasBeenSet = false;
177
179 bool m_tagsHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace CloudWatchLogs
184} // namespace Aws
void SetResourceArns(Aws::Vector< Aws::String > &&value)
DeliverySource & WithName(const char *value)
DeliverySource & WithName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
DeliverySource & AddResourceArns(const char *value)
DeliverySource & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
DeliverySource & WithArn(const Aws::String &value)
DeliverySource & WithArn(const char *value)
DeliverySource & AddTags(Aws::String &&key, Aws::String &&value)
AWS_CLOUDWATCHLOGS_API DeliverySource & operator=(Aws::Utils::Json::JsonView jsonValue)
DeliverySource & AddTags(const char *key, Aws::String &&value)
AWS_CLOUDWATCHLOGS_API DeliverySource()
DeliverySource & WithArn(Aws::String &&value)
DeliverySource & WithResourceArns(const Aws::Vector< Aws::String > &value)
DeliverySource & AddTags(const Aws::String &key, Aws::String &&value)
DeliverySource & WithService(const char *value)
DeliverySource & WithService(const Aws::String &value)
DeliverySource & AddTags(Aws::String &&key, const char *value)
DeliverySource & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
DeliverySource & WithService(Aws::String &&value)
DeliverySource & AddResourceArns(Aws::String &&value)
DeliverySource & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetLogType(const Aws::String &value)
DeliverySource & WithName(const Aws::String &value)
DeliverySource & AddTags(const Aws::String &key, const Aws::String &value)
DeliverySource & AddResourceArns(const Aws::String &value)
DeliverySource & WithResourceArns(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetArn(const Aws::String &value)
DeliverySource & AddTags(const char *key, const char *value)
void SetName(const Aws::String &value)
DeliverySource & WithLogType(const Aws::String &value)
DeliverySource & WithLogType(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
DeliverySource & WithLogType(const char *value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
void SetService(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API DeliverySource(Aws::Utils::Json::JsonView jsonValue)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue