AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateTokenRequest.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 CreateTokenRequest() = 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 "CreateToken"; }
32
33 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
44 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
45 template<typename LicenseArnT = Aws::String>
46 void SetLicenseArn(LicenseArnT&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::forward<LicenseArnT>(value); }
47 template<typename LicenseArnT = Aws::String>
48 CreateTokenRequest& WithLicenseArn(LicenseArnT&& value) { SetLicenseArn(std::forward<LicenseArnT>(value)); return *this;}
50
52
56 inline const Aws::Vector<Aws::String>& GetRoleArns() const { return m_roleArns; }
57 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
58 template<typename RoleArnsT = Aws::Vector<Aws::String>>
59 void SetRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::forward<RoleArnsT>(value); }
60 template<typename RoleArnsT = Aws::Vector<Aws::String>>
61 CreateTokenRequest& WithRoleArns(RoleArnsT&& value) { SetRoleArns(std::forward<RoleArnsT>(value)); return *this;}
62 template<typename RoleArnsT = Aws::String>
63 CreateTokenRequest& AddRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet = true; m_roleArns.emplace_back(std::forward<RoleArnsT>(value)); return *this; }
65
67
71 inline int GetExpirationInDays() const { return m_expirationInDays; }
72 inline bool ExpirationInDaysHasBeenSet() const { return m_expirationInDaysHasBeenSet; }
73 inline void SetExpirationInDays(int value) { m_expirationInDaysHasBeenSet = true; m_expirationInDays = value; }
74 inline CreateTokenRequest& WithExpirationInDays(int value) { SetExpirationInDays(value); return *this;}
76
78
82 inline const Aws::Vector<Aws::String>& GetTokenProperties() const { return m_tokenProperties; }
83 inline bool TokenPropertiesHasBeenSet() const { return m_tokenPropertiesHasBeenSet; }
84 template<typename TokenPropertiesT = Aws::Vector<Aws::String>>
85 void SetTokenProperties(TokenPropertiesT&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = std::forward<TokenPropertiesT>(value); }
86 template<typename TokenPropertiesT = Aws::Vector<Aws::String>>
87 CreateTokenRequest& WithTokenProperties(TokenPropertiesT&& value) { SetTokenProperties(std::forward<TokenPropertiesT>(value)); return *this;}
88 template<typename TokenPropertiesT = Aws::String>
89 CreateTokenRequest& AddTokenProperties(TokenPropertiesT&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.emplace_back(std::forward<TokenPropertiesT>(value)); return *this; }
91
93
96 inline const Aws::String& GetClientToken() const { return m_clientToken; }
97 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
98 template<typename ClientTokenT = Aws::String>
99 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
100 template<typename ClientTokenT = Aws::String>
101 CreateTokenRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
103 private:
104
105 Aws::String m_licenseArn;
106 bool m_licenseArnHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_roleArns;
109 bool m_roleArnsHasBeenSet = false;
110
111 int m_expirationInDays{0};
112 bool m_expirationInDaysHasBeenSet = false;
113
114 Aws::Vector<Aws::String> m_tokenProperties;
115 bool m_tokenPropertiesHasBeenSet = false;
116
117 Aws::String m_clientToken;
118 bool m_clientTokenHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace LicenseManager
123} // namespace Aws
CreateTokenRequest & WithLicenseArn(LicenseArnT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateTokenRequest & WithRoleArns(RoleArnsT &&value)
const Aws::Vector< Aws::String > & GetTokenProperties() const
void SetTokenProperties(TokenPropertiesT &&value)
CreateTokenRequest & WithTokenProperties(TokenPropertiesT &&value)
CreateTokenRequest & WithExpirationInDays(int value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetRoleArns() const
CreateTokenRequest & WithClientToken(ClientTokenT &&value)
CreateTokenRequest & AddRoleArns(RoleArnsT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTokenRequest & AddTokenProperties(TokenPropertiesT &&value)
AWS_LICENSEMANAGER_API CreateTokenRequest()=default
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