AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTrustAnchorRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rolesanywhere/model/Source.h>
12#include <aws/rolesanywhere/model/NotificationSetting.h>
13#include <aws/rolesanywhere/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace RolesAnywhere
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_ROLESANYWHERE_API CreateTrustAnchorRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateTrustAnchor"; }
35
36 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
37
38
40
43 inline bool GetEnabled() const { return m_enabled; }
44 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
45 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
46 inline CreateTrustAnchorRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 CreateTrustAnchorRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::Vector<NotificationSetting>& GetNotificationSettings() const { return m_notificationSettings; }
66 inline bool NotificationSettingsHasBeenSet() const { return m_notificationSettingsHasBeenSet; }
67 template<typename NotificationSettingsT = Aws::Vector<NotificationSetting>>
68 void SetNotificationSettings(NotificationSettingsT&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = std::forward<NotificationSettingsT>(value); }
69 template<typename NotificationSettingsT = Aws::Vector<NotificationSetting>>
70 CreateTrustAnchorRequest& WithNotificationSettings(NotificationSettingsT&& value) { SetNotificationSettings(std::forward<NotificationSettingsT>(value)); return *this;}
71 template<typename NotificationSettingsT = NotificationSetting>
72 CreateTrustAnchorRequest& AddNotificationSettings(NotificationSettingsT&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.emplace_back(std::forward<NotificationSettingsT>(value)); return *this; }
74
76
79 inline const Source& GetSource() const { return m_source; }
80 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
81 template<typename SourceT = Source>
82 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
83 template<typename SourceT = Source>
84 CreateTrustAnchorRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Vector<Tag>>
96 CreateTrustAnchorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsT = Tag>
98 CreateTrustAnchorRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
100 private:
101
102 bool m_enabled{false};
103 bool m_enabledHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
108 Aws::Vector<NotificationSetting> m_notificationSettings;
109 bool m_notificationSettingsHasBeenSet = false;
110
111 Source m_source;
112 bool m_sourceHasBeenSet = false;
113
114 Aws::Vector<Tag> m_tags;
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace RolesAnywhere
120} // namespace Aws
AWS_ROLESANYWHERE_API CreateTrustAnchorRequest()=default
CreateTrustAnchorRequest & AddTags(TagsT &&value)
CreateTrustAnchorRequest & AddNotificationSettings(NotificationSettingsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< NotificationSetting > & GetNotificationSettings() const
CreateTrustAnchorRequest & WithSource(SourceT &&value)
void SetNotificationSettings(NotificationSettingsT &&value)
CreateTrustAnchorRequest & WithTags(TagsT &&value)
CreateTrustAnchorRequest & WithName(NameT &&value)
CreateTrustAnchorRequest & WithNotificationSettings(NotificationSettingsT &&value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector