AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateInstanceProfileRequest.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/DeviceFarmRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DeviceFarm
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DEVICEFARM_API UpdateInstanceProfileRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateInstanceProfile"; }
32
33 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetArn() const{ return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
45 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
46 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
47 inline UpdateInstanceProfileRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
48 inline UpdateInstanceProfileRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
49 inline UpdateInstanceProfileRequest& WithArn(const char* value) { SetArn(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline UpdateInstanceProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline UpdateInstanceProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline UpdateInstanceProfileRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline UpdateInstanceProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline UpdateInstanceProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline UpdateInstanceProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
85 inline bool GetPackageCleanup() const{ return m_packageCleanup; }
86 inline bool PackageCleanupHasBeenSet() const { return m_packageCleanupHasBeenSet; }
87 inline void SetPackageCleanup(bool value) { m_packageCleanupHasBeenSet = true; m_packageCleanup = value; }
88 inline UpdateInstanceProfileRequest& WithPackageCleanup(bool value) { SetPackageCleanup(value); return *this;}
90
92
98 inline const Aws::Vector<Aws::String>& GetExcludeAppPackagesFromCleanup() const{ return m_excludeAppPackagesFromCleanup; }
99 inline bool ExcludeAppPackagesFromCleanupHasBeenSet() const { return m_excludeAppPackagesFromCleanupHasBeenSet; }
100 inline void SetExcludeAppPackagesFromCleanup(const Aws::Vector<Aws::String>& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = value; }
101 inline void SetExcludeAppPackagesFromCleanup(Aws::Vector<Aws::String>&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = std::move(value); }
104 inline UpdateInstanceProfileRequest& AddExcludeAppPackagesFromCleanup(const Aws::String& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; }
105 inline UpdateInstanceProfileRequest& AddExcludeAppPackagesFromCleanup(Aws::String&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(std::move(value)); return *this; }
106 inline UpdateInstanceProfileRequest& AddExcludeAppPackagesFromCleanup(const char* value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; }
108
110
114 inline bool GetRebootAfterUse() const{ return m_rebootAfterUse; }
115 inline bool RebootAfterUseHasBeenSet() const { return m_rebootAfterUseHasBeenSet; }
116 inline void SetRebootAfterUse(bool value) { m_rebootAfterUseHasBeenSet = true; m_rebootAfterUse = value; }
117 inline UpdateInstanceProfileRequest& WithRebootAfterUse(bool value) { SetRebootAfterUse(value); return *this;}
119 private:
120
121 Aws::String m_arn;
122 bool m_arnHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 bool m_packageCleanup;
131 bool m_packageCleanupHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_excludeAppPackagesFromCleanup;
134 bool m_excludeAppPackagesFromCleanupHasBeenSet = false;
135
136 bool m_rebootAfterUse;
137 bool m_rebootAfterUseHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace DeviceFarm
142} // namespace Aws
UpdateInstanceProfileRequest & WithRebootAfterUse(bool value)
UpdateInstanceProfileRequest & WithDescription(const char *value)
UpdateInstanceProfileRequest & AddExcludeAppPackagesFromCleanup(const char *value)
UpdateInstanceProfileRequest & WithDescription(Aws::String &&value)
UpdateInstanceProfileRequest & WithPackageCleanup(bool value)
void SetExcludeAppPackagesFromCleanup(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetExcludeAppPackagesFromCleanup() const
UpdateInstanceProfileRequest & AddExcludeAppPackagesFromCleanup(Aws::String &&value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
UpdateInstanceProfileRequest & WithArn(const Aws::String &value)
UpdateInstanceProfileRequest & WithExcludeAppPackagesFromCleanup(Aws::Vector< Aws::String > &&value)
UpdateInstanceProfileRequest & WithExcludeAppPackagesFromCleanup(const Aws::Vector< Aws::String > &value)
UpdateInstanceProfileRequest & WithName(const Aws::String &value)
UpdateInstanceProfileRequest & WithArn(const char *value)
UpdateInstanceProfileRequest & WithArn(Aws::String &&value)
void SetExcludeAppPackagesFromCleanup(Aws::Vector< Aws::String > &&value)
UpdateInstanceProfileRequest & AddExcludeAppPackagesFromCleanup(const Aws::String &value)
UpdateInstanceProfileRequest & WithName(const char *value)
UpdateInstanceProfileRequest & WithDescription(const Aws::String &value)
UpdateInstanceProfileRequest & WithName(Aws::String &&value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector