AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GenericRevisionInfo.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeDeploy
24{
25namespace Model
26{
27
34 {
35 public:
40
41
45 inline const Aws::String& GetDescription() const{ return m_description; }
46
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51
55 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
56
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66
70 inline GenericRevisionInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
71
75 inline GenericRevisionInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76
80 inline GenericRevisionInfo& WithDescription(const char* value) { SetDescription(value); return *this;}
81
82
86 inline const Aws::Vector<Aws::String>& GetDeploymentGroups() const{ return m_deploymentGroups; }
87
91 inline bool DeploymentGroupsHasBeenSet() const { return m_deploymentGroupsHasBeenSet; }
92
96 inline void SetDeploymentGroups(const Aws::Vector<Aws::String>& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = value; }
97
101 inline void SetDeploymentGroups(Aws::Vector<Aws::String>&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = std::move(value); }
102
107
112
116 inline GenericRevisionInfo& AddDeploymentGroups(const Aws::String& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; }
117
121 inline GenericRevisionInfo& AddDeploymentGroups(Aws::String&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(std::move(value)); return *this; }
122
126 inline GenericRevisionInfo& AddDeploymentGroups(const char* value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; }
127
128
132 inline const Aws::Utils::DateTime& GetFirstUsedTime() const{ return m_firstUsedTime; }
133
137 inline bool FirstUsedTimeHasBeenSet() const { return m_firstUsedTimeHasBeenSet; }
138
142 inline void SetFirstUsedTime(const Aws::Utils::DateTime& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = value; }
143
147 inline void SetFirstUsedTime(Aws::Utils::DateTime&& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = std::move(value); }
148
152 inline GenericRevisionInfo& WithFirstUsedTime(const Aws::Utils::DateTime& value) { SetFirstUsedTime(value); return *this;}
153
157 inline GenericRevisionInfo& WithFirstUsedTime(Aws::Utils::DateTime&& value) { SetFirstUsedTime(std::move(value)); return *this;}
158
159
163 inline const Aws::Utils::DateTime& GetLastUsedTime() const{ return m_lastUsedTime; }
164
168 inline bool LastUsedTimeHasBeenSet() const { return m_lastUsedTimeHasBeenSet; }
169
173 inline void SetLastUsedTime(const Aws::Utils::DateTime& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = value; }
174
178 inline void SetLastUsedTime(Aws::Utils::DateTime&& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = std::move(value); }
179
183 inline GenericRevisionInfo& WithLastUsedTime(const Aws::Utils::DateTime& value) { SetLastUsedTime(value); return *this;}
184
188 inline GenericRevisionInfo& WithLastUsedTime(Aws::Utils::DateTime&& value) { SetLastUsedTime(std::move(value)); return *this;}
189
190
194 inline const Aws::Utils::DateTime& GetRegisterTime() const{ return m_registerTime; }
195
199 inline bool RegisterTimeHasBeenSet() const { return m_registerTimeHasBeenSet; }
200
204 inline void SetRegisterTime(const Aws::Utils::DateTime& value) { m_registerTimeHasBeenSet = true; m_registerTime = value; }
205
209 inline void SetRegisterTime(Aws::Utils::DateTime&& value) { m_registerTimeHasBeenSet = true; m_registerTime = std::move(value); }
210
214 inline GenericRevisionInfo& WithRegisterTime(const Aws::Utils::DateTime& value) { SetRegisterTime(value); return *this;}
215
219 inline GenericRevisionInfo& WithRegisterTime(Aws::Utils::DateTime&& value) { SetRegisterTime(std::move(value)); return *this;}
220
221 private:
222
223 Aws::String m_description;
224 bool m_descriptionHasBeenSet = false;
225
226 Aws::Vector<Aws::String> m_deploymentGroups;
227 bool m_deploymentGroupsHasBeenSet = false;
228
229 Aws::Utils::DateTime m_firstUsedTime;
230 bool m_firstUsedTimeHasBeenSet = false;
231
232 Aws::Utils::DateTime m_lastUsedTime;
233 bool m_lastUsedTimeHasBeenSet = false;
234
235 Aws::Utils::DateTime m_registerTime;
236 bool m_registerTimeHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace CodeDeploy
241} // namespace Aws
#define AWS_CODEDEPLOY_API
AWS_CODEDEPLOY_API GenericRevisionInfo(Aws::Utils::Json::JsonView jsonValue)
GenericRevisionInfo & WithRegisterTime(const Aws::Utils::DateTime &value)
AWS_CODEDEPLOY_API GenericRevisionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
GenericRevisionInfo & WithFirstUsedTime(const Aws::Utils::DateTime &value)
void SetFirstUsedTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetRegisterTime() const
void SetRegisterTime(Aws::Utils::DateTime &&value)
void SetRegisterTime(const Aws::Utils::DateTime &value)
void SetLastUsedTime(const Aws::Utils::DateTime &value)
GenericRevisionInfo & WithDeploymentGroups(const Aws::Vector< Aws::String > &value)
void SetDeploymentGroups(Aws::Vector< Aws::String > &&value)
GenericRevisionInfo & WithLastUsedTime(Aws::Utils::DateTime &&value)
GenericRevisionInfo & WithRegisterTime(Aws::Utils::DateTime &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
GenericRevisionInfo & AddDeploymentGroups(const char *value)
GenericRevisionInfo & WithDescription(Aws::String &&value)
GenericRevisionInfo & AddDeploymentGroups(const Aws::String &value)
GenericRevisionInfo & WithFirstUsedTime(Aws::Utils::DateTime &&value)
void SetFirstUsedTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetFirstUsedTime() const
const Aws::Vector< Aws::String > & GetDeploymentGroups() const
void SetDeploymentGroups(const Aws::Vector< Aws::String > &value)
GenericRevisionInfo & WithLastUsedTime(const Aws::Utils::DateTime &value)
GenericRevisionInfo & AddDeploymentGroups(Aws::String &&value)
GenericRevisionInfo & WithDeploymentGroups(Aws::Vector< Aws::String > &&value)
void SetLastUsedTime(Aws::Utils::DateTime &&value)
void SetDescription(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUsedTime() const
GenericRevisionInfo & WithDescription(const char *value)
GenericRevisionInfo & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector