AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StopAssessmentRunRequest.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/inspector/InspectorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector/model/StopAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Inspector
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_INSPECTOR_API StopAssessmentRunRequest() = 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 "StopAssessmentRun"; }
32
33 AWS_INSPECTOR_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetAssessmentRunArn() const { return m_assessmentRunArn; }
43 inline bool AssessmentRunArnHasBeenSet() const { return m_assessmentRunArnHasBeenSet; }
44 template<typename AssessmentRunArnT = Aws::String>
45 void SetAssessmentRunArn(AssessmentRunArnT&& value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn = std::forward<AssessmentRunArnT>(value); }
46 template<typename AssessmentRunArnT = Aws::String>
47 StopAssessmentRunRequest& WithAssessmentRunArn(AssessmentRunArnT&& value) { SetAssessmentRunArn(std::forward<AssessmentRunArnT>(value)); return *this;}
49
51
58 inline StopAction GetStopAction() const { return m_stopAction; }
59 inline bool StopActionHasBeenSet() const { return m_stopActionHasBeenSet; }
60 inline void SetStopAction(StopAction value) { m_stopActionHasBeenSet = true; m_stopAction = value; }
61 inline StopAssessmentRunRequest& WithStopAction(StopAction value) { SetStopAction(value); return *this;}
63 private:
64
65 Aws::String m_assessmentRunArn;
66 bool m_assessmentRunArnHasBeenSet = false;
67
68 StopAction m_stopAction{StopAction::NOT_SET};
69 bool m_stopActionHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Inspector
74} // 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