AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
CreateLicenseResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/LicenseStatus.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace LicenseManager {
24namespace Model {
26 public:
27 AWS_LICENSEMANAGER_API CreateLicenseResult() = default;
30
32
35 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
36 template <typename LicenseArnT = Aws::String>
37 void SetLicenseArn(LicenseArnT&& value) {
38 m_licenseArnHasBeenSet = true;
39 m_licenseArn = std::forward<LicenseArnT>(value);
40 }
41 template <typename LicenseArnT = Aws::String>
42 CreateLicenseResult& WithLicenseArn(LicenseArnT&& value) {
43 SetLicenseArn(std::forward<LicenseArnT>(value));
44 return *this;
45 }
47
49
52 inline LicenseStatus GetStatus() const { return m_status; }
53 inline void SetStatus(LicenseStatus value) {
54 m_statusHasBeenSet = true;
55 m_status = value;
56 }
58 SetStatus(value);
59 return *this;
60 }
62
64
67 inline const Aws::String& GetVersion() const { return m_version; }
68 template <typename VersionT = Aws::String>
69 void SetVersion(VersionT&& value) {
70 m_versionHasBeenSet = true;
71 m_version = std::forward<VersionT>(value);
72 }
73 template <typename VersionT = Aws::String>
74 CreateLicenseResult& WithVersion(VersionT&& value) {
75 SetVersion(std::forward<VersionT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 CreateLicenseResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::String m_licenseArn;
98
100
101 Aws::String m_version;
102
103 Aws::String m_requestId;
104 Aws::Http::HttpResponseCode m_HttpResponseCode;
105 bool m_licenseArnHasBeenSet = false;
106 bool m_statusHasBeenSet = false;
107 bool m_versionHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace LicenseManager
113} // namespace Aws
AWS_LICENSEMANAGER_API CreateLicenseResult()=default
AWS_LICENSEMANAGER_API CreateLicenseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLicenseResult & WithVersion(VersionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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