AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
72 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
73 template<typename NameT = Aws::String>
74 DeliveryDestination& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
76
78
82 inline const Aws::String& GetArn() const { return m_arn; }
83 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
84 template<typename ArnT = Aws::String>
85 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
86 template<typename ArnT = Aws::String>
87 DeliveryDestination& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
89
91
95 inline DeliveryDestinationType GetDeliveryDestinationType() const { return m_deliveryDestinationType; }
96 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
97 inline void SetDeliveryDestinationType(DeliveryDestinationType value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = value; }
100
102
105 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
106 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
107 inline void SetOutputFormat(OutputFormat value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
108 inline DeliveryDestination& WithOutputFormat(OutputFormat value) { SetOutputFormat(value); return *this;}
110
112
116 inline const DeliveryDestinationConfiguration& GetDeliveryDestinationConfiguration() const { return m_deliveryDestinationConfiguration; }
117 inline bool DeliveryDestinationConfigurationHasBeenSet() const { return m_deliveryDestinationConfigurationHasBeenSet; }
118 template<typename DeliveryDestinationConfigurationT = DeliveryDestinationConfiguration>
119 void SetDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT&& value) { m_deliveryDestinationConfigurationHasBeenSet = true; m_deliveryDestinationConfiguration = std::forward<DeliveryDestinationConfigurationT>(value); }
120 template<typename DeliveryDestinationConfigurationT = DeliveryDestinationConfiguration>
121 DeliveryDestination& WithDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT&& value) { SetDeliveryDestinationConfiguration(std::forward<DeliveryDestinationConfigurationT>(value)); return *this;}
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
132 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 DeliveryDestination& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
134 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 DeliveryDestination& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
137 }
139 private:
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 Aws::String m_arn;
145 bool m_arnHasBeenSet = false;
146
148 bool m_deliveryDestinationTypeHasBeenSet = false;
149
150 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
151 bool m_outputFormatHasBeenSet = false;
152
153 DeliveryDestinationConfiguration m_deliveryDestinationConfiguration;
154 bool m_deliveryDestinationConfigurationHasBeenSet = false;
155
157 bool m_tagsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace CloudWatchLogs
162} // namespace Aws
void SetDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT &&value)
DeliveryDestination & WithName(NameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API DeliveryDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
const DeliveryDestinationConfiguration & GetDeliveryDestinationConfiguration() const
AWS_CLOUDWATCHLOGS_API DeliveryDestination()=default
DeliveryDestination & WithDeliveryDestinationType(DeliveryDestinationType value)
DeliveryDestination & WithArn(ArnT &&value)
DeliveryDestination & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetDeliveryDestinationType(DeliveryDestinationType value)
DeliveryDestinationType GetDeliveryDestinationType() const
DeliveryDestination & WithOutputFormat(OutputFormat value)
AWS_CLOUDWATCHLOGS_API DeliveryDestination(Aws::Utils::Json::JsonView jsonValue)
DeliveryDestination & WithTags(TagsT &&value)
DeliveryDestination & WithDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT &&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