AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateNotificationConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/notifications/NotificationsRequest.h>
10#include <aws/notifications/Notifications_EXPORTS.h>
11#include <aws/notifications/model/AggregationDuration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Notifications {
17namespace Model {
18
22 public:
23 AWS_NOTIFICATIONS_API CreateNotificationConfigurationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateNotificationConfiguration"; }
30
31 AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
80 inline AggregationDuration GetAggregationDuration() const { return m_aggregationDuration; }
81 inline bool AggregationDurationHasBeenSet() const { return m_aggregationDurationHasBeenSet; }
83 m_aggregationDurationHasBeenSet = true;
84 m_aggregationDuration = value;
85 }
88 return *this;
89 }
91
93
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 void SetTags(TagsT&& value) {
101 m_tagsHasBeenSet = true;
102 m_tags = std::forward<TagsT>(value);
103 }
104 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 SetTags(std::forward<TagsT>(value));
107 return *this;
108 }
109 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
110 CreateNotificationConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_name;
118
119 Aws::String m_description;
120
122
124 bool m_nameHasBeenSet = false;
125 bool m_descriptionHasBeenSet = false;
126 bool m_aggregationDurationHasBeenSet = false;
127 bool m_tagsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Notifications
132} // namespace Aws
AWS_NOTIFICATIONS_API CreateNotificationConfigurationRequest()=default
CreateNotificationConfigurationRequest & WithDescription(DescriptionT &&value)
CreateNotificationConfigurationRequest & WithAggregationDuration(AggregationDuration value)
AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override
CreateNotificationConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String