AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TokenIdT = Aws::String>
48 void SetTokenId(TokenIdT&& value) { m_tokenIdHasBeenSet = true; m_tokenId = std::forward<TokenIdT>(value); }
49 template<typename TokenIdT = Aws::String>
50 TokenData& WithTokenId(TokenIdT&& value) { SetTokenId(std::forward<TokenIdT>(value)); return *this;}
52
54
58 inline const Aws::String& GetTokenType() const { return m_tokenType; }
59 inline bool TokenTypeHasBeenSet() const { return m_tokenTypeHasBeenSet; }
60 template<typename TokenTypeT = Aws::String>
61 void SetTokenType(TokenTypeT&& value) { m_tokenTypeHasBeenSet = true; m_tokenType = std::forward<TokenTypeT>(value); }
62 template<typename TokenTypeT = Aws::String>
63 TokenData& WithTokenType(TokenTypeT&& value) { SetTokenType(std::forward<TokenTypeT>(value)); return *this;}
65
67
70 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
71 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
72 template<typename LicenseArnT = Aws::String>
73 void SetLicenseArn(LicenseArnT&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::forward<LicenseArnT>(value); }
74 template<typename LicenseArnT = Aws::String>
75 TokenData& WithLicenseArn(LicenseArnT&& value) { SetLicenseArn(std::forward<LicenseArnT>(value)); return *this;}
77
79
82 inline const Aws::String& GetExpirationTime() const { return m_expirationTime; }
83 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
84 template<typename ExpirationTimeT = Aws::String>
85 void SetExpirationTime(ExpirationTimeT&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::forward<ExpirationTimeT>(value); }
86 template<typename ExpirationTimeT = Aws::String>
87 TokenData& WithExpirationTime(ExpirationTimeT&& value) { SetExpirationTime(std::forward<ExpirationTimeT>(value)); return *this;}
89
91
94 inline const Aws::Vector<Aws::String>& GetTokenProperties() const { return m_tokenProperties; }
95 inline bool TokenPropertiesHasBeenSet() const { return m_tokenPropertiesHasBeenSet; }
96 template<typename TokenPropertiesT = Aws::Vector<Aws::String>>
97 void SetTokenProperties(TokenPropertiesT&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = std::forward<TokenPropertiesT>(value); }
98 template<typename TokenPropertiesT = Aws::Vector<Aws::String>>
99 TokenData& WithTokenProperties(TokenPropertiesT&& value) { SetTokenProperties(std::forward<TokenPropertiesT>(value)); return *this;}
100 template<typename TokenPropertiesT = Aws::String>
101 TokenData& AddTokenProperties(TokenPropertiesT&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.emplace_back(std::forward<TokenPropertiesT>(value)); return *this; }
103
105
108 inline const Aws::Vector<Aws::String>& GetRoleArns() const { return m_roleArns; }
109 inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; }
110 template<typename RoleArnsT = Aws::Vector<Aws::String>>
111 void SetRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::forward<RoleArnsT>(value); }
112 template<typename RoleArnsT = Aws::Vector<Aws::String>>
113 TokenData& WithRoleArns(RoleArnsT&& value) { SetRoleArns(std::forward<RoleArnsT>(value)); return *this;}
114 template<typename RoleArnsT = Aws::String>
115 TokenData& AddRoleArns(RoleArnsT&& value) { m_roleArnsHasBeenSet = true; m_roleArns.emplace_back(std::forward<RoleArnsT>(value)); return *this; }
117
119
123 inline const Aws::String& GetStatus() const { return m_status; }
124 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 template<typename StatusT = Aws::String>
126 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
127 template<typename StatusT = Aws::String>
128 TokenData& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
130 private:
131
132 Aws::String m_tokenId;
133 bool m_tokenIdHasBeenSet = false;
134
135 Aws::String m_tokenType;
136 bool m_tokenTypeHasBeenSet = false;
137
138 Aws::String m_licenseArn;
139 bool m_licenseArnHasBeenSet = false;
140
141 Aws::String m_expirationTime;
142 bool m_expirationTimeHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_tokenProperties;
145 bool m_tokenPropertiesHasBeenSet = false;
146
147 Aws::Vector<Aws::String> m_roleArns;
148 bool m_roleArnsHasBeenSet = false;
149
150 Aws::String m_status;
151 bool m_statusHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace LicenseManager
156} // namespace Aws
void SetTokenType(TokenTypeT &&value)
Definition TokenData.h:61
void SetStatus(StatusT &&value)
Definition TokenData.h:126
const Aws::String & GetExpirationTime() const
Definition TokenData.h:82
const Aws::String & GetTokenType() const
Definition TokenData.h:58
const Aws::String & GetTokenId() const
Definition TokenData.h:45
TokenData & WithRoleArns(RoleArnsT &&value)
Definition TokenData.h:113
AWS_LICENSEMANAGER_API TokenData(Aws::Utils::Json::JsonView jsonValue)
TokenData & WithTokenProperties(TokenPropertiesT &&value)
Definition TokenData.h:99
TokenData & WithTokenType(TokenTypeT &&value)
Definition TokenData.h:63
AWS_LICENSEMANAGER_API TokenData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetTokenProperties() const
Definition TokenData.h:94
const Aws::Vector< Aws::String > & GetRoleArns() const
Definition TokenData.h:108
void SetTokenId(TokenIdT &&value)
Definition TokenData.h:48
TokenData & WithStatus(StatusT &&value)
Definition TokenData.h:128
TokenData & AddTokenProperties(TokenPropertiesT &&value)
Definition TokenData.h:101
const Aws::String & GetLicenseArn() const
Definition TokenData.h:70
TokenData & WithExpirationTime(ExpirationTimeT &&value)
Definition TokenData.h:87
TokenData & WithLicenseArn(LicenseArnT &&value)
Definition TokenData.h:75
void SetRoleArns(RoleArnsT &&value)
Definition TokenData.h:111
void SetTokenProperties(TokenPropertiesT &&value)
Definition TokenData.h:97
TokenData & WithTokenId(TokenIdT &&value)
Definition TokenData.h:50
const Aws::String & GetStatus() const
Definition TokenData.h:123
void SetExpirationTime(ExpirationTimeT &&value)
Definition TokenData.h:85
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLicenseArn(LicenseArnT &&value)
Definition TokenData.h:73
TokenData & AddRoleArns(RoleArnsT &&value)
Definition TokenData.h:115
AWS_LICENSEMANAGER_API TokenData()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue