AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
StartCisSessionRequest.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/StartCisSessionMessage.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Inspector2 {
16namespace Model {
17
21 public:
22 AWS_INSPECTOR2_API StartCisSessionRequest() = 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 "StartCisSession"; }
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>
45 SetScanJobId(std::forward<ScanJobIdT>(value));
46 return *this;
47 }
49
51
54 inline const StartCisSessionMessage& GetMessage() const { return m_message; }
55 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
56 template <typename MessageT = StartCisSessionMessage>
57 void SetMessage(MessageT&& value) {
58 m_messageHasBeenSet = true;
59 m_message = std::forward<MessageT>(value);
60 }
61 template <typename MessageT = StartCisSessionMessage>
63 SetMessage(std::forward<MessageT>(value));
64 return *this;
65 }
67 private:
68 Aws::String m_scanJobId;
69
70 StartCisSessionMessage m_message;
71 bool m_scanJobIdHasBeenSet = false;
72 bool m_messageHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Inspector2
77} // namespace Aws
StartCisSessionRequest & WithMessage(MessageT &&value)
AWS_INSPECTOR2_API StartCisSessionRequest()=default
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
StartCisSessionRequest & WithScanJobId(ScanJobIdT &&value)
const StartCisSessionMessage & GetMessage() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String