AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateEntityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
11#include <aws/iottwinmaker/model/State.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoTTwinMaker {
25namespace Model {
27 public:
28 AWS_IOTTWINMAKER_API CreateEntityResult() = default;
31
33
36 inline const Aws::String& GetEntityId() const { return m_entityId; }
37 template <typename EntityIdT = Aws::String>
38 void SetEntityId(EntityIdT&& value) {
39 m_entityIdHasBeenSet = true;
40 m_entityId = std::forward<EntityIdT>(value);
41 }
42 template <typename EntityIdT = Aws::String>
43 CreateEntityResult& WithEntityId(EntityIdT&& value) {
44 SetEntityId(std::forward<EntityIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 template <typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) {
56 m_arnHasBeenSet = true;
57 m_arn = std::forward<ArnT>(value);
58 }
59 template <typename ArnT = Aws::String>
60 CreateEntityResult& WithArn(ArnT&& value) {
61 SetArn(std::forward<ArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
71 template <typename CreationDateTimeT = Aws::Utils::DateTime>
72 void SetCreationDateTime(CreationDateTimeT&& value) {
73 m_creationDateTimeHasBeenSet = true;
74 m_creationDateTime = std::forward<CreationDateTimeT>(value);
75 }
76 template <typename CreationDateTimeT = Aws::Utils::DateTime>
77 CreateEntityResult& WithCreationDateTime(CreationDateTimeT&& value) {
78 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
79 return *this;
80 }
82
84
87 inline State GetState() const { return m_state; }
88 inline void SetState(State value) {
89 m_stateHasBeenSet = true;
90 m_state = value;
91 }
93 SetState(value);
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
107 CreateEntityResult& WithRequestId(RequestIdT&& value) {
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
113
114 private:
115 Aws::String m_entityId;
116
117 Aws::String m_arn;
118
119 Aws::Utils::DateTime m_creationDateTime{};
120
121 State m_state{State::NOT_SET};
122
123 Aws::String m_requestId;
124 Aws::Http::HttpResponseCode m_HttpResponseCode;
125 bool m_entityIdHasBeenSet = false;
126 bool m_arnHasBeenSet = false;
127 bool m_creationDateTimeHasBeenSet = false;
128 bool m_stateHasBeenSet = false;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace IoTTwinMaker
134} // namespace Aws
void SetCreationDateTime(CreationDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
CreateEntityResult & WithArn(ArnT &&value)
AWS_IOTTWINMAKER_API CreateEntityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEntityResult & WithRequestId(RequestIdT &&value)
AWS_IOTTWINMAKER_API CreateEntityResult()=default
CreateEntityResult & WithEntityId(EntityIdT &&value)
AWS_IOTTWINMAKER_API CreateEntityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateEntityResult & WithState(State value)
CreateEntityResult & WithCreationDateTime(CreationDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue