AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 DeliverySource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
85 inline const Aws::String& GetArn() const { return m_arn; }
86 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
87 template<typename ArnT = Aws::String>
88 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
89 template<typename ArnT = Aws::String>
90 DeliverySource& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
92
94
99 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
100 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
101 template<typename ResourceArnsT = Aws::Vector<Aws::String>>
102 void SetResourceArns(ResourceArnsT&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::forward<ResourceArnsT>(value); }
103 template<typename ResourceArnsT = Aws::Vector<Aws::String>>
104 DeliverySource& WithResourceArns(ResourceArnsT&& value) { SetResourceArns(std::forward<ResourceArnsT>(value)); return *this;}
105 template<typename ResourceArnsT = Aws::String>
106 DeliverySource& AddResourceArns(ResourceArnsT&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value)); return *this; }
108
110
113 inline const Aws::String& GetService() const { return m_service; }
114 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
115 template<typename ServiceT = Aws::String>
116 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
117 template<typename ServiceT = Aws::String>
118 DeliverySource& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
120
122
126 inline const Aws::String& GetLogType() const { return m_logType; }
127 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
128 template<typename LogTypeT = Aws::String>
129 void SetLogType(LogTypeT&& value) { m_logTypeHasBeenSet = true; m_logType = std::forward<LogTypeT>(value); }
130 template<typename LogTypeT = Aws::String>
131 DeliverySource& WithLogType(LogTypeT&& value) { SetLogType(std::forward<LogTypeT>(value)); return *this;}
133
135
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
142 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 DeliverySource& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
144 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 DeliverySource& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
147 }
149 private:
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 Aws::String m_arn;
155 bool m_arnHasBeenSet = false;
156
157 Aws::Vector<Aws::String> m_resourceArns;
158 bool m_resourceArnsHasBeenSet = false;
159
160 Aws::String m_service;
161 bool m_serviceHasBeenSet = false;
162
163 Aws::String m_logType;
164 bool m_logTypeHasBeenSet = false;
165
167 bool m_tagsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace CloudWatchLogs
172} // namespace Aws
const Aws::Vector< Aws::String > & GetResourceArns() const
DeliverySource & WithService(ServiceT &&value)
AWS_CLOUDWATCHLOGS_API DeliverySource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API DeliverySource()=default
DeliverySource & WithArn(ArnT &&value)
DeliverySource & WithLogType(LogTypeT &&value)
DeliverySource & WithResourceArns(ResourceArnsT &&value)
DeliverySource & WithName(NameT &&value)
DeliverySource & AddResourceArns(ResourceArnsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetResourceArns(ResourceArnsT &&value)
DeliverySource & WithTags(TagsT &&value)
DeliverySource & AddTags(TagsKeyT &&key, TagsValueT &&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