AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
GetAccessTokenRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManagerRequest.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace LicenseManager {
16namespace Model {
17
21 public:
22 AWS_LICENSEMANAGER_API GetAccessTokenRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetAccessToken"; }
29
30 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
31
32 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetToken() const { return m_token; }
39 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
40 template <typename TokenT = Aws::String>
41 void SetToken(TokenT&& value) {
42 m_tokenHasBeenSet = true;
43 m_token = std::forward<TokenT>(value);
44 }
45 template <typename TokenT = Aws::String>
47 SetToken(std::forward<TokenT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetTokenProperties() const { return m_tokenProperties; }
57 inline bool TokenPropertiesHasBeenSet() const { return m_tokenPropertiesHasBeenSet; }
58 template <typename TokenPropertiesT = Aws::Vector<Aws::String>>
59 void SetTokenProperties(TokenPropertiesT&& value) {
60 m_tokenPropertiesHasBeenSet = true;
61 m_tokenProperties = std::forward<TokenPropertiesT>(value);
62 }
63 template <typename TokenPropertiesT = Aws::Vector<Aws::String>>
64 GetAccessTokenRequest& WithTokenProperties(TokenPropertiesT&& value) {
65 SetTokenProperties(std::forward<TokenPropertiesT>(value));
66 return *this;
67 }
68 template <typename TokenPropertiesT = Aws::String>
69 GetAccessTokenRequest& AddTokenProperties(TokenPropertiesT&& value) {
70 m_tokenPropertiesHasBeenSet = true;
71 m_tokenProperties.emplace_back(std::forward<TokenPropertiesT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_token;
77 bool m_tokenHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_tokenProperties;
80 bool m_tokenPropertiesHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace LicenseManager
85} // namespace Aws
AWS_LICENSEMANAGER_API GetAccessTokenRequest()=default
GetAccessTokenRequest & AddTokenProperties(TokenPropertiesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetTokenProperties() const
GetAccessTokenRequest & WithToken(TokenT &&value)
GetAccessTokenRequest & WithTokenProperties(TokenPropertiesT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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