AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetOperationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/servicediscovery/ServiceDiscoveryRequest.h>
9#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ServiceDiscovery {
15namespace Model {
16
20 public:
21 AWS_SERVICEDISCOVERY_API GetOperationRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetOperation"; }
28
29 AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
30
31 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetOperationId() const { return m_operationId; }
38 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
39 template <typename OperationIdT = Aws::String>
40 void SetOperationId(OperationIdT&& value) {
41 m_operationIdHasBeenSet = true;
42 m_operationId = std::forward<OperationIdT>(value);
43 }
44 template <typename OperationIdT = Aws::String>
45 GetOperationRequest& WithOperationId(OperationIdT&& value) {
46 SetOperationId(std::forward<OperationIdT>(value));
47 return *this;
48 }
50
52
58 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
59 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
60 template <typename OwnerAccountT = Aws::String>
61 void SetOwnerAccount(OwnerAccountT&& value) {
62 m_ownerAccountHasBeenSet = true;
63 m_ownerAccount = std::forward<OwnerAccountT>(value);
64 }
65 template <typename OwnerAccountT = Aws::String>
66 GetOperationRequest& WithOwnerAccount(OwnerAccountT&& value) {
67 SetOwnerAccount(std::forward<OwnerAccountT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_operationId;
73
74 Aws::String m_ownerAccount;
75 bool m_operationIdHasBeenSet = false;
76 bool m_ownerAccountHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ServiceDiscovery
81} // namespace Aws
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetOperationRequest & WithOperationId(OperationIdT &&value)
AWS_SERVICEDISCOVERY_API GetOperationRequest()=default
GetOperationRequest & WithOwnerAccount(OwnerAccountT &&value)
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String