AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GenericRevisionInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
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:
36 AWS_CODEDEPLOY_API GenericRevisionInfo() = default;
37 AWS_CODEDEPLOY_API GenericRevisionInfo(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDescription() const { return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 template<typename DescriptionT = Aws::String>
49 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
50 template<typename DescriptionT = Aws::String>
51 GenericRevisionInfo& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = std::forward<DeploymentGroupsT>(value); }
62 template<typename DeploymentGroupsT = Aws::Vector<Aws::String>>
63 GenericRevisionInfo& WithDeploymentGroups(DeploymentGroupsT&& value) { SetDeploymentGroups(std::forward<DeploymentGroupsT>(value)); return *this;}
64 template<typename DeploymentGroupsT = Aws::String>
65 GenericRevisionInfo& AddDeploymentGroups(DeploymentGroupsT&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.emplace_back(std::forward<DeploymentGroupsT>(value)); return *this; }
67
69
72 inline const Aws::Utils::DateTime& GetFirstUsedTime() const { return m_firstUsedTime; }
73 inline bool FirstUsedTimeHasBeenSet() const { return m_firstUsedTimeHasBeenSet; }
74 template<typename FirstUsedTimeT = Aws::Utils::DateTime>
75 void SetFirstUsedTime(FirstUsedTimeT&& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = std::forward<FirstUsedTimeT>(value); }
76 template<typename FirstUsedTimeT = Aws::Utils::DateTime>
77 GenericRevisionInfo& WithFirstUsedTime(FirstUsedTimeT&& value) { SetFirstUsedTime(std::forward<FirstUsedTimeT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetLastUsedTime() const { return m_lastUsedTime; }
85 inline bool LastUsedTimeHasBeenSet() const { return m_lastUsedTimeHasBeenSet; }
86 template<typename LastUsedTimeT = Aws::Utils::DateTime>
87 void SetLastUsedTime(LastUsedTimeT&& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = std::forward<LastUsedTimeT>(value); }
88 template<typename LastUsedTimeT = Aws::Utils::DateTime>
89 GenericRevisionInfo& WithLastUsedTime(LastUsedTimeT&& value) { SetLastUsedTime(std::forward<LastUsedTimeT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetRegisterTime() const { return m_registerTime; }
97 inline bool RegisterTimeHasBeenSet() const { return m_registerTimeHasBeenSet; }
98 template<typename RegisterTimeT = Aws::Utils::DateTime>
99 void SetRegisterTime(RegisterTimeT&& value) { m_registerTimeHasBeenSet = true; m_registerTime = std::forward<RegisterTimeT>(value); }
100 template<typename RegisterTimeT = Aws::Utils::DateTime>
101 GenericRevisionInfo& WithRegisterTime(RegisterTimeT&& value) { SetRegisterTime(std::forward<RegisterTimeT>(value)); return *this;}
103 private:
104
105 Aws::String m_description;
106 bool m_descriptionHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_deploymentGroups;
109 bool m_deploymentGroupsHasBeenSet = false;
110
111 Aws::Utils::DateTime m_firstUsedTime{};
112 bool m_firstUsedTimeHasBeenSet = false;
113
114 Aws::Utils::DateTime m_lastUsedTime{};
115 bool m_lastUsedTimeHasBeenSet = false;
116
117 Aws::Utils::DateTime m_registerTime{};
118 bool m_registerTimeHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CodeDeploy
123} // 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