AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StopCisSessionRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/model/StopCisSessionMessage.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 StopCisSessionRequest();
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 "StopCisSession"; }
32
33 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
34
35
37
40 inline const StopCisSessionMessage& GetMessage() const{ return m_message; }
41 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
42 inline void SetMessage(const StopCisSessionMessage& value) { m_messageHasBeenSet = true; m_message = value; }
43 inline void SetMessage(StopCisSessionMessage&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
44 inline StopCisSessionRequest& WithMessage(const StopCisSessionMessage& value) { SetMessage(value); return *this;}
45 inline StopCisSessionRequest& WithMessage(StopCisSessionMessage&& 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 StopCisSessionRequest& WithScanJobId(const Aws::String& value) { SetScanJobId(value); return *this;}
58 inline StopCisSessionRequest& WithScanJobId(Aws::String&& value) { SetScanJobId(std::move(value)); return *this;}
59 inline StopCisSessionRequest& WithScanJobId(const char* value) { SetScanJobId(value); return *this;}
61
63
66 inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
67 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
68 inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
69 inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
70 inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
71 inline StopCisSessionRequest& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
72 inline StopCisSessionRequest& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
73 inline StopCisSessionRequest& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
75 private:
76
77 StopCisSessionMessage m_message;
78 bool m_messageHasBeenSet = false;
79
80 Aws::String m_scanJobId;
81 bool m_scanJobIdHasBeenSet = false;
82
83 Aws::String m_sessionToken;
84 bool m_sessionTokenHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Inspector2
89} // namespace Aws
void SetMessage(StopCisSessionMessage &&value)
virtual const char * GetServiceRequestName() const override
StopCisSessionRequest & WithSessionToken(const Aws::String &value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
void SetMessage(const StopCisSessionMessage &value)
StopCisSessionRequest & WithMessage(StopCisSessionMessage &&value)
StopCisSessionRequest & WithScanJobId(const char *value)
StopCisSessionRequest & WithScanJobId(Aws::String &&value)
StopCisSessionRequest & WithSessionToken(const char *value)
const StopCisSessionMessage & GetMessage() const
StopCisSessionRequest & WithScanJobId(const Aws::String &value)
StopCisSessionRequest & WithSessionToken(Aws::String &&value)
StopCisSessionRequest & WithMessage(const StopCisSessionMessage &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String