AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
CreateThingGroupResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
25 public:
26 AWS_IOT_API CreateThingGroupResult() = default;
29
31
34 inline const Aws::String& GetThingGroupName() const { return m_thingGroupName; }
35 template <typename ThingGroupNameT = Aws::String>
36 void SetThingGroupName(ThingGroupNameT&& value) {
37 m_thingGroupNameHasBeenSet = true;
38 m_thingGroupName = std::forward<ThingGroupNameT>(value);
39 }
40 template <typename ThingGroupNameT = Aws::String>
41 CreateThingGroupResult& WithThingGroupName(ThingGroupNameT&& value) {
42 SetThingGroupName(std::forward<ThingGroupNameT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetThingGroupArn() const { return m_thingGroupArn; }
52 template <typename ThingGroupArnT = Aws::String>
53 void SetThingGroupArn(ThingGroupArnT&& value) {
54 m_thingGroupArnHasBeenSet = true;
55 m_thingGroupArn = std::forward<ThingGroupArnT>(value);
56 }
57 template <typename ThingGroupArnT = Aws::String>
58 CreateThingGroupResult& WithThingGroupArn(ThingGroupArnT&& value) {
59 SetThingGroupArn(std::forward<ThingGroupArnT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetThingGroupId() const { return m_thingGroupId; }
69 template <typename ThingGroupIdT = Aws::String>
70 void SetThingGroupId(ThingGroupIdT&& value) {
71 m_thingGroupIdHasBeenSet = true;
72 m_thingGroupId = std::forward<ThingGroupIdT>(value);
73 }
74 template <typename ThingGroupIdT = Aws::String>
75 CreateThingGroupResult& WithThingGroupId(ThingGroupIdT&& value) {
76 SetThingGroupId(std::forward<ThingGroupIdT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::String m_thingGroupName;
99
100 Aws::String m_thingGroupArn;
101
102 Aws::String m_thingGroupId;
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_thingGroupNameHasBeenSet = false;
107 bool m_thingGroupArnHasBeenSet = false;
108 bool m_thingGroupIdHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace IoT
114} // namespace Aws
void SetThingGroupArn(ThingGroupArnT &&value)
AWS_IOT_API CreateThingGroupResult()=default
void SetThingGroupName(ThingGroupNameT &&value)
CreateThingGroupResult & WithRequestId(RequestIdT &&value)
CreateThingGroupResult & WithThingGroupId(ThingGroupIdT &&value)
CreateThingGroupResult & WithThingGroupName(ThingGroupNameT &&value)
AWS_IOT_API CreateThingGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateThingGroupResult & WithThingGroupArn(ThingGroupArnT &&value)
AWS_IOT_API CreateThingGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue