AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline CreateTrustAnchorRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline CreateTrustAnchorRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline CreateTrustAnchorRequest& WithName(const char* value) { SetName(value); return *this;}
62
64
67 inline const Aws::Vector<NotificationSetting>& GetNotificationSettings() const{ return m_notificationSettings; }
68 inline bool NotificationSettingsHasBeenSet() const { return m_notificationSettingsHasBeenSet; }
69 inline void SetNotificationSettings(const Aws::Vector<NotificationSetting>& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = value; }
70 inline void SetNotificationSettings(Aws::Vector<NotificationSetting>&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = std::move(value); }
73 inline CreateTrustAnchorRequest& AddNotificationSettings(const NotificationSetting& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.push_back(value); return *this; }
74 inline CreateTrustAnchorRequest& AddNotificationSettings(NotificationSetting&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.push_back(std::move(value)); return *this; }
76
78
81 inline const Source& GetSource() const{ return m_source; }
82 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
83 inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
84 inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
85 inline CreateTrustAnchorRequest& WithSource(const Source& value) { SetSource(value); return *this;}
86 inline CreateTrustAnchorRequest& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
88
90
93 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
96 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
97 inline CreateTrustAnchorRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
98 inline CreateTrustAnchorRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
99 inline CreateTrustAnchorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
100 inline CreateTrustAnchorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
102 private:
103
104 bool m_enabled;
105 bool m_enabledHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 Aws::Vector<NotificationSetting> m_notificationSettings;
111 bool m_notificationSettingsHasBeenSet = false;
112
113 Source m_source;
114 bool m_sourceHasBeenSet = false;
115
116 Aws::Vector<Tag> m_tags;
117 bool m_tagsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace RolesAnywhere
122} // namespace Aws
CreateTrustAnchorRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTrustAnchorRequest & WithSource(Source &&value)
CreateTrustAnchorRequest & WithNotificationSettings(const Aws::Vector< NotificationSetting > &value)
CreateTrustAnchorRequest & WithName(const char *value)
CreateTrustAnchorRequest & AddTags(const Tag &value)
CreateTrustAnchorRequest & WithName(Aws::String &&value)
void SetNotificationSettings(Aws::Vector< NotificationSetting > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< NotificationSetting > & GetNotificationSettings() const
CreateTrustAnchorRequest & AddNotificationSettings(NotificationSetting &&value)
CreateTrustAnchorRequest & WithNotificationSettings(Aws::Vector< NotificationSetting > &&value)
CreateTrustAnchorRequest & AddNotificationSettings(const NotificationSetting &value)
void SetNotificationSettings(const Aws::Vector< NotificationSetting > &value)
CreateTrustAnchorRequest & WithTags(Aws::Vector< Tag > &&value)
CreateTrustAnchorRequest & WithSource(const Source &value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
CreateTrustAnchorRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector