AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssessmentRunArn(const Aws::String& value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn = value; }
45 inline void SetAssessmentRunArn(Aws::String&& value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn = std::move(value); }
46 inline void SetAssessmentRunArn(const char* value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn.assign(value); }
48 inline StopAssessmentRunRequest& WithAssessmentRunArn(Aws::String&& value) { SetAssessmentRunArn(std::move(value)); return *this;}
49 inline StopAssessmentRunRequest& WithAssessmentRunArn(const char* value) { SetAssessmentRunArn(value); return *this;}
51
53
60 inline const StopAction& GetStopAction() const{ return m_stopAction; }
61 inline bool StopActionHasBeenSet() const { return m_stopActionHasBeenSet; }
62 inline void SetStopAction(const StopAction& value) { m_stopActionHasBeenSet = true; m_stopAction = value; }
63 inline void SetStopAction(StopAction&& value) { m_stopActionHasBeenSet = true; m_stopAction = std::move(value); }
64 inline StopAssessmentRunRequest& WithStopAction(const StopAction& value) { SetStopAction(value); return *this;}
65 inline StopAssessmentRunRequest& WithStopAction(StopAction&& value) { SetStopAction(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_assessmentRunArn;
70 bool m_assessmentRunArnHasBeenSet = false;
71
72 StopAction m_stopAction;
73 bool m_stopActionHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Inspector
78} // namespace Aws
AWS_INSPECTOR_API Aws::String SerializePayload() const override
StopAssessmentRunRequest & WithAssessmentRunArn(const char *value)
virtual const char * GetServiceRequestName() const override
StopAssessmentRunRequest & WithAssessmentRunArn(Aws::String &&value)
StopAssessmentRunRequest & WithStopAction(StopAction &&value)
StopAssessmentRunRequest & WithAssessmentRunArn(const Aws::String &value)
AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StopAssessmentRunRequest & WithStopAction(const StopAction &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String