AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
StopAssessmentRunRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector/InspectorRequest.h>
9#include <aws/inspector/Inspector_EXPORTS.h>
10#include <aws/inspector/model/StopAction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Inspector {
16namespace Model {
17
21 public:
22 AWS_INSPECTOR_API StopAssessmentRunRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "StopAssessmentRun"; }
29
30 AWS_INSPECTOR_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetAssessmentRunArn() const { return m_assessmentRunArn; }
39 inline bool AssessmentRunArnHasBeenSet() const { return m_assessmentRunArnHasBeenSet; }
40 template <typename AssessmentRunArnT = Aws::String>
41 void SetAssessmentRunArn(AssessmentRunArnT&& value) {
42 m_assessmentRunArnHasBeenSet = true;
43 m_assessmentRunArn = std::forward<AssessmentRunArnT>(value);
44 }
45 template <typename AssessmentRunArnT = Aws::String>
46 StopAssessmentRunRequest& WithAssessmentRunArn(AssessmentRunArnT&& value) {
47 SetAssessmentRunArn(std::forward<AssessmentRunArnT>(value));
48 return *this;
49 }
51
53
60 inline StopAction GetStopAction() const { return m_stopAction; }
61 inline bool StopActionHasBeenSet() const { return m_stopActionHasBeenSet; }
62 inline void SetStopAction(StopAction value) {
63 m_stopActionHasBeenSet = true;
64 m_stopAction = value;
65 }
67 SetStopAction(value);
68 return *this;
69 }
71 private:
72 Aws::String m_assessmentRunArn;
73
74 StopAction m_stopAction{StopAction::NOT_SET};
75 bool m_assessmentRunArnHasBeenSet = false;
76 bool m_stopActionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Inspector
81} // namespace Aws
AWS_INSPECTOR_API Aws::String SerializePayload() const override
StopAssessmentRunRequest & WithAssessmentRunArn(AssessmentRunArnT &&value)
virtual const char * GetServiceRequestName() const override
AWS_INSPECTOR_API StopAssessmentRunRequest()=default
StopAssessmentRunRequest & WithStopAction(StopAction value)
AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String