AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GenericRevisionInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy {
22namespace Model {
23
30 public:
31 AWS_CODEDEPLOY_API GenericRevisionInfo() = default;
32 AWS_CODEDEPLOY_API GenericRevisionInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetDescription() const { return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
42 template <typename DescriptionT = Aws::String>
43 void SetDescription(DescriptionT&& value) {
44 m_descriptionHasBeenSet = true;
45 m_description = std::forward<DescriptionT>(value);
46 }
47 template <typename DescriptionT = Aws::String>
48 GenericRevisionInfo& WithDescription(DescriptionT&& value) {
49 SetDescription(std::forward<DescriptionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetDeploymentGroups() const { return m_deploymentGroups; }
59 inline bool DeploymentGroupsHasBeenSet() const { return m_deploymentGroupsHasBeenSet; }
60 template <typename DeploymentGroupsT = Aws::Vector<Aws::String>>
61 void SetDeploymentGroups(DeploymentGroupsT&& value) {
62 m_deploymentGroupsHasBeenSet = true;
63 m_deploymentGroups = std::forward<DeploymentGroupsT>(value);
64 }
65 template <typename DeploymentGroupsT = Aws::Vector<Aws::String>>
66 GenericRevisionInfo& WithDeploymentGroups(DeploymentGroupsT&& value) {
67 SetDeploymentGroups(std::forward<DeploymentGroupsT>(value));
68 return *this;
69 }
70 template <typename DeploymentGroupsT = Aws::String>
71 GenericRevisionInfo& AddDeploymentGroups(DeploymentGroupsT&& value) {
72 m_deploymentGroupsHasBeenSet = true;
73 m_deploymentGroups.emplace_back(std::forward<DeploymentGroupsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetFirstUsedTime() const { return m_firstUsedTime; }
83 inline bool FirstUsedTimeHasBeenSet() const { return m_firstUsedTimeHasBeenSet; }
84 template <typename FirstUsedTimeT = Aws::Utils::DateTime>
85 void SetFirstUsedTime(FirstUsedTimeT&& value) {
86 m_firstUsedTimeHasBeenSet = true;
87 m_firstUsedTime = std::forward<FirstUsedTimeT>(value);
88 }
89 template <typename FirstUsedTimeT = Aws::Utils::DateTime>
90 GenericRevisionInfo& WithFirstUsedTime(FirstUsedTimeT&& value) {
91 SetFirstUsedTime(std::forward<FirstUsedTimeT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetLastUsedTime() const { return m_lastUsedTime; }
101 inline bool LastUsedTimeHasBeenSet() const { return m_lastUsedTimeHasBeenSet; }
102 template <typename LastUsedTimeT = Aws::Utils::DateTime>
103 void SetLastUsedTime(LastUsedTimeT&& value) {
104 m_lastUsedTimeHasBeenSet = true;
105 m_lastUsedTime = std::forward<LastUsedTimeT>(value);
106 }
107 template <typename LastUsedTimeT = Aws::Utils::DateTime>
108 GenericRevisionInfo& WithLastUsedTime(LastUsedTimeT&& value) {
109 SetLastUsedTime(std::forward<LastUsedTimeT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Utils::DateTime& GetRegisterTime() const { return m_registerTime; }
119 inline bool RegisterTimeHasBeenSet() const { return m_registerTimeHasBeenSet; }
120 template <typename RegisterTimeT = Aws::Utils::DateTime>
121 void SetRegisterTime(RegisterTimeT&& value) {
122 m_registerTimeHasBeenSet = true;
123 m_registerTime = std::forward<RegisterTimeT>(value);
124 }
125 template <typename RegisterTimeT = Aws::Utils::DateTime>
126 GenericRevisionInfo& WithRegisterTime(RegisterTimeT&& value) {
127 SetRegisterTime(std::forward<RegisterTimeT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_description;
133
134 Aws::Vector<Aws::String> m_deploymentGroups;
135
136 Aws::Utils::DateTime m_firstUsedTime{};
137
138 Aws::Utils::DateTime m_lastUsedTime{};
139
140 Aws::Utils::DateTime m_registerTime{};
141 bool m_descriptionHasBeenSet = false;
142 bool m_deploymentGroupsHasBeenSet = false;
143 bool m_firstUsedTimeHasBeenSet = false;
144 bool m_lastUsedTimeHasBeenSet = false;
145 bool m_registerTimeHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace CodeDeploy
150} // namespace Aws
AWS_CODEDEPLOY_API GenericRevisionInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API GenericRevisionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
GenericRevisionInfo & WithLastUsedTime(LastUsedTimeT &&value)
GenericRevisionInfo & WithFirstUsedTime(FirstUsedTimeT &&value)
const Aws::Utils::DateTime & GetRegisterTime() const
void SetDeploymentGroups(DeploymentGroupsT &&value)
GenericRevisionInfo & AddDeploymentGroups(DeploymentGroupsT &&value)
GenericRevisionInfo & WithDescription(DescriptionT &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetFirstUsedTime() const
const Aws::Vector< Aws::String > & GetDeploymentGroups() const
AWS_CODEDEPLOY_API GenericRevisionInfo()=default
GenericRevisionInfo & WithRegisterTime(RegisterTimeT &&value)
const Aws::Utils::DateTime & GetLastUsedTime() const
GenericRevisionInfo & WithDeploymentGroups(DeploymentGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue