AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudWatchLogs
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCHLOGS_API PutDeliveryDestinationRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutDeliveryDestination"; }
34
35 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline PutDeliveryDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline PutDeliveryDestinationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline PutDeliveryDestinationRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const OutputFormat& GetOutputFormat() const{ return m_outputFormat; }
60 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
61 inline void SetOutputFormat(const OutputFormat& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
62 inline void SetOutputFormat(OutputFormat&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); }
63 inline PutDeliveryDestinationRequest& WithOutputFormat(const OutputFormat& value) { SetOutputFormat(value); return *this;}
64 inline PutDeliveryDestinationRequest& WithOutputFormat(OutputFormat&& value) { SetOutputFormat(std::move(value)); return *this;}
66
68
72 inline const DeliveryDestinationConfiguration& GetDeliveryDestinationConfiguration() const{ return m_deliveryDestinationConfiguration; }
73 inline bool DeliveryDestinationConfigurationHasBeenSet() const { return m_deliveryDestinationConfigurationHasBeenSet; }
74 inline void SetDeliveryDestinationConfiguration(const DeliveryDestinationConfiguration& value) { m_deliveryDestinationConfigurationHasBeenSet = true; m_deliveryDestinationConfiguration = value; }
75 inline void SetDeliveryDestinationConfiguration(DeliveryDestinationConfiguration&& value) { m_deliveryDestinationConfigurationHasBeenSet = true; m_deliveryDestinationConfiguration = std::move(value); }
79
81
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
90 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline PutDeliveryDestinationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
93 inline PutDeliveryDestinationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
94 inline PutDeliveryDestinationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 inline PutDeliveryDestinationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline PutDeliveryDestinationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
97 inline PutDeliveryDestinationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
98 inline PutDeliveryDestinationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
99 inline PutDeliveryDestinationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 OutputFormat m_outputFormat;
107 bool m_outputFormatHasBeenSet = false;
108
109 DeliveryDestinationConfiguration m_deliveryDestinationConfiguration;
110 bool m_deliveryDestinationConfigurationHasBeenSet = false;
111
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace CloudWatchLogs
118} // namespace Aws
PutDeliveryDestinationRequest & WithOutputFormat(OutputFormat &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDeliveryDestinationRequest & WithDeliveryDestinationConfiguration(const DeliveryDestinationConfiguration &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
PutDeliveryDestinationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
PutDeliveryDestinationRequest & AddTags(Aws::String &&key, const char *value)
PutDeliveryDestinationRequest & AddTags(const char *key, const char *value)
PutDeliveryDestinationRequest & WithName(const Aws::String &value)
PutDeliveryDestinationRequest & WithDeliveryDestinationConfiguration(DeliveryDestinationConfiguration &&value)
PutDeliveryDestinationRequest & WithName(Aws::String &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const DeliveryDestinationConfiguration & GetDeliveryDestinationConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PutDeliveryDestinationRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetDeliveryDestinationConfiguration(const DeliveryDestinationConfiguration &value)
PutDeliveryDestinationRequest & AddTags(const char *key, Aws::String &&value)
void SetDeliveryDestinationConfiguration(DeliveryDestinationConfiguration &&value)
PutDeliveryDestinationRequest & AddTags(const Aws::String &key, const Aws::String &value)
PutDeliveryDestinationRequest & WithName(const char *value)
PutDeliveryDestinationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
PutDeliveryDestinationRequest & WithOutputFormat(const OutputFormat &value)
PutDeliveryDestinationRequest & AddTags(Aws::String &&key, Aws::String &&value)
PutDeliveryDestinationRequest & AddTags(Aws::String &&key, const Aws::String &value)
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