AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
GetEntitlementRequest.h
1
6#pragma once
7#include <aws/account-access/AccountAccessRequest.h>
8#include <aws/account-access/AccountAccess_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace AccountAccess {
18namespace Model {
19
23 public:
24 AWS_ACCOUNTACCESS_API GetEntitlementRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetEntitlement"; }
31
32 AWS_ACCOUNTACCESS_API Aws::String SerializePayload() const override;
33
34 AWS_ACCOUNTACCESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
41 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
42 template <typename ApplicationArnT = Aws::String>
43 void SetApplicationArn(ApplicationArnT&& value) {
44 m_applicationArnHasBeenSet = true;
45 m_applicationArn = std::forward<ApplicationArnT>(value);
46 }
47 template <typename ApplicationArnT = Aws::String>
48 GetEntitlementRequest& WithApplicationArn(ApplicationArnT&& value) {
49 SetApplicationArn(std::forward<ApplicationArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetEntitlementId() const { return m_entitlementId; }
59 inline bool EntitlementIdHasBeenSet() const { return m_entitlementIdHasBeenSet; }
60 template <typename EntitlementIdT = Aws::String>
61 void SetEntitlementId(EntitlementIdT&& value) {
62 m_entitlementIdHasBeenSet = true;
63 m_entitlementId = std::forward<EntitlementIdT>(value);
64 }
65 template <typename EntitlementIdT = Aws::String>
66 GetEntitlementRequest& WithEntitlementId(EntitlementIdT&& value) {
67 SetEntitlementId(std::forward<EntitlementIdT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_applicationArn;
73
74 Aws::String m_entitlementId;
75 bool m_applicationArnHasBeenSet = false;
76 bool m_entitlementIdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AccountAccess
81} // namespace Aws
GetEntitlementRequest & WithEntitlementId(EntitlementIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ACCOUNTACCESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_ACCOUNTACCESS_API Aws::String SerializePayload() const override
GetEntitlementRequest & WithApplicationArn(ApplicationArnT &&value)
AWS_ACCOUNTACCESS_API GetEntitlementRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String