AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutEventSelectorsRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/EventSelector.h>
12#include <aws/cloudtrail/model/AdvancedEventSelector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudTrail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDTRAIL_API PutEventSelectorsRequest();
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 "PutEventSelectors"; }
34
35 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
36
38
39
41
53 inline const Aws::String& GetTrailName() const{ return m_trailName; }
54 inline bool TrailNameHasBeenSet() const { return m_trailNameHasBeenSet; }
55 inline void SetTrailName(const Aws::String& value) { m_trailNameHasBeenSet = true; m_trailName = value; }
56 inline void SetTrailName(Aws::String&& value) { m_trailNameHasBeenSet = true; m_trailName = std::move(value); }
57 inline void SetTrailName(const char* value) { m_trailNameHasBeenSet = true; m_trailName.assign(value); }
58 inline PutEventSelectorsRequest& WithTrailName(const Aws::String& value) { SetTrailName(value); return *this;}
59 inline PutEventSelectorsRequest& WithTrailName(Aws::String&& value) { SetTrailName(std::move(value)); return *this;}
60 inline PutEventSelectorsRequest& WithTrailName(const char* value) { SetTrailName(value); return *this;}
62
64
76 inline const Aws::Vector<EventSelector>& GetEventSelectors() const{ return m_eventSelectors; }
77 inline bool EventSelectorsHasBeenSet() const { return m_eventSelectorsHasBeenSet; }
78 inline void SetEventSelectors(const Aws::Vector<EventSelector>& value) { m_eventSelectorsHasBeenSet = true; m_eventSelectors = value; }
79 inline void SetEventSelectors(Aws::Vector<EventSelector>&& value) { m_eventSelectorsHasBeenSet = true; m_eventSelectors = std::move(value); }
82 inline PutEventSelectorsRequest& AddEventSelectors(const EventSelector& value) { m_eventSelectorsHasBeenSet = true; m_eventSelectors.push_back(value); return *this; }
83 inline PutEventSelectorsRequest& AddEventSelectors(EventSelector&& value) { m_eventSelectorsHasBeenSet = true; m_eventSelectors.push_back(std::move(value)); return *this; }
85
87
102 inline const Aws::Vector<AdvancedEventSelector>& GetAdvancedEventSelectors() const{ return m_advancedEventSelectors; }
103 inline bool AdvancedEventSelectorsHasBeenSet() const { return m_advancedEventSelectorsHasBeenSet; }
104 inline void SetAdvancedEventSelectors(const Aws::Vector<AdvancedEventSelector>& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = value; }
105 inline void SetAdvancedEventSelectors(Aws::Vector<AdvancedEventSelector>&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = std::move(value); }
108 inline PutEventSelectorsRequest& AddAdvancedEventSelectors(const AdvancedEventSelector& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(value); return *this; }
109 inline PutEventSelectorsRequest& AddAdvancedEventSelectors(AdvancedEventSelector&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_trailName;
114 bool m_trailNameHasBeenSet = false;
115
116 Aws::Vector<EventSelector> m_eventSelectors;
117 bool m_eventSelectorsHasBeenSet = false;
118
119 Aws::Vector<AdvancedEventSelector> m_advancedEventSelectors;
120 bool m_advancedEventSelectorsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace CloudTrail
125} // namespace Aws
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
PutEventSelectorsRequest & WithAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
const Aws::Vector< AdvancedEventSelector > & GetAdvancedEventSelectors() const
PutEventSelectorsRequest & AddEventSelectors(EventSelector &&value)
const Aws::Vector< EventSelector > & GetEventSelectors() const
PutEventSelectorsRequest & WithEventSelectors(const Aws::Vector< EventSelector > &value)
PutEventSelectorsRequest & WithEventSelectors(Aws::Vector< EventSelector > &&value)
void SetEventSelectors(Aws::Vector< EventSelector > &&value)
PutEventSelectorsRequest & WithTrailName(const Aws::String &value)
PutEventSelectorsRequest & AddAdvancedEventSelectors(const AdvancedEventSelector &value)
void SetAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
PutEventSelectorsRequest & WithTrailName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
PutEventSelectorsRequest & AddAdvancedEventSelectors(AdvancedEventSelector &&value)
PutEventSelectorsRequest & AddEventSelectors(const EventSelector &value)
void SetEventSelectors(const Aws::Vector< EventSelector > &value)
PutEventSelectorsRequest & WithAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
PutEventSelectorsRequest & WithTrailName(Aws::String &&value)
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