AWS SDK for C++  1.9.154
AWS SDK for C++
InstanceProfile.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DeviceFarm
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetArn() const{ return m_arn; }
45 
49  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 
54  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 
59  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
60 
64  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 
69  inline InstanceProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 
74  inline InstanceProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
75 
79  inline InstanceProfile& WithArn(const char* value) { SetArn(value); return *this;}
80 
81 
86  inline bool GetPackageCleanup() const{ return m_packageCleanup; }
87 
92  inline bool PackageCleanupHasBeenSet() const { return m_packageCleanupHasBeenSet; }
93 
98  inline void SetPackageCleanup(bool value) { m_packageCleanupHasBeenSet = true; m_packageCleanup = value; }
99 
104  inline InstanceProfile& WithPackageCleanup(bool value) { SetPackageCleanup(value); return *this;}
105 
106 
113  inline const Aws::Vector<Aws::String>& GetExcludeAppPackagesFromCleanup() const{ return m_excludeAppPackagesFromCleanup; }
114 
121  inline bool ExcludeAppPackagesFromCleanupHasBeenSet() const { return m_excludeAppPackagesFromCleanupHasBeenSet; }
122 
129  inline void SetExcludeAppPackagesFromCleanup(const Aws::Vector<Aws::String>& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = value; }
130 
137  inline void SetExcludeAppPackagesFromCleanup(Aws::Vector<Aws::String>&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = std::move(value); }
138 
145  inline InstanceProfile& WithExcludeAppPackagesFromCleanup(const Aws::Vector<Aws::String>& value) { SetExcludeAppPackagesFromCleanup(value); return *this;}
146 
153  inline InstanceProfile& WithExcludeAppPackagesFromCleanup(Aws::Vector<Aws::String>&& value) { SetExcludeAppPackagesFromCleanup(std::move(value)); return *this;}
154 
161  inline InstanceProfile& AddExcludeAppPackagesFromCleanup(const Aws::String& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; }
162 
169  inline InstanceProfile& AddExcludeAppPackagesFromCleanup(Aws::String&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(std::move(value)); return *this; }
170 
177  inline InstanceProfile& AddExcludeAppPackagesFromCleanup(const char* value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; }
178 
179 
184  inline bool GetRebootAfterUse() const{ return m_rebootAfterUse; }
185 
190  inline bool RebootAfterUseHasBeenSet() const { return m_rebootAfterUseHasBeenSet; }
191 
196  inline void SetRebootAfterUse(bool value) { m_rebootAfterUseHasBeenSet = true; m_rebootAfterUse = value; }
197 
202  inline InstanceProfile& WithRebootAfterUse(bool value) { SetRebootAfterUse(value); return *this;}
203 
204 
208  inline const Aws::String& GetName() const{ return m_name; }
209 
213  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
214 
218  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
219 
223  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
224 
228  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
229 
233  inline InstanceProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
234 
238  inline InstanceProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
239 
243  inline InstanceProfile& WithName(const char* value) { SetName(value); return *this;}
244 
245 
249  inline const Aws::String& GetDescription() const{ return m_description; }
250 
254  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
255 
259  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
260 
264  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
265 
269  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
270 
274  inline InstanceProfile& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
275 
279  inline InstanceProfile& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
280 
284  inline InstanceProfile& WithDescription(const char* value) { SetDescription(value); return *this;}
285 
286  private:
287 
288  Aws::String m_arn;
289  bool m_arnHasBeenSet;
290 
291  bool m_packageCleanup;
292  bool m_packageCleanupHasBeenSet;
293 
294  Aws::Vector<Aws::String> m_excludeAppPackagesFromCleanup;
295  bool m_excludeAppPackagesFromCleanupHasBeenSet;
296 
297  bool m_rebootAfterUse;
298  bool m_rebootAfterUseHasBeenSet;
299 
300  Aws::String m_name;
301  bool m_nameHasBeenSet;
302 
303  Aws::String m_description;
304  bool m_descriptionHasBeenSet;
305  };
306 
307 } // namespace Model
308 } // namespace DeviceFarm
309 } // namespace Aws
Aws::DeviceFarm::Model::InstanceProfile::PackageCleanupHasBeenSet
bool PackageCleanupHasBeenSet() const
Definition: InstanceProfile.h:92
Aws::DeviceFarm::Model::InstanceProfile::GetRebootAfterUse
bool GetRebootAfterUse() const
Definition: InstanceProfile.h:184
Aws::DeviceFarm::Model::InstanceProfile::InstanceProfile
InstanceProfile(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::InstanceProfile::RebootAfterUseHasBeenSet
bool RebootAfterUseHasBeenSet() const
Definition: InstanceProfile.h:190
Aws::DeviceFarm::Model::InstanceProfile::AddExcludeAppPackagesFromCleanup
InstanceProfile & AddExcludeAppPackagesFromCleanup(const char *value)
Definition: InstanceProfile.h:177
Aws::DeviceFarm::Model::InstanceProfile::SetArn
void SetArn(const char *value)
Definition: InstanceProfile.h:64
Aws::DeviceFarm::Model::InstanceProfile::WithDescription
InstanceProfile & WithDescription(const char *value)
Definition: InstanceProfile.h:284
Aws::DeviceFarm::Model::InstanceProfile::WithExcludeAppPackagesFromCleanup
InstanceProfile & WithExcludeAppPackagesFromCleanup(Aws::Vector< Aws::String > &&value)
Definition: InstanceProfile.h:153
Aws::DeviceFarm::Model::InstanceProfile::GetPackageCleanup
bool GetPackageCleanup() const
Definition: InstanceProfile.h:86
Aws::DeviceFarm::Model::InstanceProfile::operator=
InstanceProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::InstanceProfile::GetDescription
const Aws::String & GetDescription() const
Definition: InstanceProfile.h:249
Aws::DeviceFarm::Model::InstanceProfile
Definition: InstanceProfile.h:33
Aws::DeviceFarm::Model::InstanceProfile::AddExcludeAppPackagesFromCleanup
InstanceProfile & AddExcludeAppPackagesFromCleanup(Aws::String &&value)
Definition: InstanceProfile.h:169
Aws::DeviceFarm::Model::InstanceProfile::SetArn
void SetArn(Aws::String &&value)
Definition: InstanceProfile.h:59
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DeviceFarm::Model::InstanceProfile::WithRebootAfterUse
InstanceProfile & WithRebootAfterUse(bool value)
Definition: InstanceProfile.h:202
AWSVector.h
Aws::DeviceFarm::Model::InstanceProfile::SetPackageCleanup
void SetPackageCleanup(bool value)
Definition: InstanceProfile.h:98
Aws::DeviceFarm::Model::InstanceProfile::WithPackageCleanup
InstanceProfile & WithPackageCleanup(bool value)
Definition: InstanceProfile.h:104
Aws::DeviceFarm::Model::InstanceProfile::WithDescription
InstanceProfile & WithDescription(const Aws::String &value)
Definition: InstanceProfile.h:274
Aws::DeviceFarm::Model::InstanceProfile::SetExcludeAppPackagesFromCleanup
void SetExcludeAppPackagesFromCleanup(const Aws::Vector< Aws::String > &value)
Definition: InstanceProfile.h:129
Aws::DeviceFarm::Model::InstanceProfile::WithName
InstanceProfile & WithName(const char *value)
Definition: InstanceProfile.h:243
Aws::DeviceFarm::Model::InstanceProfile::GetArn
const Aws::String & GetArn() const
Definition: InstanceProfile.h:44
Aws::DeviceFarm::Model::InstanceProfile::SetRebootAfterUse
void SetRebootAfterUse(bool value)
Definition: InstanceProfile.h:196
Aws::DeviceFarm::Model::InstanceProfile::WithArn
InstanceProfile & WithArn(const Aws::String &value)
Definition: InstanceProfile.h:69
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::InstanceProfile::WithName
InstanceProfile & WithName(const Aws::String &value)
Definition: InstanceProfile.h:233
Aws::DeviceFarm::Model::InstanceProfile::WithDescription
InstanceProfile & WithDescription(Aws::String &&value)
Definition: InstanceProfile.h:279
Aws::DeviceFarm::Model::InstanceProfile::GetName
const Aws::String & GetName() const
Definition: InstanceProfile.h:208
Aws::DeviceFarm::Model::InstanceProfile::AddExcludeAppPackagesFromCleanup
InstanceProfile & AddExcludeAppPackagesFromCleanup(const Aws::String &value)
Definition: InstanceProfile.h:161
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::DeviceFarm::Model::InstanceProfile::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::InstanceProfile::SetExcludeAppPackagesFromCleanup
void SetExcludeAppPackagesFromCleanup(Aws::Vector< Aws::String > &&value)
Definition: InstanceProfile.h:137
Aws::DeviceFarm::Model::InstanceProfile::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: InstanceProfile.h:49
Aws::DeviceFarm::Model::InstanceProfile::SetDescription
void SetDescription(const Aws::String &value)
Definition: InstanceProfile.h:259
Aws::DeviceFarm::Model::InstanceProfile::WithArn
InstanceProfile & WithArn(const char *value)
Definition: InstanceProfile.h:79
Aws::DeviceFarm::Model::InstanceProfile::SetName
void SetName(const char *value)
Definition: InstanceProfile.h:228
Aws::DeviceFarm::Model::InstanceProfile::SetArn
void SetArn(const Aws::String &value)
Definition: InstanceProfile.h:54
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::InstanceProfile::SetName
void SetName(const Aws::String &value)
Definition: InstanceProfile.h:218
Aws::DeviceFarm::Model::InstanceProfile::GetExcludeAppPackagesFromCleanup
const Aws::Vector< Aws::String > & GetExcludeAppPackagesFromCleanup() const
Definition: InstanceProfile.h:113
Aws::DeviceFarm::Model::InstanceProfile::SetDescription
void SetDescription(Aws::String &&value)
Definition: InstanceProfile.h:264
Aws::DeviceFarm::Model::InstanceProfile::WithExcludeAppPackagesFromCleanup
InstanceProfile & WithExcludeAppPackagesFromCleanup(const Aws::Vector< Aws::String > &value)
Definition: InstanceProfile.h:145
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::InstanceProfile::WithName
InstanceProfile & WithName(Aws::String &&value)
Definition: InstanceProfile.h:238
Aws::DeviceFarm::Model::InstanceProfile::SetName
void SetName(Aws::String &&value)
Definition: InstanceProfile.h:223
Aws::DeviceFarm::Model::InstanceProfile::InstanceProfile
InstanceProfile()
Aws::DeviceFarm::Model::InstanceProfile::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: InstanceProfile.h:254
Aws::DeviceFarm::Model::InstanceProfile::NameHasBeenSet
bool NameHasBeenSet() const
Definition: InstanceProfile.h:213
Aws::DeviceFarm::Model::InstanceProfile::SetDescription
void SetDescription(const char *value)
Definition: InstanceProfile.h:269
Aws::DeviceFarm::Model::InstanceProfile::ExcludeAppPackagesFromCleanupHasBeenSet
bool ExcludeAppPackagesFromCleanupHasBeenSet() const
Definition: InstanceProfile.h:121
Aws::DeviceFarm::Model::InstanceProfile::WithArn
InstanceProfile & WithArn(Aws::String &&value)
Definition: InstanceProfile.h:74