AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
StopCisSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/StopCisSessionMessage.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Inspector2 {
16namespace Model {
17
21 public:
22 AWS_INSPECTOR2_API StopCisSessionRequest() = 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 "StopCisSession"; }
29
30 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetScanJobId() const { return m_scanJobId; }
37 inline bool ScanJobIdHasBeenSet() const { return m_scanJobIdHasBeenSet; }
38 template <typename ScanJobIdT = Aws::String>
39 void SetScanJobId(ScanJobIdT&& value) {
40 m_scanJobIdHasBeenSet = true;
41 m_scanJobId = std::forward<ScanJobIdT>(value);
42 }
43 template <typename ScanJobIdT = Aws::String>
44 StopCisSessionRequest& WithScanJobId(ScanJobIdT&& value) {
45 SetScanJobId(std::forward<ScanJobIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetSessionToken() const { return m_sessionToken; }
55 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
56 template <typename SessionTokenT = Aws::String>
57 void SetSessionToken(SessionTokenT&& value) {
58 m_sessionTokenHasBeenSet = true;
59 m_sessionToken = std::forward<SessionTokenT>(value);
60 }
61 template <typename SessionTokenT = Aws::String>
62 StopCisSessionRequest& WithSessionToken(SessionTokenT&& value) {
63 SetSessionToken(std::forward<SessionTokenT>(value));
64 return *this;
65 }
67
69
72 inline const StopCisSessionMessage& GetMessage() const { return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
74 template <typename MessageT = StopCisSessionMessage>
75 void SetMessage(MessageT&& value) {
76 m_messageHasBeenSet = true;
77 m_message = std::forward<MessageT>(value);
78 }
79 template <typename MessageT = StopCisSessionMessage>
81 SetMessage(std::forward<MessageT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_scanJobId;
87
88 Aws::String m_sessionToken;
89
90 StopCisSessionMessage m_message;
91 bool m_scanJobIdHasBeenSet = false;
92 bool m_sessionTokenHasBeenSet = false;
93 bool m_messageHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Inspector2
98} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
StopCisSessionRequest & WithScanJobId(ScanJobIdT &&value)
AWS_INSPECTOR2_API StopCisSessionRequest()=default
StopCisSessionRequest & WithSessionToken(SessionTokenT &&value)
StopCisSessionRequest & WithMessage(MessageT &&value)
const StopCisSessionMessage & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String