AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsS3BucketNotificationConfigurationDetail.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/model/AwsS3BucketNotificationConfigurationFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API AwsS3BucketNotificationConfigurationDetail() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetEvents() const { return m_events; }
48 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
49 template<typename EventsT = Aws::Vector<Aws::String>>
50 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
51 template<typename EventsT = Aws::Vector<Aws::String>>
52 AwsS3BucketNotificationConfigurationDetail& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
53 template<typename EventsT = Aws::String>
54 AwsS3BucketNotificationConfigurationDetail& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
56
58
61 inline const AwsS3BucketNotificationConfigurationFilter& GetFilter() const { return m_filter; }
62 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
63 template<typename FilterT = AwsS3BucketNotificationConfigurationFilter>
64 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
65 template<typename FilterT = AwsS3BucketNotificationConfigurationFilter>
66 AwsS3BucketNotificationConfigurationDetail& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
68
70
74 inline const Aws::String& GetDestination() const { return m_destination; }
75 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
76 template<typename DestinationT = Aws::String>
77 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
78 template<typename DestinationT = Aws::String>
79 AwsS3BucketNotificationConfigurationDetail& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
81
83
90 inline const Aws::String& GetType() const { return m_type; }
91 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 template<typename TypeT = Aws::String>
93 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
94 template<typename TypeT = Aws::String>
95 AwsS3BucketNotificationConfigurationDetail& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
97 private:
98
100 bool m_eventsHasBeenSet = false;
101
103 bool m_filterHasBeenSet = false;
104
105 Aws::String m_destination;
106 bool m_destinationHasBeenSet = false;
107
108 Aws::String m_type;
109 bool m_typeHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SecurityHub
114} // namespace Aws
AwsS3BucketNotificationConfigurationDetail & WithDestination(DestinationT &&value)
AWS_SECURITYHUB_API AwsS3BucketNotificationConfigurationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsS3BucketNotificationConfigurationDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue