AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AppBlock.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appstream/model/S3Location.h>
10#include <aws/appstream/model/ScriptDetails.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/appstream/model/PackagingType.h>
13#include <aws/appstream/model/AppBlockState.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/appstream/model/ErrorDetails.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace AppStream
29{
30namespace Model
31{
32
45 {
46 public:
47 AWS_APPSTREAM_API AppBlock() = default;
48 AWS_APPSTREAM_API AppBlock(Aws::Utils::Json::JsonView jsonValue);
49 AWS_APPSTREAM_API AppBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 AppBlock& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetArn() const { return m_arn; }
70 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
71 template<typename ArnT = Aws::String>
72 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
73 template<typename ArnT = Aws::String>
74 AppBlock& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template<typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
85 template<typename DescriptionT = Aws::String>
86 AppBlock& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
88
90
93 inline const Aws::String& GetDisplayName() const { return m_displayName; }
94 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
95 template<typename DisplayNameT = Aws::String>
96 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
97 template<typename DisplayNameT = Aws::String>
98 AppBlock& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
100
102
105 inline const S3Location& GetSourceS3Location() const { return m_sourceS3Location; }
106 inline bool SourceS3LocationHasBeenSet() const { return m_sourceS3LocationHasBeenSet; }
107 template<typename SourceS3LocationT = S3Location>
108 void SetSourceS3Location(SourceS3LocationT&& value) { m_sourceS3LocationHasBeenSet = true; m_sourceS3Location = std::forward<SourceS3LocationT>(value); }
109 template<typename SourceS3LocationT = S3Location>
110 AppBlock& WithSourceS3Location(SourceS3LocationT&& value) { SetSourceS3Location(std::forward<SourceS3LocationT>(value)); return *this;}
112
114
118 inline const ScriptDetails& GetSetupScriptDetails() const { return m_setupScriptDetails; }
119 inline bool SetupScriptDetailsHasBeenSet() const { return m_setupScriptDetailsHasBeenSet; }
120 template<typename SetupScriptDetailsT = ScriptDetails>
121 void SetSetupScriptDetails(SetupScriptDetailsT&& value) { m_setupScriptDetailsHasBeenSet = true; m_setupScriptDetails = std::forward<SetupScriptDetailsT>(value); }
122 template<typename SetupScriptDetailsT = ScriptDetails>
123 AppBlock& WithSetupScriptDetails(SetupScriptDetailsT&& value) { SetSetupScriptDetails(std::forward<SetupScriptDetailsT>(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
131 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
132 template<typename CreatedTimeT = Aws::Utils::DateTime>
133 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
134 template<typename CreatedTimeT = Aws::Utils::DateTime>
135 AppBlock& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
137
139
143 inline const ScriptDetails& GetPostSetupScriptDetails() const { return m_postSetupScriptDetails; }
144 inline bool PostSetupScriptDetailsHasBeenSet() const { return m_postSetupScriptDetailsHasBeenSet; }
145 template<typename PostSetupScriptDetailsT = ScriptDetails>
146 void SetPostSetupScriptDetails(PostSetupScriptDetailsT&& value) { m_postSetupScriptDetailsHasBeenSet = true; m_postSetupScriptDetails = std::forward<PostSetupScriptDetailsT>(value); }
147 template<typename PostSetupScriptDetailsT = ScriptDetails>
148 AppBlock& WithPostSetupScriptDetails(PostSetupScriptDetailsT&& value) { SetPostSetupScriptDetails(std::forward<PostSetupScriptDetailsT>(value)); return *this;}
150
152
155 inline PackagingType GetPackagingType() const { return m_packagingType; }
156 inline bool PackagingTypeHasBeenSet() const { return m_packagingTypeHasBeenSet; }
157 inline void SetPackagingType(PackagingType value) { m_packagingTypeHasBeenSet = true; m_packagingType = value; }
158 inline AppBlock& WithPackagingType(PackagingType value) { SetPackagingType(value); return *this;}
160
162
170 inline AppBlockState GetState() const { return m_state; }
171 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
172 inline void SetState(AppBlockState value) { m_stateHasBeenSet = true; m_state = value; }
173 inline AppBlock& WithState(AppBlockState value) { SetState(value); return *this;}
175
177
180 inline const Aws::Vector<ErrorDetails>& GetAppBlockErrors() const { return m_appBlockErrors; }
181 inline bool AppBlockErrorsHasBeenSet() const { return m_appBlockErrorsHasBeenSet; }
182 template<typename AppBlockErrorsT = Aws::Vector<ErrorDetails>>
183 void SetAppBlockErrors(AppBlockErrorsT&& value) { m_appBlockErrorsHasBeenSet = true; m_appBlockErrors = std::forward<AppBlockErrorsT>(value); }
184 template<typename AppBlockErrorsT = Aws::Vector<ErrorDetails>>
185 AppBlock& WithAppBlockErrors(AppBlockErrorsT&& value) { SetAppBlockErrors(std::forward<AppBlockErrorsT>(value)); return *this;}
186 template<typename AppBlockErrorsT = ErrorDetails>
187 AppBlock& AddAppBlockErrors(AppBlockErrorsT&& value) { m_appBlockErrorsHasBeenSet = true; m_appBlockErrors.emplace_back(std::forward<AppBlockErrorsT>(value)); return *this; }
189 private:
190
191 Aws::String m_name;
192 bool m_nameHasBeenSet = false;
193
194 Aws::String m_arn;
195 bool m_arnHasBeenSet = false;
196
197 Aws::String m_description;
198 bool m_descriptionHasBeenSet = false;
199
200 Aws::String m_displayName;
201 bool m_displayNameHasBeenSet = false;
202
203 S3Location m_sourceS3Location;
204 bool m_sourceS3LocationHasBeenSet = false;
205
206 ScriptDetails m_setupScriptDetails;
207 bool m_setupScriptDetailsHasBeenSet = false;
208
209 Aws::Utils::DateTime m_createdTime{};
210 bool m_createdTimeHasBeenSet = false;
211
212 ScriptDetails m_postSetupScriptDetails;
213 bool m_postSetupScriptDetailsHasBeenSet = false;
214
215 PackagingType m_packagingType{PackagingType::NOT_SET};
216 bool m_packagingTypeHasBeenSet = false;
217
219 bool m_stateHasBeenSet = false;
220
221 Aws::Vector<ErrorDetails> m_appBlockErrors;
222 bool m_appBlockErrorsHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace AppStream
227} // namespace Aws
void SetPostSetupScriptDetails(PostSetupScriptDetailsT &&value)
Definition AppBlock.h:146
AppBlock & WithPackagingType(PackagingType value)
Definition AppBlock.h:158
PackagingType GetPackagingType() const
Definition AppBlock.h:155
AWS_APPSTREAM_API AppBlock()=default
const Aws::Vector< ErrorDetails > & GetAppBlockErrors() const
Definition AppBlock.h:180
AppBlock & WithDisplayName(DisplayNameT &&value)
Definition AppBlock.h:98
void SetDisplayName(DisplayNameT &&value)
Definition AppBlock.h:96
const Aws::String & GetDescription() const
Definition AppBlock.h:81
void SetAppBlockErrors(AppBlockErrorsT &&value)
Definition AppBlock.h:183
bool DescriptionHasBeenSet() const
Definition AppBlock.h:82
AppBlock & WithCreatedTime(CreatedTimeT &&value)
Definition AppBlock.h:135
const ScriptDetails & GetSetupScriptDetails() const
Definition AppBlock.h:118
AppBlock & WithSourceS3Location(SourceS3LocationT &&value)
Definition AppBlock.h:110
AWS_APPSTREAM_API AppBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AppBlockErrorsHasBeenSet() const
Definition AppBlock.h:181
bool SourceS3LocationHasBeenSet() const
Definition AppBlock.h:106
void SetCreatedTime(CreatedTimeT &&value)
Definition AppBlock.h:133
AppBlock & WithState(AppBlockState value)
Definition AppBlock.h:173
const S3Location & GetSourceS3Location() const
Definition AppBlock.h:105
AppBlock & WithDescription(DescriptionT &&value)
Definition AppBlock.h:86
bool SetupScriptDetailsHasBeenSet() const
Definition AppBlock.h:119
bool DisplayNameHasBeenSet() const
Definition AppBlock.h:94
const Aws::String & GetName() const
Definition AppBlock.h:57
AppBlock & WithAppBlockErrors(AppBlockErrorsT &&value)
Definition AppBlock.h:185
AppBlockState GetState() const
Definition AppBlock.h:170
void SetDescription(DescriptionT &&value)
Definition AppBlock.h:84
AWS_APPSTREAM_API AppBlock(Aws::Utils::Json::JsonView jsonValue)
const ScriptDetails & GetPostSetupScriptDetails() const
Definition AppBlock.h:143
AppBlock & WithPostSetupScriptDetails(PostSetupScriptDetailsT &&value)
Definition AppBlock.h:148
void SetState(AppBlockState value)
Definition AppBlock.h:172
void SetSourceS3Location(SourceS3LocationT &&value)
Definition AppBlock.h:108
bool PackagingTypeHasBeenSet() const
Definition AppBlock.h:156
void SetSetupScriptDetails(SetupScriptDetailsT &&value)
Definition AppBlock.h:121
bool PostSetupScriptDetailsHasBeenSet() const
Definition AppBlock.h:144
AppBlock & AddAppBlockErrors(AppBlockErrorsT &&value)
Definition AppBlock.h:187
const Aws::String & GetArn() const
Definition AppBlock.h:69
const Aws::Utils::DateTime & GetCreatedTime() const
Definition AppBlock.h:130
void SetPackagingType(PackagingType value)
Definition AppBlock.h:157
void SetName(NameT &&value)
Definition AppBlock.h:60
AppBlock & WithArn(ArnT &&value)
Definition AppBlock.h:74
void SetArn(ArnT &&value)
Definition AppBlock.h:72
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AppBlock & WithSetupScriptDetails(SetupScriptDetailsT &&value)
Definition AppBlock.h:123
AppBlock & WithName(NameT &&value)
Definition AppBlock.h:62
const Aws::String & GetDisplayName() const
Definition AppBlock.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue