AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
GetEntitlementResult.h
1
6#pragma once
7#include <aws/account-access/AccountAccess_EXPORTS.h>
8#include <aws/account-access/model/EntitlementDetails.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace AccountAccess {
25namespace Model {
27 public:
28 AWS_ACCOUNTACCESS_API GetEntitlementResult() = default;
31
33
36 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
37 template <typename ApplicationArnT = Aws::String>
38 void SetApplicationArn(ApplicationArnT&& value) {
39 m_applicationArnHasBeenSet = true;
40 m_applicationArn = std::forward<ApplicationArnT>(value);
41 }
42 template <typename ApplicationArnT = Aws::String>
43 GetEntitlementResult& WithApplicationArn(ApplicationArnT&& value) {
44 SetApplicationArn(std::forward<ApplicationArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetEntitlementId() const { return m_entitlementId; }
54 template <typename EntitlementIdT = Aws::String>
55 void SetEntitlementId(EntitlementIdT&& value) {
56 m_entitlementIdHasBeenSet = true;
57 m_entitlementId = std::forward<EntitlementIdT>(value);
58 }
59 template <typename EntitlementIdT = Aws::String>
60 GetEntitlementResult& WithEntitlementId(EntitlementIdT&& value) {
61 SetEntitlementId(std::forward<EntitlementIdT>(value));
62 return *this;
63 }
65
67
71 inline const EntitlementDetails& GetEntitlement() const { return m_entitlement; }
72 template <typename EntitlementT = EntitlementDetails>
73 void SetEntitlement(EntitlementT&& value) {
74 m_entitlementHasBeenSet = true;
75 m_entitlement = std::forward<EntitlementT>(value);
76 }
77 template <typename EntitlementT = EntitlementDetails>
78 GetEntitlementResult& WithEntitlement(EntitlementT&& value) {
79 SetEntitlement(std::forward<EntitlementT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
89 template <typename CreatedAtT = Aws::Utils::DateTime>
90 void SetCreatedAt(CreatedAtT&& value) {
91 m_createdAtHasBeenSet = true;
92 m_createdAt = std::forward<CreatedAtT>(value);
93 }
94 template <typename CreatedAtT = Aws::Utils::DateTime>
95 GetEntitlementResult& WithCreatedAt(CreatedAtT&& value) {
96 SetCreatedAt(std::forward<CreatedAtT>(value));
97 return *this;
98 }
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template <typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) {
106 m_requestIdHasBeenSet = true;
107 m_requestId = std::forward<RequestIdT>(value);
108 }
109 template <typename RequestIdT = Aws::String>
110 GetEntitlementResult& WithRequestId(RequestIdT&& value) {
111 SetRequestId(std::forward<RequestIdT>(value));
112 return *this;
113 }
115 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
116
117 private:
118 Aws::String m_applicationArn;
119
120 Aws::String m_entitlementId;
121
122 EntitlementDetails m_entitlement;
123
124 Aws::Utils::DateTime m_createdAt{};
125
126 Aws::String m_requestId;
127 Aws::Http::HttpResponseCode m_HttpResponseCode;
128 bool m_applicationArnHasBeenSet = false;
129 bool m_entitlementIdHasBeenSet = false;
130 bool m_entitlementHasBeenSet = false;
131 bool m_createdAtHasBeenSet = false;
132 bool m_requestIdHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace AccountAccess
137} // namespace Aws
GetEntitlementResult & WithCreatedAt(CreatedAtT &&value)
AWS_ACCOUNTACCESS_API GetEntitlementResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const EntitlementDetails & GetEntitlement() const
GetEntitlementResult & WithEntitlementId(EntitlementIdT &&value)
AWS_ACCOUNTACCESS_API GetEntitlementResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetEntitlementResult & WithEntitlement(EntitlementT &&value)
AWS_ACCOUNTACCESS_API GetEntitlementResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEntitlementResult & WithRequestId(RequestIdT &&value)
GetEntitlementResult & WithApplicationArn(ApplicationArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue