AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TokenData.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LicenseManager
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LICENSEMANAGER_API TokenData();
36 AWS_LICENSEMANAGER_API TokenData(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LICENSEMANAGER_API TokenData& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetTokenId() const{ return m_tokenId; }
46 inline bool TokenIdHasBeenSet() const { return m_tokenIdHasBeenSet; }
47 inline void SetTokenId(const Aws::String& value) { m_tokenIdHasBeenSet = true; m_tokenId = value; }
48 inline void SetTokenId(Aws::String&& value) { m_tokenIdHasBeenSet = true; m_tokenId = std::move(value); }
49 inline void SetTokenId(const char* value) { m_tokenIdHasBeenSet = true; m_tokenId.assign(value); }
50 inline TokenData& WithTokenId(const Aws::String& value) { SetTokenId(value); return *this;}
51 inline TokenData& WithTokenId(Aws::String&& value) { SetTokenId(std::move(value)); return *this;}
52 inline TokenData& WithTokenId(const char* value) { SetTokenId(value); return *this;}
54
56
60 inline const Aws::String& GetTokenType() const{ return m_tokenType; }
61 inline bool TokenTypeHasBeenSet() const { return m_tokenTypeHasBeenSet; }
62 inline void SetTokenType(const Aws::String& value) { m_tokenTypeHasBeenSet = true; m_tokenType = value; }
63 inline void SetTokenType(Aws::String&& value) { m_tokenTypeHasBeenSet = true; m_tokenType = std::move(value); }
64 inline void SetTokenType(const char* value) { m_tokenTypeHasBeenSet = true; m_tokenType.assign(value); }
65 inline TokenData& WithTokenType(const Aws::String& value) { SetTokenType(value); return *this;}
66 inline TokenData& WithTokenType(Aws::String&& value) { SetTokenType(std::move(value)); return *this;}
67 inline TokenData& WithTokenType(const char* value) { SetTokenType(value); return *this;}
69
71
74 inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; }
75 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
76 inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; }
77 inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); }
78 inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); }
79 inline TokenData& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
80 inline TokenData& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
81 inline TokenData& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
83
85
88 inline const Aws::String& GetExpirationTime() const{ return m_expirationTime; }
89 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
90 inline void SetExpirationTime(const Aws::String& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
91 inline void SetExpirationTime(Aws::String&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
92 inline void SetExpirationTime(const char* value) { m_expirationTimeHasBeenSet = true; m_expirationTime.assign(value); }
93 inline TokenData& WithExpirationTime(const Aws::String& value) { SetExpirationTime(value); return *this;}
94 inline TokenData& WithExpirationTime(Aws::String&& value) { SetExpirationTime(std::move(value)); return *this;}
95 inline TokenData& WithExpirationTime(const char* value) { SetExpirationTime(value); return *this;}
97
99
102 inline const Aws::Vector<Aws::String>& GetTokenProperties() const{ return m_tokenProperties; }
103 inline bool TokenPropertiesHasBeenSet() const { return m_tokenPropertiesHasBeenSet; }
104 inline void SetTokenProperties(const Aws::Vector<Aws::String>& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = value; }
105 inline void SetTokenProperties(Aws::Vector<Aws::String>&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = std::move(value); }
106 inline TokenData& WithTokenProperties(const Aws::Vector<Aws::String>& value) { SetTokenProperties(value); return *this;}
107 inline TokenData& WithTokenProperties(Aws::Vector<Aws::String>&& value) { SetTokenProperties(std::move(value)); return *this;}
108 inline TokenData& AddTokenProperties(const Aws::String& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; }
109 inline TokenData& AddTokenProperties(Aws::String&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(std::move(value)); return *this; }
110 inline TokenData& AddTokenProperties(const char* value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; }
112
114
117 inline const Aws::Vector<Aws::String>& GetRoleArns() const{ return m_roleArns; }
118 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
119 inline void SetRoleArns(const Aws::Vector<Aws::String>& value) { m_roleArnsHasBeenSet = true; m_roleArns = value; }
120 inline void SetRoleArns(Aws::Vector<Aws::String>&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::move(value); }
121 inline TokenData& WithRoleArns(const Aws::Vector<Aws::String>& value) { SetRoleArns(value); return *this;}
122 inline TokenData& WithRoleArns(Aws::Vector<Aws::String>&& value) { SetRoleArns(std::move(value)); return *this;}
123 inline TokenData& AddRoleArns(const Aws::String& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
124 inline TokenData& AddRoleArns(Aws::String&& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(std::move(value)); return *this; }
125 inline TokenData& AddRoleArns(const char* value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; }
127
129
133 inline const Aws::String& GetStatus() const{ return m_status; }
134 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
136 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
137 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
138 inline TokenData& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
139 inline TokenData& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
140 inline TokenData& WithStatus(const char* value) { SetStatus(value); return *this;}
142 private:
143
144 Aws::String m_tokenId;
145 bool m_tokenIdHasBeenSet = false;
146
147 Aws::String m_tokenType;
148 bool m_tokenTypeHasBeenSet = false;
149
150 Aws::String m_licenseArn;
151 bool m_licenseArnHasBeenSet = false;
152
153 Aws::String m_expirationTime;
154 bool m_expirationTimeHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_tokenProperties;
157 bool m_tokenPropertiesHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_roleArns;
160 bool m_roleArnsHasBeenSet = false;
161
162 Aws::String m_status;
163 bool m_statusHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace LicenseManager
168} // namespace Aws
void SetTokenId(const Aws::String &value)
Definition TokenData.h:47
TokenData & WithExpirationTime(Aws::String &&value)
Definition TokenData.h:94
void SetExpirationTime(const Aws::String &value)
Definition TokenData.h:90
TokenData & WithTokenId(Aws::String &&value)
Definition TokenData.h:51
const Aws::String & GetExpirationTime() const
Definition TokenData.h:88
const Aws::String & GetTokenType() const
Definition TokenData.h:60
TokenData & WithExpirationTime(const char *value)
Definition TokenData.h:95
void SetStatus(Aws::String &&value)
Definition TokenData.h:136
void SetRoleArns(Aws::Vector< Aws::String > &&value)
Definition TokenData.h:120
TokenData & WithRoleArns(Aws::Vector< Aws::String > &&value)
Definition TokenData.h:122
TokenData & WithTokenId(const char *value)
Definition TokenData.h:52
AWS_LICENSEMANAGER_API TokenData()
TokenData & WithTokenType(const Aws::String &value)
Definition TokenData.h:65
TokenData & AddTokenProperties(const char *value)
Definition TokenData.h:110
const Aws::String & GetTokenId() const
Definition TokenData.h:45
TokenData & WithLicenseArn(const Aws::String &value)
Definition TokenData.h:79
AWS_LICENSEMANAGER_API TokenData(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const Aws::String &value)
Definition TokenData.h:135
void SetTokenProperties(Aws::Vector< Aws::String > &&value)
Definition TokenData.h:105
TokenData & WithTokenId(const Aws::String &value)
Definition TokenData.h:50
AWS_LICENSEMANAGER_API TokenData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetTokenProperties() const
Definition TokenData.h:102
TokenData & WithLicenseArn(Aws::String &&value)
Definition TokenData.h:80
TokenData & WithTokenProperties(Aws::Vector< Aws::String > &&value)
Definition TokenData.h:107
const Aws::Vector< Aws::String > & GetRoleArns() const
Definition TokenData.h:117
void SetTokenType(Aws::String &&value)
Definition TokenData.h:63
TokenData & WithExpirationTime(const Aws::String &value)
Definition TokenData.h:93
void SetLicenseArn(Aws::String &&value)
Definition TokenData.h:77
void SetExpirationTime(const char *value)
Definition TokenData.h:92
void SetTokenId(const char *value)
Definition TokenData.h:49
void SetRoleArns(const Aws::Vector< Aws::String > &value)
Definition TokenData.h:119
TokenData & AddTokenProperties(const Aws::String &value)
Definition TokenData.h:108
TokenData & AddRoleArns(Aws::String &&value)
Definition TokenData.h:124
TokenData & AddRoleArns(const Aws::String &value)
Definition TokenData.h:123
void SetTokenProperties(const Aws::Vector< Aws::String > &value)
Definition TokenData.h:104
void SetLicenseArn(const char *value)
Definition TokenData.h:78
void SetTokenId(Aws::String &&value)
Definition TokenData.h:48
TokenData & AddRoleArns(const char *value)
Definition TokenData.h:125
const Aws::String & GetLicenseArn() const
Definition TokenData.h:74
TokenData & WithStatus(const char *value)
Definition TokenData.h:140
TokenData & WithTokenType(const char *value)
Definition TokenData.h:67
TokenData & WithRoleArns(const Aws::Vector< Aws::String > &value)
Definition TokenData.h:121
TokenData & WithStatus(Aws::String &&value)
Definition TokenData.h:139
void SetLicenseArn(const Aws::String &value)
Definition TokenData.h:76
void SetTokenType(const char *value)
Definition TokenData.h:64
const Aws::String & GetStatus() const
Definition TokenData.h:133
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
TokenData & WithTokenProperties(const Aws::Vector< Aws::String > &value)
Definition TokenData.h:106
TokenData & WithStatus(const Aws::String &value)
Definition TokenData.h:138
void SetExpirationTime(Aws::String &&value)
Definition TokenData.h:91
TokenData & WithTokenType(Aws::String &&value)
Definition TokenData.h:66
void SetTokenType(const Aws::String &value)
Definition TokenData.h:62
TokenData & WithLicenseArn(const char *value)
Definition TokenData.h:81
void SetStatus(const char *value)
Definition TokenData.h:137
TokenData & AddTokenProperties(Aws::String &&value)
Definition TokenData.h:109
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue