AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDeviceFleetRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/EdgeOutputConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API CreateDeviceFleetRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateDeviceFleet"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDeviceFleetName() const { return m_deviceFleetName; }
45 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
46 template<typename DeviceFleetNameT = Aws::String>
47 void SetDeviceFleetName(DeviceFleetNameT&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::forward<DeviceFleetNameT>(value); }
48 template<typename DeviceFleetNameT = Aws::String>
49 CreateDeviceFleetRequest& WithDeviceFleetName(DeviceFleetNameT&& value) { SetDeviceFleetName(std::forward<DeviceFleetNameT>(value)); return *this;}
51
53
57 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
58 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
59 template<typename RoleArnT = Aws::String>
60 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
61 template<typename RoleArnT = Aws::String>
62 CreateDeviceFleetRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 CreateDeviceFleetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
81 inline const EdgeOutputConfig& GetOutputConfig() const { return m_outputConfig; }
82 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
83 template<typename OutputConfigT = EdgeOutputConfig>
84 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
85 template<typename OutputConfigT = EdgeOutputConfig>
86 CreateDeviceFleetRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
88
90
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template<typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
97 template<typename TagsT = Aws::Vector<Tag>>
98 CreateDeviceFleetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
99 template<typename TagsT = Tag>
100 CreateDeviceFleetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
102
104
111 inline bool GetEnableIotRoleAlias() const { return m_enableIotRoleAlias; }
112 inline bool EnableIotRoleAliasHasBeenSet() const { return m_enableIotRoleAliasHasBeenSet; }
113 inline void SetEnableIotRoleAlias(bool value) { m_enableIotRoleAliasHasBeenSet = true; m_enableIotRoleAlias = value; }
114 inline CreateDeviceFleetRequest& WithEnableIotRoleAlias(bool value) { SetEnableIotRoleAlias(value); return *this;}
116 private:
117
118 Aws::String m_deviceFleetName;
119 bool m_deviceFleetNameHasBeenSet = false;
120
121 Aws::String m_roleArn;
122 bool m_roleArnHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 EdgeOutputConfig m_outputConfig;
128 bool m_outputConfigHasBeenSet = false;
129
130 Aws::Vector<Tag> m_tags;
131 bool m_tagsHasBeenSet = false;
132
133 bool m_enableIotRoleAlias{false};
134 bool m_enableIotRoleAliasHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace SageMaker
139} // 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