AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendCisSessionTelemetryRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/inspector2/model/CisSessionMessage.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Inspector2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_INSPECTOR2_API SendCisSessionTelemetryRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SendCisSessionTelemetry"; }
33
34 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::Vector<CisSessionMessage>& GetMessages() const{ return m_messages; }
42 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
43 inline void SetMessages(const Aws::Vector<CisSessionMessage>& value) { m_messagesHasBeenSet = true; m_messages = value; }
44 inline void SetMessages(Aws::Vector<CisSessionMessage>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
47 inline SendCisSessionTelemetryRequest& AddMessages(const CisSessionMessage& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
48 inline SendCisSessionTelemetryRequest& AddMessages(CisSessionMessage&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::String& GetScanJobId() const{ return m_scanJobId; }
56 inline bool ScanJobIdHasBeenSet() const { return m_scanJobIdHasBeenSet; }
57 inline void SetScanJobId(const Aws::String& value) { m_scanJobIdHasBeenSet = true; m_scanJobId = value; }
58 inline void SetScanJobId(Aws::String&& value) { m_scanJobIdHasBeenSet = true; m_scanJobId = std::move(value); }
59 inline void SetScanJobId(const char* value) { m_scanJobIdHasBeenSet = true; m_scanJobId.assign(value); }
60 inline SendCisSessionTelemetryRequest& WithScanJobId(const Aws::String& value) { SetScanJobId(value); return *this;}
61 inline SendCisSessionTelemetryRequest& WithScanJobId(Aws::String&& value) { SetScanJobId(std::move(value)); return *this;}
62 inline SendCisSessionTelemetryRequest& WithScanJobId(const char* value) { SetScanJobId(value); return *this;}
64
66
69 inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
70 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
71 inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
72 inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
73 inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
74 inline SendCisSessionTelemetryRequest& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
75 inline SendCisSessionTelemetryRequest& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
76 inline SendCisSessionTelemetryRequest& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
78 private:
79
81 bool m_messagesHasBeenSet = false;
82
83 Aws::String m_scanJobId;
84 bool m_scanJobIdHasBeenSet = false;
85
86 Aws::String m_sessionToken;
87 bool m_sessionTokenHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Inspector2
92} // namespace Aws
SendCisSessionTelemetryRequest & WithScanJobId(Aws::String &&value)
SendCisSessionTelemetryRequest & WithSessionToken(const Aws::String &value)
SendCisSessionTelemetryRequest & WithSessionToken(Aws::String &&value)
SendCisSessionTelemetryRequest & WithScanJobId(const char *value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
SendCisSessionTelemetryRequest & WithSessionToken(const char *value)
SendCisSessionTelemetryRequest & AddMessages(const CisSessionMessage &value)
SendCisSessionTelemetryRequest & WithScanJobId(const Aws::String &value)
SendCisSessionTelemetryRequest & WithMessages(const Aws::Vector< CisSessionMessage > &value)
SendCisSessionTelemetryRequest & WithMessages(Aws::Vector< CisSessionMessage > &&value)
void SetMessages(Aws::Vector< CisSessionMessage > &&value)
const Aws::Vector< CisSessionMessage > & GetMessages() const
SendCisSessionTelemetryRequest & AddMessages(CisSessionMessage &&value)
void SetMessages(const Aws::Vector< CisSessionMessage > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector