AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateTrustAnchorRequest.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#include <aws/rolesanywhere/model/Source.h>
13#include <aws/rolesanywhere/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace RolesAnywhere {
19namespace Model {
20
24 public:
25 AWS_ROLESANYWHERE_API CreateTrustAnchorRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateTrustAnchor"; }
32
33 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Source& GetSource() const { return m_source; }
58 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
59 template <typename SourceT = Source>
60 void SetSource(SourceT&& value) {
61 m_sourceHasBeenSet = true;
62 m_source = std::forward<SourceT>(value);
63 }
64 template <typename SourceT = Source>
66 SetSource(std::forward<SourceT>(value));
67 return *this;
68 }
70
72
75 inline bool GetEnabled() const { return m_enabled; }
76 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
77 inline void SetEnabled(bool value) {
78 m_enabledHasBeenSet = true;
79 m_enabled = value;
80 }
82 SetEnabled(value);
83 return *this;
84 }
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) {
95 m_tagsHasBeenSet = true;
96 m_tags = std::forward<TagsT>(value);
97 }
98 template <typename TagsT = Aws::Vector<Tag>>
100 SetTags(std::forward<TagsT>(value));
101 return *this;
102 }
103 template <typename TagsT = Tag>
105 m_tagsHasBeenSet = true;
106 m_tags.emplace_back(std::forward<TagsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<NotificationSetting>& GetNotificationSettings() const { return m_notificationSettings; }
116 inline bool NotificationSettingsHasBeenSet() const { return m_notificationSettingsHasBeenSet; }
117 template <typename NotificationSettingsT = Aws::Vector<NotificationSetting>>
118 void SetNotificationSettings(NotificationSettingsT&& value) {
119 m_notificationSettingsHasBeenSet = true;
120 m_notificationSettings = std::forward<NotificationSettingsT>(value);
121 }
122 template <typename NotificationSettingsT = Aws::Vector<NotificationSetting>>
123 CreateTrustAnchorRequest& WithNotificationSettings(NotificationSettingsT&& value) {
124 SetNotificationSettings(std::forward<NotificationSettingsT>(value));
125 return *this;
126 }
127 template <typename NotificationSettingsT = NotificationSetting>
128 CreateTrustAnchorRequest& AddNotificationSettings(NotificationSettingsT&& value) {
129 m_notificationSettingsHasBeenSet = true;
130 m_notificationSettings.emplace_back(std::forward<NotificationSettingsT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_name;
136
137 Source m_source;
138
139 bool m_enabled{false};
140
141 Aws::Vector<Tag> m_tags;
142
143 Aws::Vector<NotificationSetting> m_notificationSettings;
144 bool m_nameHasBeenSet = false;
145 bool m_sourceHasBeenSet = false;
146 bool m_enabledHasBeenSet = false;
147 bool m_tagsHasBeenSet = false;
148 bool m_notificationSettingsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace RolesAnywhere
153} // 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)
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