AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartCisSessionRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/model/StartCisSessionMessage.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Inspector2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_INSPECTOR2_API StartCisSessionRequest() = 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 "StartCisSession"; }
32
33 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
34
35
37
40 inline const StartCisSessionMessage& GetMessage() const { return m_message; }
41 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
42 template<typename MessageT = StartCisSessionMessage>
43 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
44 template<typename MessageT = StartCisSessionMessage>
45 StartCisSessionRequest& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
47
49
52 inline const Aws::String& GetScanJobId() const { return m_scanJobId; }
53 inline bool ScanJobIdHasBeenSet() const { return m_scanJobIdHasBeenSet; }
54 template<typename ScanJobIdT = Aws::String>
55 void SetScanJobId(ScanJobIdT&& value) { m_scanJobIdHasBeenSet = true; m_scanJobId = std::forward<ScanJobIdT>(value); }
56 template<typename ScanJobIdT = Aws::String>
57 StartCisSessionRequest& WithScanJobId(ScanJobIdT&& value) { SetScanJobId(std::forward<ScanJobIdT>(value)); return *this;}
59 private:
60
61 StartCisSessionMessage m_message;
62 bool m_messageHasBeenSet = false;
63
64 Aws::String m_scanJobId;
65 bool m_scanJobIdHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace Inspector2
70} // 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