AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetAccessTokenRequest.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/LicenseManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace LicenseManager
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LICENSEMANAGER_API GetAccessTokenRequest();
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 "GetAccessToken"; }
32
33 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetToken() const{ return m_token; }
43 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
44 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
45 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
46 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
47 inline GetAccessTokenRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
48 inline GetAccessTokenRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
49 inline GetAccessTokenRequest& WithToken(const char* value) { SetToken(value); return *this;}
51
53
56 inline const Aws::Vector<Aws::String>& GetTokenProperties() const{ return m_tokenProperties; }
57 inline bool TokenPropertiesHasBeenSet() const { return m_tokenPropertiesHasBeenSet; }
58 inline void SetTokenProperties(const Aws::Vector<Aws::String>& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = value; }
59 inline void SetTokenProperties(Aws::Vector<Aws::String>&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = std::move(value); }
61 inline GetAccessTokenRequest& WithTokenProperties(Aws::Vector<Aws::String>&& value) { SetTokenProperties(std::move(value)); return *this;}
62 inline GetAccessTokenRequest& AddTokenProperties(const Aws::String& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; }
63 inline GetAccessTokenRequest& AddTokenProperties(Aws::String&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(std::move(value)); return *this; }
64 inline GetAccessTokenRequest& AddTokenProperties(const char* value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; }
66 private:
67
68 Aws::String m_token;
69 bool m_tokenHasBeenSet = false;
70
71 Aws::Vector<Aws::String> m_tokenProperties;
72 bool m_tokenPropertiesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace LicenseManager
77} // namespace Aws
void SetTokenProperties(const Aws::Vector< Aws::String > &value)
GetAccessTokenRequest & AddTokenProperties(const Aws::String &value)
GetAccessTokenRequest & WithToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetAccessTokenRequest & AddTokenProperties(Aws::String &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetTokenProperties() const
GetAccessTokenRequest & AddTokenProperties(const char *value)
GetAccessTokenRequest & WithToken(Aws::String &&value)
GetAccessTokenRequest & WithTokenProperties(Aws::Vector< Aws::String > &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetAccessTokenRequest & WithTokenProperties(const Aws::Vector< Aws::String > &value)
void SetTokenProperties(Aws::Vector< Aws::String > &&value)
GetAccessTokenRequest & WithToken(const char *value)
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