AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateLicenseResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/license-manager/LicenseManager_EXPORTS.h>
9#include <aws/license-manager/model/LicenseStatus.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace LicenseManager {
23namespace Model {
25 public:
26 AWS_LICENSEMANAGER_API CreateLicenseResult() = default;
29
31
34 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
35 template <typename LicenseArnT = Aws::String>
36 void SetLicenseArn(LicenseArnT&& value) {
37 m_licenseArnHasBeenSet = true;
38 m_licenseArn = std::forward<LicenseArnT>(value);
39 }
40 template <typename LicenseArnT = Aws::String>
41 CreateLicenseResult& WithLicenseArn(LicenseArnT&& value) {
42 SetLicenseArn(std::forward<LicenseArnT>(value));
43 return *this;
44 }
46
48
51 inline LicenseStatus GetStatus() const { return m_status; }
52 inline void SetStatus(LicenseStatus value) {
53 m_statusHasBeenSet = true;
54 m_status = value;
55 }
57 SetStatus(value);
58 return *this;
59 }
61
63
66 inline const Aws::String& GetVersion() const { return m_version; }
67 template <typename VersionT = Aws::String>
68 void SetVersion(VersionT&& value) {
69 m_versionHasBeenSet = true;
70 m_version = std::forward<VersionT>(value);
71 }
72 template <typename VersionT = Aws::String>
73 CreateLicenseResult& WithVersion(VersionT&& value) {
74 SetVersion(std::forward<VersionT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
88 CreateLicenseResult& WithRequestId(RequestIdT&& value) {
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_licenseArn;
95
97
98 Aws::String m_version;
99
100 Aws::String m_requestId;
101 bool m_licenseArnHasBeenSet = false;
102 bool m_statusHasBeenSet = false;
103 bool m_versionHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace LicenseManager
109} // namespace Aws
AWS_LICENSEMANAGER_API CreateLicenseResult()=default
AWS_LICENSEMANAGER_API CreateLicenseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLicenseResult & WithVersion(VersionT &&value)
CreateLicenseResult & WithStatus(LicenseStatus value)
CreateLicenseResult & WithLicenseArn(LicenseArnT &&value)
AWS_LICENSEMANAGER_API CreateLicenseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLicenseResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue