AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutNotificationSettingsRequest.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/RolesAnywhereRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/rolesanywhere/model/NotificationSetting.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RolesAnywhere
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROLESANYWHERE_API PutNotificationSettingsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutNotificationSettings"; }
33
34 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::Vector<NotificationSetting>& GetNotificationSettings() const { return m_notificationSettings; }
42 inline bool NotificationSettingsHasBeenSet() const { return m_notificationSettingsHasBeenSet; }
43 template<typename NotificationSettingsT = Aws::Vector<NotificationSetting>>
44 void SetNotificationSettings(NotificationSettingsT&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = std::forward<NotificationSettingsT>(value); }
45 template<typename NotificationSettingsT = Aws::Vector<NotificationSetting>>
46 PutNotificationSettingsRequest& WithNotificationSettings(NotificationSettingsT&& value) { SetNotificationSettings(std::forward<NotificationSettingsT>(value)); return *this;}
47 template<typename NotificationSettingsT = NotificationSetting>
48 PutNotificationSettingsRequest& AddNotificationSettings(NotificationSettingsT&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.emplace_back(std::forward<NotificationSettingsT>(value)); return *this; }
50
52
55 inline const Aws::String& GetTrustAnchorId() const { return m_trustAnchorId; }
56 inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; }
57 template<typename TrustAnchorIdT = Aws::String>
58 void SetTrustAnchorId(TrustAnchorIdT&& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = std::forward<TrustAnchorIdT>(value); }
59 template<typename TrustAnchorIdT = Aws::String>
60 PutNotificationSettingsRequest& WithTrustAnchorId(TrustAnchorIdT&& value) { SetTrustAnchorId(std::forward<TrustAnchorIdT>(value)); return *this;}
62 private:
63
64 Aws::Vector<NotificationSetting> m_notificationSettings;
65 bool m_notificationSettingsHasBeenSet = false;
66
67 Aws::String m_trustAnchorId;
68 bool m_trustAnchorIdHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace RolesAnywhere
73} // 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