AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartModelRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace LookoutforVision
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LOOKOUTFORVISION_API StartModelRequest() = default;
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 "StartModel"; }
32
33 AWS_LOOKOUTFORVISION_API Aws::String SerializePayload() const override;
34
35 AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetProjectName() const { return m_projectName; }
43 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
44 template<typename ProjectNameT = Aws::String>
45 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
46 template<typename ProjectNameT = Aws::String>
47 StartModelRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
55 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
56 template<typename ModelVersionT = Aws::String>
57 void SetModelVersion(ModelVersionT&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::forward<ModelVersionT>(value); }
58 template<typename ModelVersionT = Aws::String>
59 StartModelRequest& WithModelVersion(ModelVersionT&& value) { SetModelVersion(std::forward<ModelVersionT>(value)); return *this;}
61
63
69 inline int GetMinInferenceUnits() const { return m_minInferenceUnits; }
70 inline bool MinInferenceUnitsHasBeenSet() const { return m_minInferenceUnitsHasBeenSet; }
71 inline void SetMinInferenceUnits(int value) { m_minInferenceUnitsHasBeenSet = true; m_minInferenceUnits = value; }
72 inline StartModelRequest& WithMinInferenceUnits(int value) { SetMinInferenceUnits(value); return *this;}
74
76
90 inline const Aws::String& GetClientToken() const { return m_clientToken; }
91 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
92 template<typename ClientTokenT = Aws::String>
93 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
94 template<typename ClientTokenT = Aws::String>
95 StartModelRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
97
99
104 inline int GetMaxInferenceUnits() const { return m_maxInferenceUnits; }
105 inline bool MaxInferenceUnitsHasBeenSet() const { return m_maxInferenceUnitsHasBeenSet; }
106 inline void SetMaxInferenceUnits(int value) { m_maxInferenceUnitsHasBeenSet = true; m_maxInferenceUnits = value; }
107 inline StartModelRequest& WithMaxInferenceUnits(int value) { SetMaxInferenceUnits(value); return *this;}
109 private:
110
111 Aws::String m_projectName;
112 bool m_projectNameHasBeenSet = false;
113
114 Aws::String m_modelVersion;
115 bool m_modelVersionHasBeenSet = false;
116
117 int m_minInferenceUnits{0};
118 bool m_minInferenceUnitsHasBeenSet = false;
119
121 bool m_clientTokenHasBeenSet = true;
122
123 int m_maxInferenceUnits{0};
124 bool m_maxInferenceUnitsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace LookoutforVision
129} // namespace Aws
AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartModelRequest & WithMinInferenceUnits(int value)
StartModelRequest & WithModelVersion(ModelVersionT &&value)
virtual const char * GetServiceRequestName() const override
StartModelRequest & WithClientToken(ClientTokenT &&value)
StartModelRequest & WithProjectName(ProjectNameT &&value)
AWS_LOOKOUTFORVISION_API StartModelRequest()=default
StartModelRequest & WithMaxInferenceUnits(int value)
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