AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutEventConfigurationRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudtrail/model/MaxEventSize.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/cloudtrail/model/ContextKeySelector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudTrail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDTRAIL_API PutEventConfigurationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutEventConfiguration"; }
34
35 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetEventDataStore() const { return m_eventDataStore; }
46 inline bool EventDataStoreHasBeenSet() const { return m_eventDataStoreHasBeenSet; }
47 template<typename EventDataStoreT = Aws::String>
48 void SetEventDataStore(EventDataStoreT&& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = std::forward<EventDataStoreT>(value); }
49 template<typename EventDataStoreT = Aws::String>
50 PutEventConfigurationRequest& WithEventDataStore(EventDataStoreT&& value) { SetEventDataStore(std::forward<EventDataStoreT>(value)); return *this;}
52
54
59 inline MaxEventSize GetMaxEventSize() const { return m_maxEventSize; }
60 inline bool MaxEventSizeHasBeenSet() const { return m_maxEventSizeHasBeenSet; }
61 inline void SetMaxEventSize(MaxEventSize value) { m_maxEventSizeHasBeenSet = true; m_maxEventSize = value; }
64
66
70 inline const Aws::Vector<ContextKeySelector>& GetContextKeySelectors() const { return m_contextKeySelectors; }
71 inline bool ContextKeySelectorsHasBeenSet() const { return m_contextKeySelectorsHasBeenSet; }
72 template<typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
73 void SetContextKeySelectors(ContextKeySelectorsT&& value) { m_contextKeySelectorsHasBeenSet = true; m_contextKeySelectors = std::forward<ContextKeySelectorsT>(value); }
74 template<typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
75 PutEventConfigurationRequest& WithContextKeySelectors(ContextKeySelectorsT&& value) { SetContextKeySelectors(std::forward<ContextKeySelectorsT>(value)); return *this;}
76 template<typename ContextKeySelectorsT = ContextKeySelector>
77 PutEventConfigurationRequest& AddContextKeySelectors(ContextKeySelectorsT&& value) { m_contextKeySelectorsHasBeenSet = true; m_contextKeySelectors.emplace_back(std::forward<ContextKeySelectorsT>(value)); return *this; }
79 private:
80
81 Aws::String m_eventDataStore;
82 bool m_eventDataStoreHasBeenSet = false;
83
84 MaxEventSize m_maxEventSize{MaxEventSize::NOT_SET};
85 bool m_maxEventSizeHasBeenSet = false;
86
87 Aws::Vector<ContextKeySelector> m_contextKeySelectors;
88 bool m_contextKeySelectorsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CloudTrail
93} // namespace Aws
PutEventConfigurationRequest & AddContextKeySelectors(ContextKeySelectorsT &&value)
PutEventConfigurationRequest & WithEventDataStore(EventDataStoreT &&value)
AWS_CLOUDTRAIL_API PutEventConfigurationRequest()=default
PutEventConfigurationRequest & WithMaxEventSize(MaxEventSize value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ContextKeySelector > & GetContextKeySelectors() const
PutEventConfigurationRequest & WithContextKeySelectors(ContextKeySelectorsT &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector