AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename MessagesT = Aws::Vector<CisSessionMessage>>
44 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages = std::forward<MessagesT>(value); }
45 template<typename MessagesT = Aws::Vector<CisSessionMessage>>
46 SendCisSessionTelemetryRequest& WithMessages(MessagesT&& value) { SetMessages(std::forward<MessagesT>(value)); return *this;}
47 template<typename MessagesT = CisSessionMessage>
48 SendCisSessionTelemetryRequest& AddMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages.emplace_back(std::forward<MessagesT>(value)); return *this; }
50
52
55 inline const Aws::String& GetScanJobId() const { return m_scanJobId; }
56 inline bool ScanJobIdHasBeenSet() const { return m_scanJobIdHasBeenSet; }
57 template<typename ScanJobIdT = Aws::String>
58 void SetScanJobId(ScanJobIdT&& value) { m_scanJobIdHasBeenSet = true; m_scanJobId = std::forward<ScanJobIdT>(value); }
59 template<typename ScanJobIdT = Aws::String>
60 SendCisSessionTelemetryRequest& WithScanJobId(ScanJobIdT&& value) { SetScanJobId(std::forward<ScanJobIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetSessionToken() const { return m_sessionToken; }
68 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
69 template<typename SessionTokenT = Aws::String>
70 void SetSessionToken(SessionTokenT&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::forward<SessionTokenT>(value); }
71 template<typename SessionTokenT = Aws::String>
72 SendCisSessionTelemetryRequest& WithSessionToken(SessionTokenT&& value) { SetSessionToken(std::forward<SessionTokenT>(value)); return *this;}
74 private:
75
77 bool m_messagesHasBeenSet = false;
78
79 Aws::String m_scanJobId;
80 bool m_scanJobIdHasBeenSet = false;
81
82 Aws::String m_sessionToken;
83 bool m_sessionTokenHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Inspector2
88} // namespace Aws
AWS_INSPECTOR2_API SendCisSessionTelemetryRequest()=default
SendCisSessionTelemetryRequest & WithMessages(MessagesT &&value)
SendCisSessionTelemetryRequest & AddMessages(MessagesT &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
const Aws::Vector< CisSessionMessage > & GetMessages() const
SendCisSessionTelemetryRequest & WithScanJobId(ScanJobIdT &&value)
SendCisSessionTelemetryRequest & WithSessionToken(SessionTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector