AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDetectorModelRequest.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/iotevents/IoTEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotevents/model/DetectorModelDefinition.h>
11#include <aws/iotevents/model/EvaluationMethod.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTEvents
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTEVENTS_API UpdateDetectorModelRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateDetectorModel"; }
33
34 AWS_IOTEVENTS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
42 inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
43 inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
44 inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
45 inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
47 inline UpdateDetectorModelRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
48 inline UpdateDetectorModelRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
50
52
55 inline const DetectorModelDefinition& GetDetectorModelDefinition() const{ return m_detectorModelDefinition; }
56 inline bool DetectorModelDefinitionHasBeenSet() const { return m_detectorModelDefinitionHasBeenSet; }
57 inline void SetDetectorModelDefinition(const DetectorModelDefinition& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = value; }
58 inline void SetDetectorModelDefinition(DetectorModelDefinition&& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = std::move(value); }
62
64
67 inline const Aws::String& GetDetectorModelDescription() const{ return m_detectorModelDescription; }
68 inline bool DetectorModelDescriptionHasBeenSet() const { return m_detectorModelDescriptionHasBeenSet; }
69 inline void SetDetectorModelDescription(const Aws::String& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = value; }
70 inline void SetDetectorModelDescription(Aws::String&& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = std::move(value); }
71 inline void SetDetectorModelDescription(const char* value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription.assign(value); }
76
78
82 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
83 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
84 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
85 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
86 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
87 inline UpdateDetectorModelRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
88 inline UpdateDetectorModelRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
89 inline UpdateDetectorModelRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
91
93
97 inline const EvaluationMethod& GetEvaluationMethod() const{ return m_evaluationMethod; }
98 inline bool EvaluationMethodHasBeenSet() const { return m_evaluationMethodHasBeenSet; }
99 inline void SetEvaluationMethod(const EvaluationMethod& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = value; }
100 inline void SetEvaluationMethod(EvaluationMethod&& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = std::move(value); }
102 inline UpdateDetectorModelRequest& WithEvaluationMethod(EvaluationMethod&& value) { SetEvaluationMethod(std::move(value)); return *this;}
104 private:
105
106 Aws::String m_detectorModelName;
107 bool m_detectorModelNameHasBeenSet = false;
108
109 DetectorModelDefinition m_detectorModelDefinition;
110 bool m_detectorModelDefinitionHasBeenSet = false;
111
112 Aws::String m_detectorModelDescription;
113 bool m_detectorModelDescriptionHasBeenSet = false;
114
115 Aws::String m_roleArn;
116 bool m_roleArnHasBeenSet = false;
117
118 EvaluationMethod m_evaluationMethod;
119 bool m_evaluationMethodHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace IoTEvents
124} // namespace Aws
UpdateDetectorModelRequest & WithDetectorModelDefinition(const DetectorModelDefinition &value)
UpdateDetectorModelRequest & WithEvaluationMethod(EvaluationMethod &&value)
UpdateDetectorModelRequest & WithRoleArn(const Aws::String &value)
const DetectorModelDefinition & GetDetectorModelDefinition() const
UpdateDetectorModelRequest & WithRoleArn(Aws::String &&value)
UpdateDetectorModelRequest & WithDetectorModelName(const char *value)
UpdateDetectorModelRequest & WithDetectorModelName(const Aws::String &value)
void SetDetectorModelDefinition(const DetectorModelDefinition &value)
virtual const char * GetServiceRequestName() const override
UpdateDetectorModelRequest & WithEvaluationMethod(const EvaluationMethod &value)
UpdateDetectorModelRequest & WithDetectorModelName(Aws::String &&value)
UpdateDetectorModelRequest & WithDetectorModelDescription(const Aws::String &value)
UpdateDetectorModelRequest & WithDetectorModelDefinition(DetectorModelDefinition &&value)
UpdateDetectorModelRequest & WithDetectorModelDescription(Aws::String &&value)
void SetDetectorModelDefinition(DetectorModelDefinition &&value)
UpdateDetectorModelRequest & WithDetectorModelDescription(const char *value)
UpdateDetectorModelRequest & WithRoleArn(const char *value)
AWS_IOTEVENTS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String