AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutAuditEventsRequest.h
1
6#pragma once
7#include <aws/cloudtrail-data/CloudTrailDataRequest.h>
8#include <aws/cloudtrail-data/CloudTrailData_EXPORTS.h>
9#include <aws/cloudtrail-data/model/AuditEvent.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace CloudTrailData {
20namespace Model {
21
25 public:
26 AWS_CLOUDTRAILDATA_API PutAuditEventsRequest() = 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 "PutAuditEvents"; }
33
34 AWS_CLOUDTRAILDATA_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDTRAILDATA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
43 inline const Aws::Vector<AuditEvent>& GetAuditEvents() const { return m_auditEvents; }
44 inline bool AuditEventsHasBeenSet() const { return m_auditEventsHasBeenSet; }
45 template <typename AuditEventsT = Aws::Vector<AuditEvent>>
46 void SetAuditEvents(AuditEventsT&& value) {
47 m_auditEventsHasBeenSet = true;
48 m_auditEvents = std::forward<AuditEventsT>(value);
49 }
50 template <typename AuditEventsT = Aws::Vector<AuditEvent>>
51 PutAuditEventsRequest& WithAuditEvents(AuditEventsT&& value) {
52 SetAuditEvents(std::forward<AuditEventsT>(value));
53 return *this;
54 }
55 template <typename AuditEventsT = AuditEvent>
56 PutAuditEventsRequest& AddAuditEvents(AuditEventsT&& value) {
57 m_auditEventsHasBeenSet = true;
58 m_auditEvents.emplace_back(std::forward<AuditEventsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
68 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
69 template <typename ChannelArnT = Aws::String>
70 void SetChannelArn(ChannelArnT&& value) {
71 m_channelArnHasBeenSet = true;
72 m_channelArn = std::forward<ChannelArnT>(value);
73 }
74 template <typename ChannelArnT = Aws::String>
75 PutAuditEventsRequest& WithChannelArn(ChannelArnT&& value) {
76 SetChannelArn(std::forward<ChannelArnT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::String& GetExternalId() const { return m_externalId; }
88 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
89 template <typename ExternalIdT = Aws::String>
90 void SetExternalId(ExternalIdT&& value) {
91 m_externalIdHasBeenSet = true;
92 m_externalId = std::forward<ExternalIdT>(value);
93 }
94 template <typename ExternalIdT = Aws::String>
95 PutAuditEventsRequest& WithExternalId(ExternalIdT&& value) {
96 SetExternalId(std::forward<ExternalIdT>(value));
97 return *this;
98 }
100 private:
101 Aws::Vector<AuditEvent> m_auditEvents;
102
103 Aws::String m_channelArn;
104
105 Aws::String m_externalId;
106 bool m_auditEventsHasBeenSet = false;
107 bool m_channelArnHasBeenSet = false;
108 bool m_externalIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace CloudTrailData
113} // namespace Aws
AWS_CLOUDTRAILDATA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutAuditEventsRequest & WithExternalId(ExternalIdT &&value)
PutAuditEventsRequest & AddAuditEvents(AuditEventsT &&value)
PutAuditEventsRequest & WithAuditEvents(AuditEventsT &&value)
const Aws::Vector< AuditEvent > & GetAuditEvents() const
virtual const char * GetServiceRequestName() const override
PutAuditEventsRequest & WithChannelArn(ChannelArnT &&value)
AWS_CLOUDTRAILDATA_API Aws::String SerializePayload() const override
AWS_CLOUDTRAILDATA_API PutAuditEventsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector