AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
GetCapabilityRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace OpenSearchService {
15namespace Model {
16
24 public:
25 AWS_OPENSEARCHSERVICE_API GetCapabilityRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetCapability"; }
32
33 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
40 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
41 template <typename ApplicationIdT = Aws::String>
42 void SetApplicationId(ApplicationIdT&& value) {
43 m_applicationIdHasBeenSet = true;
44 m_applicationId = std::forward<ApplicationIdT>(value);
45 }
46 template <typename ApplicationIdT = Aws::String>
47 GetCapabilityRequest& WithApplicationId(ApplicationIdT&& value) {
48 SetApplicationId(std::forward<ApplicationIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCapabilityName() const { return m_capabilityName; }
58 inline bool CapabilityNameHasBeenSet() const { return m_capabilityNameHasBeenSet; }
59 template <typename CapabilityNameT = Aws::String>
60 void SetCapabilityName(CapabilityNameT&& value) {
61 m_capabilityNameHasBeenSet = true;
62 m_capabilityName = std::forward<CapabilityNameT>(value);
63 }
64 template <typename CapabilityNameT = Aws::String>
65 GetCapabilityRequest& WithCapabilityName(CapabilityNameT&& value) {
66 SetCapabilityName(std::forward<CapabilityNameT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_applicationId;
72
73 Aws::String m_capabilityName;
74 bool m_applicationIdHasBeenSet = false;
75 bool m_capabilityNameHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace OpenSearchService
80} // namespace Aws
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
GetCapabilityRequest & WithApplicationId(ApplicationIdT &&value)
AWS_OPENSEARCHSERVICE_API GetCapabilityRequest()=default
virtual const char * GetServiceRequestName() const override
GetCapabilityRequest & WithCapabilityName(CapabilityNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String