AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
CreateSinkResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/oam/OAM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace OAM {
24namespace Model {
26 public:
27 AWS_OAM_API CreateSinkResult() = default;
30
32
35 inline const Aws::String& GetArn() const { return m_arn; }
36 template <typename ArnT = Aws::String>
37 void SetArn(ArnT&& value) {
38 m_arnHasBeenSet = true;
39 m_arn = std::forward<ArnT>(value);
40 }
41 template <typename ArnT = Aws::String>
42 CreateSinkResult& WithArn(ArnT&& value) {
43 SetArn(std::forward<ArnT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetId() const { return m_id; }
54 template <typename IdT = Aws::String>
55 void SetId(IdT&& value) {
56 m_idHasBeenSet = true;
57 m_id = std::forward<IdT>(value);
58 }
59 template <typename IdT = Aws::String>
60 CreateSinkResult& WithId(IdT&& value) {
61 SetId(std::forward<IdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 template <typename NameT = Aws::String>
72 void SetName(NameT&& value) {
73 m_nameHasBeenSet = true;
74 m_name = std::forward<NameT>(value);
75 }
76 template <typename NameT = Aws::String>
77 CreateSinkResult& WithName(NameT&& value) {
78 SetName(std::forward<NameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
88 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
89 void SetTags(TagsT&& value) {
90 m_tagsHasBeenSet = true;
91 m_tags = std::forward<TagsT>(value);
92 }
93 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 CreateSinkResult& WithTags(TagsT&& value) {
95 SetTags(std::forward<TagsT>(value));
96 return *this;
97 }
98 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
99 CreateSinkResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
115 CreateSinkResult& WithRequestId(RequestIdT&& value) {
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
121
122 private:
123 Aws::String m_arn;
124
125 Aws::String m_id;
126
127 Aws::String m_name;
128
130
131 Aws::String m_requestId;
132 Aws::Http::HttpResponseCode m_HttpResponseCode;
133 bool m_arnHasBeenSet = false;
134 bool m_idHasBeenSet = false;
135 bool m_nameHasBeenSet = false;
136 bool m_tagsHasBeenSet = false;
137 bool m_requestIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace OAM
142} // namespace Aws
const Aws::String & GetId() const
const Aws::String & GetArn() const
void SetRequestId(RequestIdT &&value)
AWS_OAM_API CreateSinkResult()=default
CreateSinkResult & WithName(NameT &&value)
CreateSinkResult & WithRequestId(RequestIdT &&value)
CreateSinkResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_OAM_API CreateSinkResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetName() const
AWS_OAM_API CreateSinkResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSinkResult & WithArn(ArnT &&value)
CreateSinkResult & WithTags(TagsT &&value)
CreateSinkResult & WithId(IdT &&value)
const Aws::String & GetRequestId() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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
Aws::Utils::Json::JsonValue JsonValue