AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutDestinationRequest.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 PutDestinationRequest() = 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 "PutDestination"; }
32
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetDestinationName() const { return m_destinationName; }
43 inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
44 template<typename DestinationNameT = Aws::String>
45 void SetDestinationName(DestinationNameT&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::forward<DestinationNameT>(value); }
46 template<typename DestinationNameT = Aws::String>
47 PutDestinationRequest& WithDestinationName(DestinationNameT&& value) { SetDestinationName(std::forward<DestinationNameT>(value)); return *this;}
49
51
55 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
56 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
57 template<typename TargetArnT = Aws::String>
58 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
59 template<typename TargetArnT = Aws::String>
60 PutDestinationRequest& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
62
64
68 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
69 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
70 template<typename RoleArnT = Aws::String>
71 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
72 template<typename RoleArnT = Aws::String>
73 PutDestinationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
75
77
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
87 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 PutDestinationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
89 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 PutDestinationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
92 }
94 private:
95
96 Aws::String m_destinationName;
97 bool m_destinationNameHasBeenSet = false;
98
99 Aws::String m_targetArn;
100 bool m_targetArnHasBeenSet = false;
101
102 Aws::String m_roleArn;
103 bool m_roleArnHasBeenSet = false;
104
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CloudWatchLogs
111} // 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