AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline AppBlock& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline AppBlock& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline AppBlock& WithName(const char* value) { SetName(value); return *this;}
66
68
71 inline const Aws::String& GetArn() const{ return m_arn; }
72 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
73 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
74 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
75 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
76 inline AppBlock& WithArn(const Aws::String& value) { SetArn(value); return *this;}
77 inline AppBlock& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
78 inline AppBlock& WithArn(const char* value) { SetArn(value); return *this;}
80
82
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline AppBlock& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline AppBlock& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline AppBlock& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
99 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
100 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
101 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
102 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
103 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
104 inline AppBlock& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
105 inline AppBlock& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
106 inline AppBlock& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
108
110
113 inline const S3Location& GetSourceS3Location() const{ return m_sourceS3Location; }
114 inline bool SourceS3LocationHasBeenSet() const { return m_sourceS3LocationHasBeenSet; }
115 inline void SetSourceS3Location(const S3Location& value) { m_sourceS3LocationHasBeenSet = true; m_sourceS3Location = value; }
116 inline void SetSourceS3Location(S3Location&& value) { m_sourceS3LocationHasBeenSet = true; m_sourceS3Location = std::move(value); }
117 inline AppBlock& WithSourceS3Location(const S3Location& value) { SetSourceS3Location(value); return *this;}
118 inline AppBlock& WithSourceS3Location(S3Location&& value) { SetSourceS3Location(std::move(value)); return *this;}
120
122
126 inline const ScriptDetails& GetSetupScriptDetails() const{ return m_setupScriptDetails; }
127 inline bool SetupScriptDetailsHasBeenSet() const { return m_setupScriptDetailsHasBeenSet; }
128 inline void SetSetupScriptDetails(const ScriptDetails& value) { m_setupScriptDetailsHasBeenSet = true; m_setupScriptDetails = value; }
129 inline void SetSetupScriptDetails(ScriptDetails&& value) { m_setupScriptDetailsHasBeenSet = true; m_setupScriptDetails = std::move(value); }
130 inline AppBlock& WithSetupScriptDetails(const ScriptDetails& value) { SetSetupScriptDetails(value); return *this;}
131 inline AppBlock& WithSetupScriptDetails(ScriptDetails&& value) { SetSetupScriptDetails(std::move(value)); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
139 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
140 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
141 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
142 inline AppBlock& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
143 inline AppBlock& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
145
147
151 inline const ScriptDetails& GetPostSetupScriptDetails() const{ return m_postSetupScriptDetails; }
152 inline bool PostSetupScriptDetailsHasBeenSet() const { return m_postSetupScriptDetailsHasBeenSet; }
153 inline void SetPostSetupScriptDetails(const ScriptDetails& value) { m_postSetupScriptDetailsHasBeenSet = true; m_postSetupScriptDetails = value; }
154 inline void SetPostSetupScriptDetails(ScriptDetails&& value) { m_postSetupScriptDetailsHasBeenSet = true; m_postSetupScriptDetails = std::move(value); }
155 inline AppBlock& WithPostSetupScriptDetails(const ScriptDetails& value) { SetPostSetupScriptDetails(value); return *this;}
156 inline AppBlock& WithPostSetupScriptDetails(ScriptDetails&& value) { SetPostSetupScriptDetails(std::move(value)); return *this;}
158
160
163 inline const PackagingType& GetPackagingType() const{ return m_packagingType; }
164 inline bool PackagingTypeHasBeenSet() const { return m_packagingTypeHasBeenSet; }
165 inline void SetPackagingType(const PackagingType& value) { m_packagingTypeHasBeenSet = true; m_packagingType = value; }
166 inline void SetPackagingType(PackagingType&& value) { m_packagingTypeHasBeenSet = true; m_packagingType = std::move(value); }
167 inline AppBlock& WithPackagingType(const PackagingType& value) { SetPackagingType(value); return *this;}
168 inline AppBlock& WithPackagingType(PackagingType&& value) { SetPackagingType(std::move(value)); return *this;}
170
172
180 inline const AppBlockState& GetState() const{ return m_state; }
181 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
182 inline void SetState(const AppBlockState& value) { m_stateHasBeenSet = true; m_state = value; }
183 inline void SetState(AppBlockState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
184 inline AppBlock& WithState(const AppBlockState& value) { SetState(value); return *this;}
185 inline AppBlock& WithState(AppBlockState&& value) { SetState(std::move(value)); return *this;}
187
189
192 inline const Aws::Vector<ErrorDetails>& GetAppBlockErrors() const{ return m_appBlockErrors; }
193 inline bool AppBlockErrorsHasBeenSet() const { return m_appBlockErrorsHasBeenSet; }
194 inline void SetAppBlockErrors(const Aws::Vector<ErrorDetails>& value) { m_appBlockErrorsHasBeenSet = true; m_appBlockErrors = value; }
195 inline void SetAppBlockErrors(Aws::Vector<ErrorDetails>&& value) { m_appBlockErrorsHasBeenSet = true; m_appBlockErrors = std::move(value); }
196 inline AppBlock& WithAppBlockErrors(const Aws::Vector<ErrorDetails>& value) { SetAppBlockErrors(value); return *this;}
197 inline AppBlock& WithAppBlockErrors(Aws::Vector<ErrorDetails>&& value) { SetAppBlockErrors(std::move(value)); return *this;}
198 inline AppBlock& AddAppBlockErrors(const ErrorDetails& value) { m_appBlockErrorsHasBeenSet = true; m_appBlockErrors.push_back(value); return *this; }
199 inline AppBlock& AddAppBlockErrors(ErrorDetails&& value) { m_appBlockErrorsHasBeenSet = true; m_appBlockErrors.push_back(std::move(value)); return *this; }
201 private:
202
203 Aws::String m_name;
204 bool m_nameHasBeenSet = false;
205
206 Aws::String m_arn;
207 bool m_arnHasBeenSet = false;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
212 Aws::String m_displayName;
213 bool m_displayNameHasBeenSet = false;
214
215 S3Location m_sourceS3Location;
216 bool m_sourceS3LocationHasBeenSet = false;
217
218 ScriptDetails m_setupScriptDetails;
219 bool m_setupScriptDetailsHasBeenSet = false;
220
221 Aws::Utils::DateTime m_createdTime;
222 bool m_createdTimeHasBeenSet = false;
223
224 ScriptDetails m_postSetupScriptDetails;
225 bool m_postSetupScriptDetailsHasBeenSet = false;
226
227 PackagingType m_packagingType;
228 bool m_packagingTypeHasBeenSet = false;
229
230 AppBlockState m_state;
231 bool m_stateHasBeenSet = false;
232
233 Aws::Vector<ErrorDetails> m_appBlockErrors;
234 bool m_appBlockErrorsHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace AppStream
239} // namespace Aws
void SetState(const AppBlockState &value)
Definition AppBlock.h:182
AppBlock & WithArn(Aws::String &&value)
Definition AppBlock.h:77
void SetState(AppBlockState &&value)
Definition AppBlock.h:183
void SetName(const Aws::String &value)
Definition AppBlock.h:59
AppBlock & WithDescription(const char *value)
Definition AppBlock.h:92
const PackagingType & GetPackagingType() const
Definition AppBlock.h:163
AWS_APPSTREAM_API AppBlock()
AppBlock & WithPostSetupScriptDetails(ScriptDetails &&value)
Definition AppBlock.h:156
void SetSetupScriptDetails(const ScriptDetails &value)
Definition AppBlock.h:128
AppBlock & WithName(Aws::String &&value)
Definition AppBlock.h:63
AppBlock & WithSetupScriptDetails(ScriptDetails &&value)
Definition AppBlock.h:131
void SetSourceS3Location(S3Location &&value)
Definition AppBlock.h:116
const Aws::Vector< ErrorDetails > & GetAppBlockErrors() const
Definition AppBlock.h:192
const Aws::String & GetDescription() const
Definition AppBlock.h:85
bool DescriptionHasBeenSet() const
Definition AppBlock.h:86
AppBlock & WithPostSetupScriptDetails(const ScriptDetails &value)
Definition AppBlock.h:155
AppBlock & WithDisplayName(const Aws::String &value)
Definition AppBlock.h:104
void SetSourceS3Location(const S3Location &value)
Definition AppBlock.h:115
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition AppBlock.h:141
void SetDisplayName(const Aws::String &value)
Definition AppBlock.h:101
void SetPackagingType(PackagingType &&value)
Definition AppBlock.h:166
const ScriptDetails & GetSetupScriptDetails() const
Definition AppBlock.h:126
AWS_APPSTREAM_API AppBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AppBlockErrorsHasBeenSet() const
Definition AppBlock.h:193
bool SourceS3LocationHasBeenSet() const
Definition AppBlock.h:114
void SetArn(const Aws::String &value)
Definition AppBlock.h:73
AppBlock & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition AppBlock.h:143
AppBlock & WithSetupScriptDetails(const ScriptDetails &value)
Definition AppBlock.h:130
AppBlock & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition AppBlock.h:142
void SetPackagingType(const PackagingType &value)
Definition AppBlock.h:165
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition AppBlock.h:140
AppBlock & AddAppBlockErrors(const ErrorDetails &value)
Definition AppBlock.h:198
const S3Location & GetSourceS3Location() const
Definition AppBlock.h:113
AppBlock & WithState(const AppBlockState &value)
Definition AppBlock.h:184
bool SetupScriptDetailsHasBeenSet() const
Definition AppBlock.h:127
void SetDescription(Aws::String &&value)
Definition AppBlock.h:88
const Aws::String & GetName() const
Definition AppBlock.h:57
AppBlock & AddAppBlockErrors(ErrorDetails &&value)
Definition AppBlock.h:199
void SetAppBlockErrors(Aws::Vector< ErrorDetails > &&value)
Definition AppBlock.h:195
AppBlock & WithDisplayName(const char *value)
Definition AppBlock.h:106
AppBlock & WithSourceS3Location(S3Location &&value)
Definition AppBlock.h:118
AWS_APPSTREAM_API AppBlock(Aws::Utils::Json::JsonView jsonValue)
const ScriptDetails & GetPostSetupScriptDetails() const
Definition AppBlock.h:151
AppBlock & WithDescription(Aws::String &&value)
Definition AppBlock.h:91
void SetArn(const char *value)
Definition AppBlock.h:75
bool PackagingTypeHasBeenSet() const
Definition AppBlock.h:164
const AppBlockState & GetState() const
Definition AppBlock.h:180
AppBlock & WithName(const char *value)
Definition AppBlock.h:64
void SetSetupScriptDetails(ScriptDetails &&value)
Definition AppBlock.h:129
void SetPostSetupScriptDetails(const ScriptDetails &value)
Definition AppBlock.h:153
bool PostSetupScriptDetailsHasBeenSet() const
Definition AppBlock.h:152
void SetArn(Aws::String &&value)
Definition AppBlock.h:74
void SetAppBlockErrors(const Aws::Vector< ErrorDetails > &value)
Definition AppBlock.h:194
AppBlock & WithSourceS3Location(const S3Location &value)
Definition AppBlock.h:117
void SetDescription(const Aws::String &value)
Definition AppBlock.h:87
AppBlock & WithPackagingType(PackagingType &&value)
Definition AppBlock.h:168
AppBlock & WithPackagingType(const PackagingType &value)
Definition AppBlock.h:167
AppBlock & WithState(AppBlockState &&value)
Definition AppBlock.h:185
void SetName(Aws::String &&value)
Definition AppBlock.h:60
AppBlock & WithName(const Aws::String &value)
Definition AppBlock.h:62
void SetName(const char *value)
Definition AppBlock.h:61
const Aws::String & GetArn() const
Definition AppBlock.h:71
AppBlock & WithAppBlockErrors(Aws::Vector< ErrorDetails > &&value)
Definition AppBlock.h:197
const Aws::Utils::DateTime & GetCreatedTime() const
Definition AppBlock.h:138
AppBlock & WithArn(const Aws::String &value)
Definition AppBlock.h:76
void SetPostSetupScriptDetails(ScriptDetails &&value)
Definition AppBlock.h:154
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AppBlock & WithDisplayName(Aws::String &&value)
Definition AppBlock.h:105
AppBlock & WithAppBlockErrors(const Aws::Vector< ErrorDetails > &value)
Definition AppBlock.h:196
AppBlock & WithDescription(const Aws::String &value)
Definition AppBlock.h:90
void SetDescription(const char *value)
Definition AppBlock.h:89
void SetDisplayName(Aws::String &&value)
Definition AppBlock.h:102
AppBlock & WithArn(const char *value)
Definition AppBlock.h:78
const Aws::String & GetDisplayName() const
Definition AppBlock.h:99
void SetDisplayName(const char *value)
Definition AppBlock.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue