AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; }
46 inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); }
47 inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); }
48 inline CreateTokenRequest& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
49 inline CreateTokenRequest& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
50 inline CreateTokenRequest& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
52
54
58 inline const Aws::Vector<Aws::String>& GetRoleArns() const{ return m_roleArns; }
59 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
60 inline void SetRoleArns(const Aws::Vector<Aws::String>& value) { m_roleArnsHasBeenSet = true; m_roleArns = value; }
61 inline void SetRoleArns(Aws::Vector<Aws::String>&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::move(value); }
62 inline CreateTokenRequest& WithRoleArns(const Aws::Vector<Aws::String>& value) { SetRoleArns(value); return *this;}
63 inline CreateTokenRequest& WithRoleArns(Aws::Vector<Aws::String>&& value) { SetRoleArns(std::move(value)); return *this;}
64 inline CreateTokenRequest& AddRoleArns(const Aws::String& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
65 inline CreateTokenRequest& AddRoleArns(Aws::String&& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(std::move(value)); return *this; }
66 inline CreateTokenRequest& AddRoleArns(const char* value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
68
70
74 inline int GetExpirationInDays() const{ return m_expirationInDays; }
75 inline bool ExpirationInDaysHasBeenSet() const { return m_expirationInDaysHasBeenSet; }
76 inline void SetExpirationInDays(int value) { m_expirationInDaysHasBeenSet = true; m_expirationInDays = value; }
77 inline CreateTokenRequest& WithExpirationInDays(int value) { SetExpirationInDays(value); return *this;}
79
81
85 inline const Aws::Vector<Aws::String>& GetTokenProperties() const{ return m_tokenProperties; }
86 inline bool TokenPropertiesHasBeenSet() const { return m_tokenPropertiesHasBeenSet; }
87 inline void SetTokenProperties(const Aws::Vector<Aws::String>& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = value; }
88 inline void SetTokenProperties(Aws::Vector<Aws::String>&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = std::move(value); }
90 inline CreateTokenRequest& WithTokenProperties(Aws::Vector<Aws::String>&& value) { SetTokenProperties(std::move(value)); return *this;}
91 inline CreateTokenRequest& AddTokenProperties(const Aws::String& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; }
92 inline CreateTokenRequest& AddTokenProperties(Aws::String&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(std::move(value)); return *this; }
93 inline CreateTokenRequest& AddTokenProperties(const char* value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; }
95
97
100 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
101 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
102 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
103 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
104 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
105 inline CreateTokenRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
106 inline CreateTokenRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
107 inline CreateTokenRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
109 private:
110
111 Aws::String m_licenseArn;
112 bool m_licenseArnHasBeenSet = false;
113
114 Aws::Vector<Aws::String> m_roleArns;
115 bool m_roleArnsHasBeenSet = false;
116
117 int m_expirationInDays;
118 bool m_expirationInDaysHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_tokenProperties;
121 bool m_tokenPropertiesHasBeenSet = false;
122
123 Aws::String m_clientToken;
124 bool m_clientTokenHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace LicenseManager
129} // namespace Aws
CreateTokenRequest & WithClientToken(const Aws::String &value)
CreateTokenRequest & WithRoleArns(Aws::Vector< Aws::String > &&value)
void SetTokenProperties(const Aws::Vector< Aws::String > &value)
CreateTokenRequest & WithLicenseArn(Aws::String &&value)
CreateTokenRequest & WithRoleArns(const Aws::Vector< Aws::String > &value)
CreateTokenRequest & WithLicenseArn(const Aws::String &value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateTokenRequest & AddRoleArns(const char *value)
const Aws::Vector< Aws::String > & GetTokenProperties() const
CreateTokenRequest & AddTokenProperties(Aws::String &&value)
CreateTokenRequest & WithExpirationInDays(int value)
virtual const char * GetServiceRequestName() const override
CreateTokenRequest & AddRoleArns(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRoleArns() const
CreateTokenRequest & WithClientToken(Aws::String &&value)
CreateTokenRequest & AddRoleArns(Aws::String &&value)
CreateTokenRequest & WithTokenProperties(const Aws::Vector< Aws::String > &value)
CreateTokenRequest & WithClientToken(const char *value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTokenRequest & AddTokenProperties(const char *value)
CreateTokenRequest & WithTokenProperties(Aws::Vector< Aws::String > &&value)
void SetRoleArns(const Aws::Vector< Aws::String > &value)
void SetTokenProperties(Aws::Vector< Aws::String > &&value)
void SetRoleArns(Aws::Vector< Aws::String > &&value)
CreateTokenRequest & AddTokenProperties(const Aws::String &value)
CreateTokenRequest & WithLicenseArn(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