AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutDeliverySourceRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchLogs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHLOGS_API PutDeliverySourceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutDeliverySource"; }
32
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 PutDeliverySourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
58 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
59 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
60 template<typename ResourceArnT = Aws::String>
61 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
62 template<typename ResourceArnT = Aws::String>
63 PutDeliverySourceRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
65
67
91 inline const Aws::String& GetLogType() const { return m_logType; }
92 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
93 template<typename LogTypeT = Aws::String>
94 void SetLogType(LogTypeT&& value) { m_logTypeHasBeenSet = true; m_logType = std::forward<LogTypeT>(value); }
95 template<typename LogTypeT = Aws::String>
96 PutDeliverySourceRequest& WithLogType(LogTypeT&& value) { SetLogType(std::forward<LogTypeT>(value)); return *this;}
98
100
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 PutDeliverySourceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
112 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
113 PutDeliverySourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
114 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
115 }
117 private:
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::String m_resourceArn;
123 bool m_resourceArnHasBeenSet = false;
124
125 Aws::String m_logType;
126 bool m_logTypeHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CloudWatchLogs
134} // namespace Aws
PutDeliverySourceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CLOUDWATCHLOGS_API PutDeliverySourceRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDeliverySourceRequest & WithName(NameT &&value)
PutDeliverySourceRequest & WithLogType(LogTypeT &&value)
PutDeliverySourceRequest & WithResourceArn(ResourceArnT &&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