AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
App.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/AppStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMonetization {
22namespace Model {
23
30class App {
31 public:
32 AWS_APPMONETIZATION_API App() = default;
33 AWS_APPMONETIZATION_API App(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API App& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAppId() const { return m_appId; }
42 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
43 template <typename AppIdT = Aws::String>
44 void SetAppId(AppIdT&& value) {
45 m_appIdHasBeenSet = true;
46 m_appId = std::forward<AppIdT>(value);
47 }
48 template <typename AppIdT = Aws::String>
49 App& WithAppId(AppIdT&& value) {
50 SetAppId(std::forward<AppIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 App& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 App& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline AppStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(AppStatus value) {
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
101 inline App& WithStatus(AppStatus value) {
102 SetStatus(value);
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
112 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
113 template <typename CreatedAtT = Aws::Utils::DateTime>
114 void SetCreatedAt(CreatedAtT&& value) {
115 m_createdAtHasBeenSet = true;
116 m_createdAt = std::forward<CreatedAtT>(value);
117 }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 App& WithCreatedAt(CreatedAtT&& value) {
120 SetCreatedAt(std::forward<CreatedAtT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetArn() const { return m_arn; }
130 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
131 template <typename ArnT = Aws::String>
132 void SetArn(ArnT&& value) {
133 m_arnHasBeenSet = true;
134 m_arn = std::forward<ArnT>(value);
135 }
136 template <typename ArnT = Aws::String>
137 App& WithArn(ArnT&& value) {
138 SetArn(std::forward<ArnT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_appId;
144
145 Aws::String m_name;
146
147 Aws::String m_description;
148
150
151 Aws::Utils::DateTime m_createdAt{};
152
153 Aws::String m_arn;
154 bool m_appIdHasBeenSet = false;
155 bool m_nameHasBeenSet = false;
156 bool m_descriptionHasBeenSet = false;
157 bool m_statusHasBeenSet = false;
158 bool m_createdAtHasBeenSet = false;
159 bool m_arnHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace AppMonetization
164} // namespace Aws
bool NameHasBeenSet() const
Definition App.h:60
const Aws::String & GetName() const
Definition App.h:59
App & WithArn(ArnT &&value)
Definition App.h:137
bool DescriptionHasBeenSet() const
Definition App.h:78
App & WithStatus(AppStatus value)
Definition App.h:101
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
Definition App.h:62
void SetCreatedAt(CreatedAtT &&value)
Definition App.h:114
void SetDescription(DescriptionT &&value)
Definition App.h:80
bool AppIdHasBeenSet() const
Definition App.h:42
const Aws::String & GetAppId() const
Definition App.h:41
void SetAppId(AppIdT &&value)
Definition App.h:44
AppStatus GetStatus() const
Definition App.h:95
const Aws::Utils::DateTime & GetCreatedAt() const
Definition App.h:111
void SetArn(ArnT &&value)
Definition App.h:132
App & WithName(NameT &&value)
Definition App.h:67
App & WithCreatedAt(CreatedAtT &&value)
Definition App.h:119
App & WithAppId(AppIdT &&value)
Definition App.h:49
AWS_APPMONETIZATION_API App(Aws::Utils::Json::JsonView jsonValue)
bool CreatedAtHasBeenSet() const
Definition App.h:112
AWS_APPMONETIZATION_API App & operator=(Aws::Utils::Json::JsonView jsonValue)
App & WithDescription(DescriptionT &&value)
Definition App.h:85
void SetStatus(AppStatus value)
Definition App.h:97
AWS_APPMONETIZATION_API App()=default
bool StatusHasBeenSet() const
Definition App.h:96
const Aws::String & GetDescription() const
Definition App.h:77
const Aws::String & GetArn() const
Definition App.h:129
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue