AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSessionTokenRequest.h
1
6#pragma once
7#include <aws/sts/STS_EXPORTS.h>
8#include <aws/sts/STSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace STS
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetSessionToken"; }
31
32 AWS_STS_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_STS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
48 inline int GetDurationSeconds() const{ return m_durationSeconds; }
49 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
50 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
51 inline GetSessionTokenRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
53
55
68 inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; }
69 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
70 inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
71 inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::move(value); }
72 inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); }
73 inline GetSessionTokenRequest& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;}
74 inline GetSessionTokenRequest& WithSerialNumber(Aws::String&& value) { SetSerialNumber(std::move(value)); return *this;}
75 inline GetSessionTokenRequest& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;}
77
79
88 inline const Aws::String& GetTokenCode() const{ return m_tokenCode; }
89 inline bool TokenCodeHasBeenSet() const { return m_tokenCodeHasBeenSet; }
90 inline void SetTokenCode(const Aws::String& value) { m_tokenCodeHasBeenSet = true; m_tokenCode = value; }
91 inline void SetTokenCode(Aws::String&& value) { m_tokenCodeHasBeenSet = true; m_tokenCode = std::move(value); }
92 inline void SetTokenCode(const char* value) { m_tokenCodeHasBeenSet = true; m_tokenCode.assign(value); }
93 inline GetSessionTokenRequest& WithTokenCode(const Aws::String& value) { SetTokenCode(value); return *this;}
94 inline GetSessionTokenRequest& WithTokenCode(Aws::String&& value) { SetTokenCode(std::move(value)); return *this;}
95 inline GetSessionTokenRequest& WithTokenCode(const char* value) { SetTokenCode(value); return *this;}
97 private:
98
99 int m_durationSeconds;
100 bool m_durationSecondsHasBeenSet = false;
101
102 Aws::String m_serialNumber;
103 bool m_serialNumberHasBeenSet = false;
104
105 Aws::String m_tokenCode;
106 bool m_tokenCodeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace STS
111} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetSessionTokenRequest & WithTokenCode(const char *value)
GetSessionTokenRequest & WithTokenCode(const Aws::String &value)
AWS_STS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSerialNumber(const Aws::String &value)
GetSessionTokenRequest & WithDurationSeconds(int value)
GetSessionTokenRequest & WithTokenCode(Aws::String &&value)
GetSessionTokenRequest & WithSerialNumber(Aws::String &&value)
void SetTokenCode(const Aws::String &value)
AWS_STS_API Aws::String SerializePayload() const override
GetSessionTokenRequest & WithSerialNumber(const char *value)
GetSessionTokenRequest & WithSerialNumber(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String