AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeliveryDestination.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/DeliveryDestinationType.h>
10#include <aws/logs/model/OutputFormat.h>
11#include <aws/logs/model/DeliveryDestinationConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CloudWatchLogs
26{
27namespace Model
28{
29
57 {
58 public:
59 AWS_CLOUDWATCHLOGS_API DeliveryDestination();
60 AWS_CLOUDWATCHLOGS_API DeliveryDestination(Aws::Utils::Json::JsonView jsonValue);
61 AWS_CLOUDWATCHLOGS_API DeliveryDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
62 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
63
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline DeliveryDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline DeliveryDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline DeliveryDestination& WithName(const char* value) { SetName(value); return *this;}
78
80
84 inline const Aws::String& GetArn() const{ return m_arn; }
85 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
86 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
87 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
88 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
89 inline DeliveryDestination& WithArn(const Aws::String& value) { SetArn(value); return *this;}
90 inline DeliveryDestination& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
91 inline DeliveryDestination& WithArn(const char* value) { SetArn(value); return *this;}
93
95
99 inline const DeliveryDestinationType& GetDeliveryDestinationType() const{ return m_deliveryDestinationType; }
100 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
101 inline void SetDeliveryDestinationType(const DeliveryDestinationType& value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = value; }
102 inline void SetDeliveryDestinationType(DeliveryDestinationType&& value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = std::move(value); }
106
108
111 inline const OutputFormat& GetOutputFormat() const{ return m_outputFormat; }
112 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
113 inline void SetOutputFormat(const OutputFormat& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
114 inline void SetOutputFormat(OutputFormat&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); }
115 inline DeliveryDestination& WithOutputFormat(const OutputFormat& value) { SetOutputFormat(value); return *this;}
116 inline DeliveryDestination& WithOutputFormat(OutputFormat&& value) { SetOutputFormat(std::move(value)); return *this;}
118
120
124 inline const DeliveryDestinationConfiguration& GetDeliveryDestinationConfiguration() const{ return m_deliveryDestinationConfiguration; }
125 inline bool DeliveryDestinationConfigurationHasBeenSet() const { return m_deliveryDestinationConfigurationHasBeenSet; }
126 inline void SetDeliveryDestinationConfiguration(const DeliveryDestinationConfiguration& value) { m_deliveryDestinationConfigurationHasBeenSet = true; m_deliveryDestinationConfiguration = value; }
127 inline void SetDeliveryDestinationConfiguration(DeliveryDestinationConfiguration&& value) { m_deliveryDestinationConfigurationHasBeenSet = true; m_deliveryDestinationConfiguration = std::move(value); }
131
133
136 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
139 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
140 inline DeliveryDestination& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
141 inline DeliveryDestination& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
142 inline DeliveryDestination& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
143 inline DeliveryDestination& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
144 inline DeliveryDestination& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
145 inline DeliveryDestination& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
146 inline DeliveryDestination& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
147 inline DeliveryDestination& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
148 inline DeliveryDestination& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
150 private:
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::String m_arn;
156 bool m_arnHasBeenSet = false;
157
158 DeliveryDestinationType m_deliveryDestinationType;
159 bool m_deliveryDestinationTypeHasBeenSet = false;
160
161 OutputFormat m_outputFormat;
162 bool m_outputFormatHasBeenSet = false;
163
164 DeliveryDestinationConfiguration m_deliveryDestinationConfiguration;
165 bool m_deliveryDestinationConfigurationHasBeenSet = false;
166
168 bool m_tagsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace CloudWatchLogs
173} // namespace Aws
void SetDeliveryDestinationType(const DeliveryDestinationType &value)
void SetDeliveryDestinationConfiguration(DeliveryDestinationConfiguration &&value)
DeliveryDestination & WithName(const Aws::String &value)
DeliveryDestination & WithDeliveryDestinationConfiguration(DeliveryDestinationConfiguration &&value)
DeliveryDestination & WithArn(Aws::String &&value)
DeliveryDestination & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
DeliveryDestination & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
DeliveryDestination & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CLOUDWATCHLOGS_API DeliveryDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
DeliveryDestination & WithName(Aws::String &&value)
DeliveryDestination & AddTags(Aws::String &&key, Aws::String &&value)
const DeliveryDestinationConfiguration & GetDeliveryDestinationConfiguration() const
DeliveryDestination & WithArn(const Aws::String &value)
DeliveryDestination & WithDeliveryDestinationConfiguration(const DeliveryDestinationConfiguration &value)
DeliveryDestination & AddTags(const Aws::String &key, const Aws::String &value)
DeliveryDestination & AddTags(const Aws::String &key, Aws::String &&value)
DeliveryDestination & WithName(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
DeliveryDestination & AddTags(Aws::String &&key, const char *value)
void SetDeliveryDestinationType(DeliveryDestinationType &&value)
DeliveryDestination & WithOutputFormat(OutputFormat &&value)
void SetDeliveryDestinationConfiguration(const DeliveryDestinationConfiguration &value)
DeliveryDestination & WithArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DeliveryDestination & AddTags(Aws::String &&key, const Aws::String &value)
DeliveryDestination & AddTags(const char *key, const char *value)
DeliveryDestination & WithDeliveryDestinationType(DeliveryDestinationType &&value)
DeliveryDestination & WithDeliveryDestinationType(const DeliveryDestinationType &value)
AWS_CLOUDWATCHLOGS_API DeliveryDestination(Aws::Utils::Json::JsonView jsonValue)
const DeliveryDestinationType & GetDeliveryDestinationType() const
DeliveryDestination & WithOutputFormat(const OutputFormat &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
Aws::Utils::Json::JsonValue JsonValue