AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAuditEvents(const Aws::Vector<AuditEvent>& value) { m_auditEventsHasBeenSet = true; m_auditEvents = value; }
51 inline void SetAuditEvents(Aws::Vector<AuditEvent>&& value) { m_auditEventsHasBeenSet = true; m_auditEvents = std::move(value); }
52 inline PutAuditEventsRequest& WithAuditEvents(const Aws::Vector<AuditEvent>& value) { SetAuditEvents(value); return *this;}
53 inline PutAuditEventsRequest& WithAuditEvents(Aws::Vector<AuditEvent>&& value) { SetAuditEvents(std::move(value)); return *this;}
54 inline PutAuditEventsRequest& AddAuditEvents(const AuditEvent& value) { m_auditEventsHasBeenSet = true; m_auditEvents.push_back(value); return *this; }
55 inline PutAuditEventsRequest& AddAuditEvents(AuditEvent&& value) { m_auditEventsHasBeenSet = true; m_auditEvents.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
63 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
64 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
65 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
66 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
67 inline PutAuditEventsRequest& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
68 inline PutAuditEventsRequest& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
69 inline PutAuditEventsRequest& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
71
73
78 inline const Aws::String& GetExternalId() const{ return m_externalId; }
79 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
80 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
81 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
82 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
83 inline PutAuditEventsRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
84 inline PutAuditEventsRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
85 inline PutAuditEventsRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
87 private:
88
89 Aws::Vector<AuditEvent> m_auditEvents;
90 bool m_auditEventsHasBeenSet = false;
91
92 Aws::String m_channelArn;
93 bool m_channelArnHasBeenSet = false;
94
95 Aws::String m_externalId;
96 bool m_externalIdHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CloudTrailData
101} // namespace Aws
AWS_CLOUDTRAILDATA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutAuditEventsRequest & WithChannelArn(Aws::String &&value)
PutAuditEventsRequest & WithChannelArn(const Aws::String &value)
PutAuditEventsRequest & WithAuditEvents(const Aws::Vector< AuditEvent > &value)
void SetAuditEvents(Aws::Vector< AuditEvent > &&value)
PutAuditEventsRequest & WithExternalId(const char *value)
const Aws::Vector< AuditEvent > & GetAuditEvents() const
PutAuditEventsRequest & WithAuditEvents(Aws::Vector< AuditEvent > &&value)
PutAuditEventsRequest & WithExternalId(const Aws::String &value)
PutAuditEventsRequest & WithChannelArn(const char *value)
void SetAuditEvents(const Aws::Vector< AuditEvent > &value)
PutAuditEventsRequest & AddAuditEvents(const AuditEvent &value)
virtual const char * GetServiceRequestName() const override
PutAuditEventsRequest & WithExternalId(Aws::String &&value)
PutAuditEventsRequest & AddAuditEvents(AuditEvent &&value)
AWS_CLOUDTRAILDATA_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector