AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessage(const StartCisSessionMessage& value) { m_messageHasBeenSet = true; m_message = value; }
43 inline void SetMessage(StartCisSessionMessage&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
44 inline StartCisSessionRequest& WithMessage(const StartCisSessionMessage& value) { SetMessage(value); return *this;}
45 inline StartCisSessionRequest& WithMessage(StartCisSessionMessage&& value) { SetMessage(std::move(value)); return *this;}
47
49
52 inline const Aws::String& GetScanJobId() const{ return m_scanJobId; }
53 inline bool ScanJobIdHasBeenSet() const { return m_scanJobIdHasBeenSet; }
54 inline void SetScanJobId(const Aws::String& value) { m_scanJobIdHasBeenSet = true; m_scanJobId = value; }
55 inline void SetScanJobId(Aws::String&& value) { m_scanJobIdHasBeenSet = true; m_scanJobId = std::move(value); }
56 inline void SetScanJobId(const char* value) { m_scanJobIdHasBeenSet = true; m_scanJobId.assign(value); }
57 inline StartCisSessionRequest& WithScanJobId(const Aws::String& value) { SetScanJobId(value); return *this;}
58 inline StartCisSessionRequest& WithScanJobId(Aws::String&& value) { SetScanJobId(std::move(value)); return *this;}
59 inline StartCisSessionRequest& WithScanJobId(const char* value) { SetScanJobId(value); return *this;}
61 private:
62
63 StartCisSessionMessage m_message;
64 bool m_messageHasBeenSet = false;
65
66 Aws::String m_scanJobId;
67 bool m_scanJobIdHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Inspector2
72} // namespace Aws
StartCisSessionRequest & WithScanJobId(const Aws::String &value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
StartCisSessionRequest & WithMessage(const StartCisSessionMessage &value)
StartCisSessionRequest & WithScanJobId(Aws::String &&value)
void SetMessage(const StartCisSessionMessage &value)
StartCisSessionRequest & WithScanJobId(const char *value)
const StartCisSessionMessage & GetMessage() const
void SetMessage(StartCisSessionMessage &&value)
virtual const char * GetServiceRequestName() const override
StartCisSessionRequest & WithMessage(StartCisSessionMessage &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String