AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
GetRoleCredentialsRequest.h
1
6#pragma once
7#include <aws/account-access-runtime/AccountAccessRuntimeRequest.h>
8#include <aws/account-access-runtime/AccountAccessRuntime_EXPORTS.h>
9#include <aws/account-access-runtime/model/AccessType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace AccountAccessRuntime {
19namespace Model {
20
24 public:
25 AWS_ACCOUNTACCESSRUNTIME_API GetRoleCredentialsRequest() = 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 "GetRoleCredentials"; }
32
33 AWS_ACCOUNTACCESSRUNTIME_API Aws::String SerializePayload() const override;
34
35 AWS_ACCOUNTACCESSRUNTIME_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
43 inline const Aws::String& GetTenantId() const { return m_tenantId; }
44 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
45 template <typename TenantIdT = Aws::String>
46 void SetTenantId(TenantIdT&& value) {
47 m_tenantIdHasBeenSet = true;
48 m_tenantId = std::forward<TenantIdT>(value);
49 }
50 template <typename TenantIdT = Aws::String>
52 SetTenantId(std::forward<TenantIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
63 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
64 template <typename RoleArnT = Aws::String>
65 void SetRoleArn(RoleArnT&& value) {
66 m_roleArnHasBeenSet = true;
67 m_roleArn = std::forward<RoleArnT>(value);
68 }
69 template <typename RoleArnT = Aws::String>
71 SetRoleArn(std::forward<RoleArnT>(value));
72 return *this;
73 }
75
77
82 inline AccessType GetAccessType() const { return m_accessType; }
83 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
84 inline void SetAccessType(AccessType value) {
85 m_accessTypeHasBeenSet = true;
86 m_accessType = value;
87 }
89 SetAccessType(value);
90 return *this;
91 }
93
95
101 inline const Aws::String& GetSessionName() const { return m_sessionName; }
102 inline bool SessionNameHasBeenSet() const { return m_sessionNameHasBeenSet; }
103 template <typename SessionNameT = Aws::String>
104 void SetSessionName(SessionNameT&& value) {
105 m_sessionNameHasBeenSet = true;
106 m_sessionName = std::forward<SessionNameT>(value);
107 }
108 template <typename SessionNameT = Aws::String>
110 SetSessionName(std::forward<SessionNameT>(value));
111 return *this;
112 }
114
116
122 inline int GetSessionDuration() const { return m_sessionDuration; }
123 inline bool SessionDurationHasBeenSet() const { return m_sessionDurationHasBeenSet; }
124 inline void SetSessionDuration(int value) {
125 m_sessionDurationHasBeenSet = true;
126 m_sessionDuration = value;
127 }
129 SetSessionDuration(value);
130 return *this;
131 }
133 private:
134 Aws::String m_tenantId;
135
136 Aws::String m_roleArn;
137
138 AccessType m_accessType{AccessType::NOT_SET};
139
140 Aws::String m_sessionName;
141
142 int m_sessionDuration{0};
143 bool m_tenantIdHasBeenSet = false;
144 bool m_roleArnHasBeenSet = false;
145 bool m_accessTypeHasBeenSet = false;
146 bool m_sessionNameHasBeenSet = false;
147 bool m_sessionDurationHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace AccountAccessRuntime
152} // namespace Aws
GetRoleCredentialsRequest & WithAccessType(AccessType value)
AWS_ACCOUNTACCESSRUNTIME_API Aws::String SerializePayload() const override
GetRoleCredentialsRequest & WithTenantId(TenantIdT &&value)
GetRoleCredentialsRequest & WithSessionName(SessionNameT &&value)
AWS_ACCOUNTACCESSRUNTIME_API GetRoleCredentialsRequest()=default
AWS_ACCOUNTACCESSRUNTIME_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetRoleCredentialsRequest & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String