AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
45 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
46 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
47 inline StartModelRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
48 inline StartModelRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
49 inline StartModelRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
51
53
56 inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
57 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
58 inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; }
59 inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); }
60 inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); }
61 inline StartModelRequest& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
62 inline StartModelRequest& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
63 inline StartModelRequest& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
65
67
73 inline int GetMinInferenceUnits() const{ return m_minInferenceUnits; }
74 inline bool MinInferenceUnitsHasBeenSet() const { return m_minInferenceUnitsHasBeenSet; }
75 inline void SetMinInferenceUnits(int value) { m_minInferenceUnitsHasBeenSet = true; m_minInferenceUnits = value; }
76 inline StartModelRequest& WithMinInferenceUnits(int value) { SetMinInferenceUnits(value); return *this;}
78
80
94 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
95 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
96 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
97 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
98 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
99 inline StartModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
100 inline StartModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
101 inline StartModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
103
105
110 inline int GetMaxInferenceUnits() const{ return m_maxInferenceUnits; }
111 inline bool MaxInferenceUnitsHasBeenSet() const { return m_maxInferenceUnitsHasBeenSet; }
112 inline void SetMaxInferenceUnits(int value) { m_maxInferenceUnitsHasBeenSet = true; m_maxInferenceUnits = value; }
113 inline StartModelRequest& WithMaxInferenceUnits(int value) { SetMaxInferenceUnits(value); return *this;}
115 private:
116
117 Aws::String m_projectName;
118 bool m_projectNameHasBeenSet = false;
119
120 Aws::String m_modelVersion;
121 bool m_modelVersionHasBeenSet = false;
122
123 int m_minInferenceUnits;
124 bool m_minInferenceUnitsHasBeenSet = false;
125
126 Aws::String m_clientToken;
127 bool m_clientTokenHasBeenSet = false;
128
129 int m_maxInferenceUnits;
130 bool m_maxInferenceUnitsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace LookoutforVision
135} // namespace Aws
AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartModelRequest & WithProjectName(Aws::String &&value)
StartModelRequest & WithModelVersion(Aws::String &&value)
StartModelRequest & WithMinInferenceUnits(int value)
StartModelRequest & WithModelVersion(const Aws::String &value)
AWS_LOOKOUTFORVISION_API StartModelRequest()
StartModelRequest & WithClientToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
StartModelRequest & WithModelVersion(const char *value)
StartModelRequest & WithClientToken(const char *value)
StartModelRequest & WithProjectName(const Aws::String &value)
StartModelRequest & WithProjectName(const char *value)
StartModelRequest & WithClientToken(const Aws::String &value)
StartModelRequest & WithMaxInferenceUnits(int value)
AWS_LOOKOUTFORVISION_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String