AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
CreateTrustedTokenIssuerRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sso-admin/SSOAdminRequest.h>
11#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
12#include <aws/sso-admin/model/Tag.h>
13#include <aws/sso-admin/model/TrustedTokenIssuerConfiguration.h>
14#include <aws/sso-admin/model/TrustedTokenIssuerType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SSOAdmin {
20namespace Model {
21
25 public:
26 AWS_SSOADMIN_API CreateTrustedTokenIssuerRequest() = 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 "CreateTrustedTokenIssuer"; }
33
34 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
44 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
45 template <typename InstanceArnT = Aws::String>
46 void SetInstanceArn(InstanceArnT&& value) {
47 m_instanceArnHasBeenSet = true;
48 m_instanceArn = std::forward<InstanceArnT>(value);
49 }
50 template <typename InstanceArnT = Aws::String>
52 SetInstanceArn(std::forward<InstanceArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline TrustedTokenIssuerType GetTrustedTokenIssuerType() const { return m_trustedTokenIssuerType; }
80 inline bool TrustedTokenIssuerTypeHasBeenSet() const { return m_trustedTokenIssuerTypeHasBeenSet; }
82 m_trustedTokenIssuerTypeHasBeenSet = true;
83 m_trustedTokenIssuerType = value;
84 }
90
92
97 inline const TrustedTokenIssuerConfiguration& GetTrustedTokenIssuerConfiguration() const { return m_trustedTokenIssuerConfiguration; }
98 inline bool TrustedTokenIssuerConfigurationHasBeenSet() const { return m_trustedTokenIssuerConfigurationHasBeenSet; }
99 template <typename TrustedTokenIssuerConfigurationT = TrustedTokenIssuerConfiguration>
100 void SetTrustedTokenIssuerConfiguration(TrustedTokenIssuerConfigurationT&& value) {
101 m_trustedTokenIssuerConfigurationHasBeenSet = true;
102 m_trustedTokenIssuerConfiguration = std::forward<TrustedTokenIssuerConfigurationT>(value);
103 }
104 template <typename TrustedTokenIssuerConfigurationT = TrustedTokenIssuerConfiguration>
105 CreateTrustedTokenIssuerRequest& WithTrustedTokenIssuerConfiguration(TrustedTokenIssuerConfigurationT&& value) {
106 SetTrustedTokenIssuerConfiguration(std::forward<TrustedTokenIssuerConfigurationT>(value));
107 return *this;
108 }
110
112
124 inline const Aws::String& GetClientToken() const { return m_clientToken; }
125 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
126 template <typename ClientTokenT = Aws::String>
127 void SetClientToken(ClientTokenT&& value) {
128 m_clientTokenHasBeenSet = true;
129 m_clientToken = std::forward<ClientTokenT>(value);
130 }
131 template <typename ClientTokenT = Aws::String>
133 SetClientToken(std::forward<ClientTokenT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template <typename TagsT = Aws::Vector<Tag>>
146 void SetTags(TagsT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags = std::forward<TagsT>(value);
149 }
150 template <typename TagsT = Aws::Vector<Tag>>
152 SetTags(std::forward<TagsT>(value));
153 return *this;
154 }
155 template <typename TagsT = Tag>
157 m_tagsHasBeenSet = true;
158 m_tags.emplace_back(std::forward<TagsT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_instanceArn;
164
165 Aws::String m_name;
166
168
169 TrustedTokenIssuerConfiguration m_trustedTokenIssuerConfiguration;
170
172
173 Aws::Vector<Tag> m_tags;
174 bool m_instanceArnHasBeenSet = false;
175 bool m_nameHasBeenSet = false;
176 bool m_trustedTokenIssuerTypeHasBeenSet = false;
177 bool m_trustedTokenIssuerConfigurationHasBeenSet = false;
178 bool m_clientTokenHasBeenSet = true;
179 bool m_tagsHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace SSOAdmin
184} // namespace Aws
CreateTrustedTokenIssuerRequest & WithName(NameT &&value)
AWS_SSOADMIN_API CreateTrustedTokenIssuerRequest()=default
const TrustedTokenIssuerConfiguration & GetTrustedTokenIssuerConfiguration() const
CreateTrustedTokenIssuerRequest & WithTags(TagsT &&value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTrustedTokenIssuerConfiguration(TrustedTokenIssuerConfigurationT &&value)
CreateTrustedTokenIssuerRequest & WithTrustedTokenIssuerConfiguration(TrustedTokenIssuerConfigurationT &&value)
CreateTrustedTokenIssuerRequest & WithTrustedTokenIssuerType(TrustedTokenIssuerType value)
CreateTrustedTokenIssuerRequest & AddTags(TagsT &&value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
CreateTrustedTokenIssuerRequest & WithClientToken(ClientTokenT &&value)
CreateTrustedTokenIssuerRequest & WithInstanceArn(InstanceArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector