AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; }
45 inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); }
46 inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); }
47 inline PutDestinationRequest& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;}
48 inline PutDestinationRequest& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;}
49 inline PutDestinationRequest& WithDestinationName(const char* value) { SetDestinationName(value); return *this;}
51
53
57 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
58 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
59 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
60 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
61 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
62 inline PutDestinationRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
63 inline PutDestinationRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
64 inline PutDestinationRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
66
68
72 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
73 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
74 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
75 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
76 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
77 inline PutDestinationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
78 inline PutDestinationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
79 inline PutDestinationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
81
83
89 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
92 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
93 inline PutDestinationRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
94 inline PutDestinationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
95 inline PutDestinationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
96 inline PutDestinationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
97 inline PutDestinationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
98 inline PutDestinationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
99 inline PutDestinationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
100 inline PutDestinationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
101 inline PutDestinationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
103 private:
104
105 Aws::String m_destinationName;
106 bool m_destinationNameHasBeenSet = false;
107
108 Aws::String m_targetArn;
109 bool m_targetArnHasBeenSet = false;
110
111 Aws::String m_roleArn;
112 bool m_roleArnHasBeenSet = false;
113
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace CloudWatchLogs
120} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PutDestinationRequest & WithRoleArn(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
PutDestinationRequest & WithTargetArn(const char *value)
PutDestinationRequest & WithTargetArn(Aws::String &&value)
PutDestinationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDestinationRequest & WithTargetArn(const Aws::String &value)
PutDestinationRequest & WithRoleArn(Aws::String &&value)
PutDestinationRequest & AddTags(const char *key, Aws::String &&value)
PutDestinationRequest & AddTags(Aws::String &&key, const Aws::String &value)
PutDestinationRequest & WithDestinationName(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
PutDestinationRequest & AddTags(Aws::String &&key, Aws::String &&value)
PutDestinationRequest & AddTags(const Aws::String &key, Aws::String &&value)
PutDestinationRequest & AddTags(Aws::String &&key, const char *value)
PutDestinationRequest & WithDestinationName(const Aws::String &value)
PutDestinationRequest & AddTags(const Aws::String &key, const Aws::String &value)
PutDestinationRequest & AddTags(const char *key, const char *value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutDestinationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
PutDestinationRequest & WithDestinationName(Aws::String &&value)
PutDestinationRequest & WithRoleArn(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