AWS SDK for C++

AWS SDK for C++ Version 1.11.810

Loading...
Searching...
No Matches
GetIdentityContextRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/UserIdentifier.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QuickSight {
17namespace Model {
18
26 public:
27 AWS_QUICKSIGHT_API GetIdentityContextRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetIdentityContext"; }
34
35 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
36
38
43 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
44 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
45 template <typename AwsAccountIdT = Aws::String>
46 void SetAwsAccountId(AwsAccountIdT&& value) {
47 m_awsAccountIdHasBeenSet = true;
48 m_awsAccountId = std::forward<AwsAccountIdT>(value);
49 }
50 template <typename AwsAccountIdT = Aws::String>
52 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
53 return *this;
54 }
56
58
61 inline const UserIdentifier& GetUserIdentifier() const { return m_userIdentifier; }
62 inline bool UserIdentifierHasBeenSet() const { return m_userIdentifierHasBeenSet; }
63 template <typename UserIdentifierT = UserIdentifier>
64 void SetUserIdentifier(UserIdentifierT&& value) {
65 m_userIdentifierHasBeenSet = true;
66 m_userIdentifier = std::forward<UserIdentifierT>(value);
67 }
68 template <typename UserIdentifierT = UserIdentifier>
70 SetUserIdentifier(std::forward<UserIdentifierT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetNamespace() const { return m_namespace; }
82 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
83 template <typename NamespaceT = Aws::String>
84 void SetNamespace(NamespaceT&& value) {
85 m_namespaceHasBeenSet = true;
86 m_namespace = std::forward<NamespaceT>(value);
87 }
88 template <typename NamespaceT = Aws::String>
90 SetNamespace(std::forward<NamespaceT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetSessionExpiresAt() const { return m_sessionExpiresAt; }
100 inline bool SessionExpiresAtHasBeenSet() const { return m_sessionExpiresAtHasBeenSet; }
101 template <typename SessionExpiresAtT = Aws::Utils::DateTime>
102 void SetSessionExpiresAt(SessionExpiresAtT&& value) {
103 m_sessionExpiresAtHasBeenSet = true;
104 m_sessionExpiresAt = std::forward<SessionExpiresAtT>(value);
105 }
106 template <typename SessionExpiresAtT = Aws::Utils::DateTime>
108 SetSessionExpiresAt(std::forward<SessionExpiresAtT>(value));
109 return *this;
110 }
112
114
126 inline const Aws::String& GetContextRegion() const { return m_contextRegion; }
127 inline bool ContextRegionHasBeenSet() const { return m_contextRegionHasBeenSet; }
128 template <typename ContextRegionT = Aws::String>
129 void SetContextRegion(ContextRegionT&& value) {
130 m_contextRegionHasBeenSet = true;
131 m_contextRegion = std::forward<ContextRegionT>(value);
132 }
133 template <typename ContextRegionT = Aws::String>
135 SetContextRegion(std::forward<ContextRegionT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_awsAccountId;
141
142 UserIdentifier m_userIdentifier;
143
144 Aws::String m_namespace;
145
146 Aws::Utils::DateTime m_sessionExpiresAt{};
147
148 Aws::String m_contextRegion;
149 bool m_awsAccountIdHasBeenSet = false;
150 bool m_userIdentifierHasBeenSet = false;
151 bool m_namespaceHasBeenSet = false;
152 bool m_sessionExpiresAtHasBeenSet = false;
153 bool m_contextRegionHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace QuickSight
158} // namespace Aws
const Aws::Utils::DateTime & GetSessionExpiresAt() const
GetIdentityContextRequest & WithUserIdentifier(UserIdentifierT &&value)
GetIdentityContextRequest & WithAwsAccountId(AwsAccountIdT &&value)
GetIdentityContextRequest & WithSessionExpiresAt(SessionExpiresAtT &&value)
GetIdentityContextRequest & WithNamespace(NamespaceT &&value)
AWS_QUICKSIGHT_API GetIdentityContextRequest()=default
GetIdentityContextRequest & WithContextRegion(ContextRegionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String