AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceProfile.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DeviceFarm
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DEVICEFARM_API InstanceProfile();
36 AWS_DEVICEFARM_API InstanceProfile(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetArn() const{ return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
48 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
49 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
50 inline InstanceProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;}
51 inline InstanceProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
52 inline InstanceProfile& WithArn(const char* value) { SetArn(value); return *this;}
54
56
60 inline bool GetPackageCleanup() const{ return m_packageCleanup; }
61 inline bool PackageCleanupHasBeenSet() const { return m_packageCleanupHasBeenSet; }
62 inline void SetPackageCleanup(bool value) { m_packageCleanupHasBeenSet = true; m_packageCleanup = value; }
63 inline InstanceProfile& WithPackageCleanup(bool value) { SetPackageCleanup(value); return *this;}
65
67
73 inline const Aws::Vector<Aws::String>& GetExcludeAppPackagesFromCleanup() const{ return m_excludeAppPackagesFromCleanup; }
74 inline bool ExcludeAppPackagesFromCleanupHasBeenSet() const { return m_excludeAppPackagesFromCleanupHasBeenSet; }
75 inline void SetExcludeAppPackagesFromCleanup(const Aws::Vector<Aws::String>& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = value; }
76 inline void SetExcludeAppPackagesFromCleanup(Aws::Vector<Aws::String>&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = std::move(value); }
79 inline InstanceProfile& AddExcludeAppPackagesFromCleanup(const Aws::String& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; }
80 inline InstanceProfile& AddExcludeAppPackagesFromCleanup(Aws::String&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(std::move(value)); return *this; }
81 inline InstanceProfile& AddExcludeAppPackagesFromCleanup(const char* value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; }
83
85
89 inline bool GetRebootAfterUse() const{ return m_rebootAfterUse; }
90 inline bool RebootAfterUseHasBeenSet() const { return m_rebootAfterUseHasBeenSet; }
91 inline void SetRebootAfterUse(bool value) { m_rebootAfterUseHasBeenSet = true; m_rebootAfterUse = value; }
92 inline InstanceProfile& WithRebootAfterUse(bool value) { SetRebootAfterUse(value); return *this;}
94
96
99 inline const Aws::String& GetName() const{ return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
102 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 inline InstanceProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
105 inline InstanceProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
106 inline InstanceProfile& WithName(const char* value) { SetName(value); return *this;}
108
110
113 inline const Aws::String& GetDescription() const{ return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
116 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
117 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
118 inline InstanceProfile& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
119 inline InstanceProfile& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
120 inline InstanceProfile& WithDescription(const char* value) { SetDescription(value); return *this;}
122 private:
123
124 Aws::String m_arn;
125 bool m_arnHasBeenSet = false;
126
127 bool m_packageCleanup;
128 bool m_packageCleanupHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_excludeAppPackagesFromCleanup;
131 bool m_excludeAppPackagesFromCleanupHasBeenSet = false;
132
133 bool m_rebootAfterUse;
134 bool m_rebootAfterUseHasBeenSet = false;
135
136 Aws::String m_name;
137 bool m_nameHasBeenSet = false;
138
139 Aws::String m_description;
140 bool m_descriptionHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace DeviceFarm
145} // namespace Aws
void SetExcludeAppPackagesFromCleanup(Aws::Vector< Aws::String > &&value)
InstanceProfile & WithPackageCleanup(bool value)
InstanceProfile & WithDescription(Aws::String &&value)
InstanceProfile & WithExcludeAppPackagesFromCleanup(Aws::Vector< Aws::String > &&value)
InstanceProfile & AddExcludeAppPackagesFromCleanup(Aws::String &&value)
InstanceProfile & WithDescription(const Aws::String &value)
AWS_DEVICEFARM_API InstanceProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceProfile & WithArn(const char *value)
void SetDescription(const Aws::String &value)
InstanceProfile & WithRebootAfterUse(bool value)
const Aws::Vector< Aws::String > & GetExcludeAppPackagesFromCleanup() const
void SetName(const Aws::String &value)
void SetExcludeAppPackagesFromCleanup(const Aws::Vector< Aws::String > &value)
void SetArn(const Aws::String &value)
InstanceProfile & AddExcludeAppPackagesFromCleanup(const Aws::String &value)
InstanceProfile & WithName(const char *value)
InstanceProfile & WithName(Aws::String &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceProfile & AddExcludeAppPackagesFromCleanup(const char *value)
InstanceProfile & WithDescription(const char *value)
const Aws::String & GetName() const
InstanceProfile & WithName(const Aws::String &value)
void SetDescription(Aws::String &&value)
const Aws::String & GetDescription() const
AWS_DEVICEFARM_API InstanceProfile(Aws::Utils::Json::JsonView jsonValue)
InstanceProfile & WithArn(Aws::String &&value)
InstanceProfile & WithExcludeAppPackagesFromCleanup(const Aws::Vector< Aws::String > &value)
const Aws::String & GetArn() const
InstanceProfile & WithArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue