AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateModelRequest.h
1
6#pragma once
7#include <aws/lookoutvision/LookoutforVision_EXPORTS.h>
8#include <aws/lookoutvision/LookoutforVisionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutvision/model/OutputConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lookoutvision/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace LookoutforVision
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LOOKOUTFORVISION_API CreateModelRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
35
36 AWS_LOOKOUTFORVISION_API Aws::String SerializePayload() const override;
37
38 AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetProjectName() const { return m_projectName; }
46 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
47 template<typename ProjectNameT = Aws::String>
48 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
49 template<typename ProjectNameT = Aws::String>
50 CreateModelRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateModelRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
80 inline const Aws::String& GetClientToken() const { return m_clientToken; }
81 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
82 template<typename ClientTokenT = Aws::String>
83 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
84 template<typename ClientTokenT = Aws::String>
85 CreateModelRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
87
89
92 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
93 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
94 template<typename OutputConfigT = OutputConfig>
95 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
96 template<typename OutputConfigT = OutputConfig>
97 CreateModelRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
99
101
107 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
108 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
109 template<typename KmsKeyIdT = Aws::String>
110 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
111 template<typename KmsKeyIdT = Aws::String>
112 CreateModelRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
114
116
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template<typename TagsT = Aws::Vector<Tag>>
122 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
123 template<typename TagsT = Aws::Vector<Tag>>
124 CreateModelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
125 template<typename TagsT = Tag>
126 CreateModelRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
128 private:
129
130 Aws::String m_projectName;
131 bool m_projectNameHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
137 bool m_clientTokenHasBeenSet = true;
138
139 OutputConfig m_outputConfig;
140 bool m_outputConfigHasBeenSet = false;
141
142 Aws::String m_kmsKeyId;
143 bool m_kmsKeyIdHasBeenSet = false;
144
145 Aws::Vector<Tag> m_tags;
146 bool m_tagsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace LookoutforVision
151} // namespace Aws
CreateModelRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_LOOKOUTFORVISION_API CreateModelRequest()=default
CreateModelRequest & WithClientToken(ClientTokenT &&value)
CreateModelRequest & WithProjectName(ProjectNameT &&value)
CreateModelRequest & WithTags(TagsT &&value)
CreateModelRequest & WithDescription(DescriptionT &&value)
CreateModelRequest & WithOutputConfig(OutputConfigT &&value)
CreateModelRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LOOKOUTFORVISION_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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