AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreatePipeResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pipes/Pipes_EXPORTS.h>
10#include <aws/pipes/model/PipeState.h>
11#include <aws/pipes/model/RequestedPipeState.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 Pipes {
25namespace Model {
27 public:
28 AWS_PIPES_API CreatePipeResult() = default;
31
33
36 inline const Aws::String& GetArn() const { return m_arn; }
37 template <typename ArnT = Aws::String>
38 void SetArn(ArnT&& value) {
39 m_arnHasBeenSet = true;
40 m_arn = std::forward<ArnT>(value);
41 }
42 template <typename ArnT = Aws::String>
43 CreatePipeResult& WithArn(ArnT&& value) {
44 SetArn(std::forward<ArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 template <typename NameT = Aws::String>
55 void SetName(NameT&& value) {
56 m_nameHasBeenSet = true;
57 m_name = std::forward<NameT>(value);
58 }
59 template <typename NameT = Aws::String>
60 CreatePipeResult& WithName(NameT&& value) {
61 SetName(std::forward<NameT>(value));
62 return *this;
63 }
65
67
70 inline RequestedPipeState GetDesiredState() const { return m_desiredState; }
72 m_desiredStateHasBeenSet = true;
73 m_desiredState = value;
74 }
76 SetDesiredState(value);
77 return *this;
78 }
80
82
85 inline PipeState GetCurrentState() const { return m_currentState; }
86 inline void SetCurrentState(PipeState value) {
87 m_currentStateHasBeenSet = true;
88 m_currentState = value;
89 }
91 SetCurrentState(value);
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
101 template <typename CreationTimeT = Aws::Utils::DateTime>
102 void SetCreationTime(CreationTimeT&& value) {
103 m_creationTimeHasBeenSet = true;
104 m_creationTime = std::forward<CreationTimeT>(value);
105 }
106 template <typename CreationTimeT = Aws::Utils::DateTime>
107 CreatePipeResult& WithCreationTime(CreationTimeT&& value) {
108 SetCreationTime(std::forward<CreationTimeT>(value));
109 return *this;
110 }
112
114
119 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
120 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
121 void SetLastModifiedTime(LastModifiedTimeT&& value) {
122 m_lastModifiedTimeHasBeenSet = true;
123 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
124 }
125 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
126 CreatePipeResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
127 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
128 return *this;
129 }
131
133
134 inline const Aws::String& GetRequestId() const { return m_requestId; }
135 template <typename RequestIdT = Aws::String>
136 void SetRequestId(RequestIdT&& value) {
137 m_requestIdHasBeenSet = true;
138 m_requestId = std::forward<RequestIdT>(value);
139 }
140 template <typename RequestIdT = Aws::String>
141 CreatePipeResult& WithRequestId(RequestIdT&& value) {
142 SetRequestId(std::forward<RequestIdT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_arn;
148
149 Aws::String m_name;
150
152
153 PipeState m_currentState{PipeState::NOT_SET};
154
155 Aws::Utils::DateTime m_creationTime{};
156
157 Aws::Utils::DateTime m_lastModifiedTime{};
158
159 Aws::String m_requestId;
160 bool m_arnHasBeenSet = false;
161 bool m_nameHasBeenSet = false;
162 bool m_desiredStateHasBeenSet = false;
163 bool m_currentStateHasBeenSet = false;
164 bool m_creationTimeHasBeenSet = false;
165 bool m_lastModifiedTimeHasBeenSet = false;
166 bool m_requestIdHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Pipes
171} // 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)
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