AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
UpdateDeviceInstanceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devicefarm/DeviceFarmRequest.h>
10#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DeviceFarm {
16namespace Model {
17
21 public:
22 AWS_DEVICEFARM_API UpdateDeviceInstanceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateDeviceInstance"; }
29
30 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetArn() const { return m_arn; }
39 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
58 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
59 template <typename ProfileArnT = Aws::String>
60 void SetProfileArn(ProfileArnT&& value) {
61 m_profileArnHasBeenSet = true;
62 m_profileArn = std::forward<ProfileArnT>(value);
63 }
64 template <typename ProfileArnT = Aws::String>
66 SetProfileArn(std::forward<ProfileArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
76 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
77 template <typename LabelsT = Aws::Vector<Aws::String>>
78 void SetLabels(LabelsT&& value) {
79 m_labelsHasBeenSet = true;
80 m_labels = std::forward<LabelsT>(value);
81 }
82 template <typename LabelsT = Aws::Vector<Aws::String>>
84 SetLabels(std::forward<LabelsT>(value));
85 return *this;
86 }
87 template <typename LabelsT = Aws::String>
89 m_labelsHasBeenSet = true;
90 m_labels.emplace_back(std::forward<LabelsT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_arn;
96
97 Aws::String m_profileArn;
98
100 bool m_arnHasBeenSet = false;
101 bool m_profileArnHasBeenSet = false;
102 bool m_labelsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace DeviceFarm
107} // namespace Aws
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
UpdateDeviceInstanceRequest & WithArn(ArnT &&value)
AWS_DEVICEFARM_API UpdateDeviceInstanceRequest()=default
UpdateDeviceInstanceRequest & WithProfileArn(ProfileArnT &&value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDeviceInstanceRequest & AddLabels(LabelsT &&value)
const Aws::Vector< Aws::String > & GetLabels() const
UpdateDeviceInstanceRequest & WithLabels(LabelsT &&value)
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