AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateDeviceFleetRequest.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/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/EdgeOutputConfig.h>
12#include <aws/sagemaker/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API CreateDeviceFleetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateDeviceFleet"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetDeviceFleetName() const { return m_deviceFleetName; }
41 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
42 template <typename DeviceFleetNameT = Aws::String>
43 void SetDeviceFleetName(DeviceFleetNameT&& value) {
44 m_deviceFleetNameHasBeenSet = true;
45 m_deviceFleetName = std::forward<DeviceFleetNameT>(value);
46 }
47 template <typename DeviceFleetNameT = Aws::String>
48 CreateDeviceFleetRequest& WithDeviceFleetName(DeviceFleetNameT&& value) {
49 SetDeviceFleetName(std::forward<DeviceFleetNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
60 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
61 template <typename RoleArnT = Aws::String>
62 void SetRoleArn(RoleArnT&& value) {
63 m_roleArnHasBeenSet = true;
64 m_roleArn = std::forward<RoleArnT>(value);
65 }
66 template <typename RoleArnT = Aws::String>
68 SetRoleArn(std::forward<RoleArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const EdgeOutputConfig& GetOutputConfig() const { return m_outputConfig; }
96 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
97 template <typename OutputConfigT = EdgeOutputConfig>
98 void SetOutputConfig(OutputConfigT&& value) {
99 m_outputConfigHasBeenSet = true;
100 m_outputConfig = std::forward<OutputConfigT>(value);
101 }
102 template <typename OutputConfigT = EdgeOutputConfig>
104 SetOutputConfig(std::forward<OutputConfigT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template <typename TagsT = Aws::Vector<Tag>>
116 void SetTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags = std::forward<TagsT>(value);
119 }
120 template <typename TagsT = Aws::Vector<Tag>>
122 SetTags(std::forward<TagsT>(value));
123 return *this;
124 }
125 template <typename TagsT = Tag>
127 m_tagsHasBeenSet = true;
128 m_tags.emplace_back(std::forward<TagsT>(value));
129 return *this;
130 }
132
134
141 inline bool GetEnableIotRoleAlias() const { return m_enableIotRoleAlias; }
142 inline bool EnableIotRoleAliasHasBeenSet() const { return m_enableIotRoleAliasHasBeenSet; }
143 inline void SetEnableIotRoleAlias(bool value) {
144 m_enableIotRoleAliasHasBeenSet = true;
145 m_enableIotRoleAlias = value;
146 }
149 return *this;
150 }
152 private:
153 Aws::String m_deviceFleetName;
154
155 Aws::String m_roleArn;
156
157 Aws::String m_description;
158
159 EdgeOutputConfig m_outputConfig;
160
161 Aws::Vector<Tag> m_tags;
162
163 bool m_enableIotRoleAlias{false};
164 bool m_deviceFleetNameHasBeenSet = false;
165 bool m_roleArnHasBeenSet = false;
166 bool m_descriptionHasBeenSet = false;
167 bool m_outputConfigHasBeenSet = false;
168 bool m_tagsHasBeenSet = false;
169 bool m_enableIotRoleAliasHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SageMaker
174} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateDeviceFleetRequest & WithEnableIotRoleAlias(bool value)
CreateDeviceFleetRequest & WithDeviceFleetName(DeviceFleetNameT &&value)
CreateDeviceFleetRequest & WithRoleArn(RoleArnT &&value)
CreateDeviceFleetRequest & WithOutputConfig(OutputConfigT &&value)
CreateDeviceFleetRequest & AddTags(TagsT &&value)
AWS_SAGEMAKER_API CreateDeviceFleetRequest()=default
CreateDeviceFleetRequest & WithDescription(DescriptionT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateDeviceFleetRequest & WithTags(TagsT &&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