AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutNotificationSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rolesanywhere/RolesAnywhereRequest.h>
10#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
11#include <aws/rolesanywhere/model/NotificationSetting.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RolesAnywhere {
17namespace Model {
18
22 public:
23 AWS_ROLESANYWHERE_API PutNotificationSettingsRequest() = 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 "PutNotificationSettings"; }
30
31 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetTrustAnchorId() const { return m_trustAnchorId; }
38 inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; }
39 template <typename TrustAnchorIdT = Aws::String>
40 void SetTrustAnchorId(TrustAnchorIdT&& value) {
41 m_trustAnchorIdHasBeenSet = true;
42 m_trustAnchorId = std::forward<TrustAnchorIdT>(value);
43 }
44 template <typename TrustAnchorIdT = Aws::String>
46 SetTrustAnchorId(std::forward<TrustAnchorIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<NotificationSetting>& GetNotificationSettings() const { return m_notificationSettings; }
56 inline bool NotificationSettingsHasBeenSet() const { return m_notificationSettingsHasBeenSet; }
57 template <typename NotificationSettingsT = Aws::Vector<NotificationSetting>>
58 void SetNotificationSettings(NotificationSettingsT&& value) {
59 m_notificationSettingsHasBeenSet = true;
60 m_notificationSettings = std::forward<NotificationSettingsT>(value);
61 }
62 template <typename NotificationSettingsT = Aws::Vector<NotificationSetting>>
64 SetNotificationSettings(std::forward<NotificationSettingsT>(value));
65 return *this;
66 }
67 template <typename NotificationSettingsT = NotificationSetting>
69 m_notificationSettingsHasBeenSet = true;
70 m_notificationSettings.emplace_back(std::forward<NotificationSettingsT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_trustAnchorId;
76
77 Aws::Vector<NotificationSetting> m_notificationSettings;
78 bool m_trustAnchorIdHasBeenSet = false;
79 bool m_notificationSettingsHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace RolesAnywhere
84} // namespace Aws
AWS_ROLESANYWHERE_API PutNotificationSettingsRequest()=default
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
PutNotificationSettingsRequest & AddNotificationSettings(NotificationSettingsT &&value)
PutNotificationSettingsRequest & WithNotificationSettings(NotificationSettingsT &&value)
const Aws::Vector< NotificationSetting > & GetNotificationSettings() const
PutNotificationSettingsRequest & WithTrustAnchorId(TrustAnchorIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector