AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutAuditEventsRequest.h
1
6#pragma once
7#include <aws/cloudtrail-data/CloudTrailData_EXPORTS.h>
8#include <aws/cloudtrail-data/CloudTrailDataRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/cloudtrail-data/model/AuditEvent.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace CloudTrailData
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CLOUDTRAILDATA_API PutAuditEventsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PutAuditEvents"; }
37
38 AWS_CLOUDTRAILDATA_API Aws::String SerializePayload() const override;
39
40 AWS_CLOUDTRAILDATA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
48 inline const Aws::Vector<AuditEvent>& GetAuditEvents() const { return m_auditEvents; }
49 inline bool AuditEventsHasBeenSet() const { return m_auditEventsHasBeenSet; }
50 template<typename AuditEventsT = Aws::Vector<AuditEvent>>
51 void SetAuditEvents(AuditEventsT&& value) { m_auditEventsHasBeenSet = true; m_auditEvents = std::forward<AuditEventsT>(value); }
52 template<typename AuditEventsT = Aws::Vector<AuditEvent>>
53 PutAuditEventsRequest& WithAuditEvents(AuditEventsT&& value) { SetAuditEvents(std::forward<AuditEventsT>(value)); return *this;}
54 template<typename AuditEventsT = AuditEvent>
55 PutAuditEventsRequest& AddAuditEvents(AuditEventsT&& value) { m_auditEventsHasBeenSet = true; m_auditEvents.emplace_back(std::forward<AuditEventsT>(value)); return *this; }
57
59
62 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
63 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
64 template<typename ChannelArnT = Aws::String>
65 void SetChannelArn(ChannelArnT&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::forward<ChannelArnT>(value); }
66 template<typename ChannelArnT = Aws::String>
67 PutAuditEventsRequest& WithChannelArn(ChannelArnT&& value) { SetChannelArn(std::forward<ChannelArnT>(value)); return *this;}
69
71
76 inline const Aws::String& GetExternalId() const { return m_externalId; }
77 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
78 template<typename ExternalIdT = Aws::String>
79 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
80 template<typename ExternalIdT = Aws::String>
81 PutAuditEventsRequest& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
83 private:
84
85 Aws::Vector<AuditEvent> m_auditEvents;
86 bool m_auditEventsHasBeenSet = false;
87
88 Aws::String m_channelArn;
89 bool m_channelArnHasBeenSet = false;
90
91 Aws::String m_externalId;
92 bool m_externalIdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CloudTrailData
97} // 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