AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
AppVersionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResilienceHub {
21namespace Model {
22
29 public:
30 AWS_RESILIENCEHUB_API AppVersionSummary() = default;
31 AWS_RESILIENCEHUB_API AppVersionSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUB_API AppVersionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAppVersion() const { return m_appVersion; }
40 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
41 template <typename AppVersionT = Aws::String>
42 void SetAppVersion(AppVersionT&& value) {
43 m_appVersionHasBeenSet = true;
44 m_appVersion = std::forward<AppVersionT>(value);
45 }
46 template <typename AppVersionT = Aws::String>
47 AppVersionSummary& WithAppVersion(AppVersionT&& value) {
48 SetAppVersion(std::forward<AppVersionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
58 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
59 template <typename CreationTimeT = Aws::Utils::DateTime>
60 void SetCreationTime(CreationTimeT&& value) {
61 m_creationTimeHasBeenSet = true;
62 m_creationTime = std::forward<CreationTimeT>(value);
63 }
64 template <typename CreationTimeT = Aws::Utils::DateTime>
65 AppVersionSummary& WithCreationTime(CreationTimeT&& value) {
66 SetCreationTime(std::forward<CreationTimeT>(value));
67 return *this;
68 }
70
72
75 inline long long GetIdentifier() const { return m_identifier; }
76 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
77 inline void SetIdentifier(long long value) {
78 m_identifierHasBeenSet = true;
79 m_identifier = value;
80 }
81 inline AppVersionSummary& WithIdentifier(long long value) {
82 SetIdentifier(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetVersionName() const { return m_versionName; }
92 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
93 template <typename VersionNameT = Aws::String>
94 void SetVersionName(VersionNameT&& value) {
95 m_versionNameHasBeenSet = true;
96 m_versionName = std::forward<VersionNameT>(value);
97 }
98 template <typename VersionNameT = Aws::String>
99 AppVersionSummary& WithVersionName(VersionNameT&& value) {
100 SetVersionName(std::forward<VersionNameT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_appVersion;
106
107 Aws::Utils::DateTime m_creationTime{};
108
109 long long m_identifier{0};
110
111 Aws::String m_versionName;
112 bool m_appVersionHasBeenSet = false;
113 bool m_creationTimeHasBeenSet = false;
114 bool m_identifierHasBeenSet = false;
115 bool m_versionNameHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace ResilienceHub
120} // namespace Aws
AWS_RESILIENCEHUB_API AppVersionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API AppVersionSummary()=default
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AppVersionSummary & WithAppVersion(AppVersionT &&value)
AppVersionSummary & WithCreationTime(CreationTimeT &&value)
AWS_RESILIENCEHUB_API AppVersionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
AppVersionSummary & WithIdentifier(long long value)
AppVersionSummary & WithVersionName(VersionNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue