AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNotificationSettings(const Aws::Vector<NotificationSetting>& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = value; }
44 inline void SetNotificationSettings(Aws::Vector<NotificationSetting>&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = std::move(value); }
47 inline PutNotificationSettingsRequest& AddNotificationSettings(const NotificationSetting& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.push_back(value); return *this; }
48 inline PutNotificationSettingsRequest& AddNotificationSettings(NotificationSetting&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::String& GetTrustAnchorId() const{ return m_trustAnchorId; }
56 inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; }
57 inline void SetTrustAnchorId(const Aws::String& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = value; }
58 inline void SetTrustAnchorId(Aws::String&& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = std::move(value); }
59 inline void SetTrustAnchorId(const char* value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId.assign(value); }
61 inline PutNotificationSettingsRequest& WithTrustAnchorId(Aws::String&& value) { SetTrustAnchorId(std::move(value)); return *this;}
62 inline PutNotificationSettingsRequest& WithTrustAnchorId(const char* value) { SetTrustAnchorId(value); return *this;}
64 private:
65
66 Aws::Vector<NotificationSetting> m_notificationSettings;
67 bool m_notificationSettingsHasBeenSet = false;
68
69 Aws::String m_trustAnchorId;
70 bool m_trustAnchorIdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace RolesAnywhere
75} // namespace Aws
PutNotificationSettingsRequest & WithTrustAnchorId(const Aws::String &value)
PutNotificationSettingsRequest & WithTrustAnchorId(Aws::String &&value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
PutNotificationSettingsRequest & WithTrustAnchorId(const char *value)
PutNotificationSettingsRequest & AddNotificationSettings(const NotificationSetting &value)
void SetNotificationSettings(Aws::Vector< NotificationSetting > &&value)
PutNotificationSettingsRequest & WithNotificationSettings(Aws::Vector< NotificationSetting > &&value)
PutNotificationSettingsRequest & WithNotificationSettings(const Aws::Vector< NotificationSetting > &value)
const Aws::Vector< NotificationSetting > & GetNotificationSettings() const
PutNotificationSettingsRequest & AddNotificationSettings(NotificationSetting &&value)
void SetNotificationSettings(const Aws::Vector< NotificationSetting > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector