AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutDeliveryDestinationRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/logs/model/OutputFormat.h>
11#include <aws/logs/model/DeliveryDestinationConfiguration.h>
12#include <aws/logs/model/DeliveryDestinationType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudWatchLogs
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDWATCHLOGS_API PutDeliveryDestinationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PutDeliveryDestination"; }
35
36 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
37
38 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 PutDeliveryDestinationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
59 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
60 inline void SetOutputFormat(OutputFormat value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
63
65
74 inline const DeliveryDestinationConfiguration& GetDeliveryDestinationConfiguration() const { return m_deliveryDestinationConfiguration; }
75 inline bool DeliveryDestinationConfigurationHasBeenSet() const { return m_deliveryDestinationConfigurationHasBeenSet; }
76 template<typename DeliveryDestinationConfigurationT = DeliveryDestinationConfiguration>
77 void SetDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT&& value) { m_deliveryDestinationConfigurationHasBeenSet = true; m_deliveryDestinationConfiguration = std::forward<DeliveryDestinationConfigurationT>(value); }
78 template<typename DeliveryDestinationConfigurationT = DeliveryDestinationConfiguration>
79 PutDeliveryDestinationRequest& WithDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT&& value) { SetDeliveryDestinationConfiguration(std::forward<DeliveryDestinationConfigurationT>(value)); return *this;}
81
83
94 inline DeliveryDestinationType GetDeliveryDestinationType() const { return m_deliveryDestinationType; }
95 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
96 inline void SetDeliveryDestinationType(DeliveryDestinationType value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = value; }
99
101
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 PutDeliveryDestinationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 PutDeliveryDestinationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
116 }
118 private:
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
124 bool m_outputFormatHasBeenSet = false;
125
126 DeliveryDestinationConfiguration m_deliveryDestinationConfiguration;
127 bool m_deliveryDestinationConfigurationHasBeenSet = false;
128
130 bool m_deliveryDestinationTypeHasBeenSet = false;
131
133 bool m_tagsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace CloudWatchLogs
138} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDeliveryDestinationRequest & WithDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT &&value)
PutDeliveryDestinationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const DeliveryDestinationConfiguration & GetDeliveryDestinationConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PutDeliveryDestinationRequest & WithDeliveryDestinationType(DeliveryDestinationType value)
PutDeliveryDestinationRequest & WithOutputFormat(OutputFormat value)
AWS_CLOUDWATCHLOGS_API PutDeliveryDestinationRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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