AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
49 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
50 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
51 inline GenericRevisionInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
52 inline GenericRevisionInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
53 inline GenericRevisionInfo& WithDescription(const char* value) { SetDescription(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetDeploymentGroups() const{ return m_deploymentGroups; }
61 inline bool DeploymentGroupsHasBeenSet() const { return m_deploymentGroupsHasBeenSet; }
62 inline void SetDeploymentGroups(const Aws::Vector<Aws::String>& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = value; }
63 inline void SetDeploymentGroups(Aws::Vector<Aws::String>&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = std::move(value); }
65 inline GenericRevisionInfo& WithDeploymentGroups(Aws::Vector<Aws::String>&& value) { SetDeploymentGroups(std::move(value)); return *this;}
66 inline GenericRevisionInfo& AddDeploymentGroups(const Aws::String& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; }
67 inline GenericRevisionInfo& AddDeploymentGroups(Aws::String&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(std::move(value)); return *this; }
68 inline GenericRevisionInfo& AddDeploymentGroups(const char* value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; }
70
72
75 inline const Aws::Utils::DateTime& GetFirstUsedTime() const{ return m_firstUsedTime; }
76 inline bool FirstUsedTimeHasBeenSet() const { return m_firstUsedTimeHasBeenSet; }
77 inline void SetFirstUsedTime(const Aws::Utils::DateTime& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = value; }
78 inline void SetFirstUsedTime(Aws::Utils::DateTime&& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = std::move(value); }
79 inline GenericRevisionInfo& WithFirstUsedTime(const Aws::Utils::DateTime& value) { SetFirstUsedTime(value); return *this;}
80 inline GenericRevisionInfo& WithFirstUsedTime(Aws::Utils::DateTime&& value) { SetFirstUsedTime(std::move(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetLastUsedTime() const{ return m_lastUsedTime; }
88 inline bool LastUsedTimeHasBeenSet() const { return m_lastUsedTimeHasBeenSet; }
89 inline void SetLastUsedTime(const Aws::Utils::DateTime& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = value; }
90 inline void SetLastUsedTime(Aws::Utils::DateTime&& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = std::move(value); }
91 inline GenericRevisionInfo& WithLastUsedTime(const Aws::Utils::DateTime& value) { SetLastUsedTime(value); return *this;}
92 inline GenericRevisionInfo& WithLastUsedTime(Aws::Utils::DateTime&& value) { SetLastUsedTime(std::move(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetRegisterTime() const{ return m_registerTime; }
100 inline bool RegisterTimeHasBeenSet() const { return m_registerTimeHasBeenSet; }
101 inline void SetRegisterTime(const Aws::Utils::DateTime& value) { m_registerTimeHasBeenSet = true; m_registerTime = value; }
102 inline void SetRegisterTime(Aws::Utils::DateTime&& value) { m_registerTimeHasBeenSet = true; m_registerTime = std::move(value); }
103 inline GenericRevisionInfo& WithRegisterTime(const Aws::Utils::DateTime& value) { SetRegisterTime(value); return *this;}
104 inline GenericRevisionInfo& WithRegisterTime(Aws::Utils::DateTime&& value) { SetRegisterTime(std::move(value)); return *this;}
106 private:
107
108 Aws::String m_description;
109 bool m_descriptionHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_deploymentGroups;
112 bool m_deploymentGroupsHasBeenSet = false;
113
114 Aws::Utils::DateTime m_firstUsedTime;
115 bool m_firstUsedTimeHasBeenSet = false;
116
117 Aws::Utils::DateTime m_lastUsedTime;
118 bool m_lastUsedTimeHasBeenSet = false;
119
120 Aws::Utils::DateTime m_registerTime;
121 bool m_registerTimeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace CodeDeploy
126} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue