1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace LookoutforVision
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_LOOKOUTFORVISION_API DetectAnomaliesRequest : public StreamingLookoutforVisionRequest
23   {
24   public:
25     DetectAnomaliesRequest();
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.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "DetectAnomalies"; }
32 
33 
34     /**
35      * <p>The name of the project that contains the model version that you want to
36      * use.</p>
37      */
GetProjectName()38     inline const Aws::String& GetProjectName() const{ return m_projectName; }
39 
40     /**
41      * <p>The name of the project that contains the model version that you want to
42      * use.</p>
43      */
ProjectNameHasBeenSet()44     inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
45 
46     /**
47      * <p>The name of the project that contains the model version that you want to
48      * use.</p>
49      */
SetProjectName(const Aws::String & value)50     inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
51 
52     /**
53      * <p>The name of the project that contains the model version that you want to
54      * use.</p>
55      */
SetProjectName(Aws::String && value)56     inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
57 
58     /**
59      * <p>The name of the project that contains the model version that you want to
60      * use.</p>
61      */
SetProjectName(const char * value)62     inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
63 
64     /**
65      * <p>The name of the project that contains the model version that you want to
66      * use.</p>
67      */
WithProjectName(const Aws::String & value)68     inline DetectAnomaliesRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
69 
70     /**
71      * <p>The name of the project that contains the model version that you want to
72      * use.</p>
73      */
WithProjectName(Aws::String && value)74     inline DetectAnomaliesRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
75 
76     /**
77      * <p>The name of the project that contains the model version that you want to
78      * use.</p>
79      */
WithProjectName(const char * value)80     inline DetectAnomaliesRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
81 
82 
83     /**
84      * <p>The version of the model that you want to use.</p>
85      */
GetModelVersion()86     inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
87 
88     /**
89      * <p>The version of the model that you want to use.</p>
90      */
ModelVersionHasBeenSet()91     inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
92 
93     /**
94      * <p>The version of the model that you want to use.</p>
95      */
SetModelVersion(const Aws::String & value)96     inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; }
97 
98     /**
99      * <p>The version of the model that you want to use.</p>
100      */
SetModelVersion(Aws::String && value)101     inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); }
102 
103     /**
104      * <p>The version of the model that you want to use.</p>
105      */
SetModelVersion(const char * value)106     inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); }
107 
108     /**
109      * <p>The version of the model that you want to use.</p>
110      */
WithModelVersion(const Aws::String & value)111     inline DetectAnomaliesRequest& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
112 
113     /**
114      * <p>The version of the model that you want to use.</p>
115      */
WithModelVersion(Aws::String && value)116     inline DetectAnomaliesRequest& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
117 
118     /**
119      * <p>The version of the model that you want to use.</p>
120      */
WithModelVersion(const char * value)121     inline DetectAnomaliesRequest& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
122 
123   private:
124 
125     Aws::String m_projectName;
126     bool m_projectNameHasBeenSet;
127 
128     Aws::String m_modelVersion;
129     bool m_modelVersionHasBeenSet;
130 
131   };
132 
133 } // namespace Model
134 } // namespace LookoutforVision
135 } // namespace Aws
136