AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutDestinationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchLogs {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHLOGS_API PutDestinationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutDestination"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetDestinationName() const { return m_destinationName; }
39 inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
40 template <typename DestinationNameT = Aws::String>
41 void SetDestinationName(DestinationNameT&& value) {
42 m_destinationNameHasBeenSet = true;
43 m_destinationName = std::forward<DestinationNameT>(value);
44 }
45 template <typename DestinationNameT = Aws::String>
46 PutDestinationRequest& WithDestinationName(DestinationNameT&& value) {
47 SetDestinationName(std::forward<DestinationNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
58 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
59 template <typename TargetArnT = Aws::String>
60 void SetTargetArn(TargetArnT&& value) {
61 m_targetArnHasBeenSet = true;
62 m_targetArn = std::forward<TargetArnT>(value);
63 }
64 template <typename TargetArnT = Aws::String>
65 PutDestinationRequest& WithTargetArn(TargetArnT&& value) {
66 SetTargetArn(std::forward<TargetArnT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
77 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
78 template <typename RoleArnT = Aws::String>
79 void SetRoleArn(RoleArnT&& value) {
80 m_roleArnHasBeenSet = true;
81 m_roleArn = std::forward<RoleArnT>(value);
82 }
83 template <typename RoleArnT = Aws::String>
85 SetRoleArn(std::forward<RoleArnT>(value));
86 return *this;
87 }
89
91
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 void SetTags(TagsT&& value) {
101 m_tagsHasBeenSet = true;
102 m_tags = std::forward<TagsT>(value);
103 }
104 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 SetTags(std::forward<TagsT>(value));
107 return *this;
108 }
109 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
110 PutDestinationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_destinationName;
118
119 Aws::String m_targetArn;
120
121 Aws::String m_roleArn;
122
124 bool m_destinationNameHasBeenSet = false;
125 bool m_targetArnHasBeenSet = false;
126 bool m_roleArnHasBeenSet = false;
127 bool m_tagsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace CloudWatchLogs
132} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
PutDestinationRequest & WithDestinationName(DestinationNameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDestinationRequest & WithRoleArn(RoleArnT &&value)
PutDestinationRequest & WithTags(TagsT &&value)
PutDestinationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CLOUDWATCHLOGS_API PutDestinationRequest()=default
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutDestinationRequest & WithTargetArn(TargetArnT &&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