AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
CreatePipeResult.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/pipes/Pipes_EXPORTS.h>
11#include <aws/pipes/model/PipeState.h>
12#include <aws/pipes/model/RequestedPipeState.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Pipes {
26namespace Model {
28 public:
29 AWS_PIPES_API CreatePipeResult() = default;
32
34
37 inline const Aws::String& GetArn() const { return m_arn; }
38 template <typename ArnT = Aws::String>
39 void SetArn(ArnT&& value) {
40 m_arnHasBeenSet = true;
41 m_arn = std::forward<ArnT>(value);
42 }
43 template <typename ArnT = Aws::String>
44 CreatePipeResult& WithArn(ArnT&& value) {
45 SetArn(std::forward<ArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 template <typename NameT = Aws::String>
56 void SetName(NameT&& value) {
57 m_nameHasBeenSet = true;
58 m_name = std::forward<NameT>(value);
59 }
60 template <typename NameT = Aws::String>
61 CreatePipeResult& WithName(NameT&& value) {
62 SetName(std::forward<NameT>(value));
63 return *this;
64 }
66
68
71 inline RequestedPipeState GetDesiredState() const { return m_desiredState; }
73 m_desiredStateHasBeenSet = true;
74 m_desiredState = value;
75 }
77 SetDesiredState(value);
78 return *this;
79 }
81
83
86 inline PipeState GetCurrentState() const { return m_currentState; }
87 inline void SetCurrentState(PipeState value) {
88 m_currentStateHasBeenSet = true;
89 m_currentState = value;
90 }
92 SetCurrentState(value);
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
102 template <typename CreationTimeT = Aws::Utils::DateTime>
103 void SetCreationTime(CreationTimeT&& value) {
104 m_creationTimeHasBeenSet = true;
105 m_creationTime = std::forward<CreationTimeT>(value);
106 }
107 template <typename CreationTimeT = Aws::Utils::DateTime>
108 CreatePipeResult& WithCreationTime(CreationTimeT&& value) {
109 SetCreationTime(std::forward<CreationTimeT>(value));
110 return *this;
111 }
113
115
120 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
121 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
122 void SetLastModifiedTime(LastModifiedTimeT&& value) {
123 m_lastModifiedTimeHasBeenSet = true;
124 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
125 }
126 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
127 CreatePipeResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
128 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
129 return *this;
130 }
132
134
135 inline const Aws::String& GetRequestId() const { return m_requestId; }
136 template <typename RequestIdT = Aws::String>
137 void SetRequestId(RequestIdT&& value) {
138 m_requestIdHasBeenSet = true;
139 m_requestId = std::forward<RequestIdT>(value);
140 }
141 template <typename RequestIdT = Aws::String>
142 CreatePipeResult& WithRequestId(RequestIdT&& value) {
143 SetRequestId(std::forward<RequestIdT>(value));
144 return *this;
145 }
147 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
148
149 private:
150 Aws::String m_arn;
151
152 Aws::String m_name;
153
155
156 PipeState m_currentState{PipeState::NOT_SET};
157
158 Aws::Utils::DateTime m_creationTime{};
159
160 Aws::Utils::DateTime m_lastModifiedTime{};
161
162 Aws::String m_requestId;
163 Aws::Http::HttpResponseCode m_HttpResponseCode;
164 bool m_arnHasBeenSet = false;
165 bool m_nameHasBeenSet = false;
166 bool m_desiredStateHasBeenSet = false;
167 bool m_currentStateHasBeenSet = false;
168 bool m_creationTimeHasBeenSet = false;
169 bool m_lastModifiedTimeHasBeenSet = false;
170 bool m_requestIdHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace Pipes
175} // namespace Aws
AWS_PIPES_API CreatePipeResult()=default
const Aws::Utils::DateTime & GetCreationTime() const
AWS_PIPES_API CreatePipeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RequestedPipeState GetDesiredState() const
CreatePipeResult & WithCreationTime(CreationTimeT &&value)
CreatePipeResult & WithLastModifiedTime(LastModifiedTimeT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetRequestId() const
void SetCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
CreatePipeResult & WithRequestId(RequestIdT &&value)
CreatePipeResult & WithCurrentState(PipeState value)
CreatePipeResult & WithDesiredState(RequestedPipeState value)
AWS_PIPES_API CreatePipeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetName() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
CreatePipeResult & WithName(NameT &&value)
const Aws::String & GetArn() const
CreatePipeResult & WithArn(ArnT &&value)
void SetRequestId(RequestIdT &&value)
void SetDesiredState(RequestedPipeState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue