AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateSinkRequest.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/oam/OAMRequest.h>
10#include <aws/oam/OAM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace OAM {
16namespace Model {
17
21 public:
22 AWS_OAM_API CreateSinkRequest() = 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 "CreateSink"; }
29
30 AWS_OAM_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
44 CreateSinkRequest& WithName(NameT&& value) {
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
60 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
63 void SetTags(TagsT&& value) {
64 m_tagsHasBeenSet = true;
65 m_tags = std::forward<TagsT>(value);
66 }
67 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
68 CreateSinkRequest& WithTags(TagsT&& value) {
69 SetTags(std::forward<TagsT>(value));
70 return *this;
71 }
72 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
73 CreateSinkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
74 m_tagsHasBeenSet = true;
75 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_name;
81
83 bool m_nameHasBeenSet = false;
84 bool m_tagsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace OAM
89} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetName() const
AWS_OAM_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateSinkRequest & WithTags(TagsT &&value)
AWS_OAM_API CreateSinkRequest()=default
CreateSinkRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSinkRequest & WithName(NameT &&value)
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