AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline PutDeliverySourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline PutDeliverySourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline PutDeliverySourceRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
60 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
61 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
62 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
63 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
64 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
65 inline PutDeliverySourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
66 inline PutDeliverySourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
67 inline PutDeliverySourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
69
71
81 inline const Aws::String& GetLogType() const{ return m_logType; }
82 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
83 inline void SetLogType(const Aws::String& value) { m_logTypeHasBeenSet = true; m_logType = value; }
84 inline void SetLogType(Aws::String&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
85 inline void SetLogType(const char* value) { m_logTypeHasBeenSet = true; m_logType.assign(value); }
86 inline PutDeliverySourceRequest& WithLogType(const Aws::String& value) { SetLogType(value); return *this;}
87 inline PutDeliverySourceRequest& WithLogType(Aws::String&& value) { SetLogType(std::move(value)); return *this;}
88 inline PutDeliverySourceRequest& WithLogType(const char* value) { SetLogType(value); return *this;}
90
92
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
103 inline PutDeliverySourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
104 inline PutDeliverySourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
105 inline PutDeliverySourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
106 inline PutDeliverySourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
107 inline PutDeliverySourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
108 inline PutDeliverySourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
109 inline PutDeliverySourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
110 inline PutDeliverySourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
112 private:
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_resourceArn;
118 bool m_resourceArnHasBeenSet = false;
119
120 Aws::String m_logType;
121 bool m_logTypeHasBeenSet = false;
122
124 bool m_tagsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CloudWatchLogs
129} // namespace Aws
PutDeliverySourceRequest & AddTags(Aws::String &&key, Aws::String &&value)
PutDeliverySourceRequest & WithLogType(Aws::String &&value)
PutDeliverySourceRequest & AddTags(Aws::String &&key, const Aws::String &value)
PutDeliverySourceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
PutDeliverySourceRequest & AddTags(const Aws::String &key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutDeliverySourceRequest & WithName(const char *value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDeliverySourceRequest & WithResourceArn(const char *value)
PutDeliverySourceRequest & WithResourceArn(Aws::String &&value)
PutDeliverySourceRequest & AddTags(const char *key, const char *value)
PutDeliverySourceRequest & WithResourceArn(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
PutDeliverySourceRequest & WithLogType(const char *value)
PutDeliverySourceRequest & AddTags(Aws::String &&key, const char *value)
PutDeliverySourceRequest & WithName(const Aws::String &value)
PutDeliverySourceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
PutDeliverySourceRequest & WithLogType(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
PutDeliverySourceRequest & AddTags(const Aws::String &key, Aws::String &&value)
PutDeliverySourceRequest & AddTags(const char *key, Aws::String &&value)
PutDeliverySourceRequest & WithName(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