AWS SDK for C++  1.9.159
AWS SDK for C++
GetNetworkRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ManagedBlockchain
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "GetNetwork"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetNetworkId() const{ return m_networkId; }
39 
43  inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
44 
48  inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
49 
53  inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
54 
58  inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
59 
63  inline GetNetworkRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
64 
68  inline GetNetworkRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
69 
73  inline GetNetworkRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
74 
75  private:
76 
77  Aws::String m_networkId;
78  bool m_networkIdHasBeenSet;
79  };
80 
81 } // namespace Model
82 } // namespace ManagedBlockchain
83 } // namespace Aws
Aws::ManagedBlockchain::Model::GetNetworkRequest::GetNetworkRequest
GetNetworkRequest()
Aws::ManagedBlockchain::Model::GetNetworkRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetNetworkRequest.h:30
Aws::ManagedBlockchain::Model::GetNetworkRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ManagedBlockchain::Model::GetNetworkRequest
Definition: GetNetworkRequest.h:22
Aws::ManagedBlockchain::Model::GetNetworkRequest::WithNetworkId
GetNetworkRequest & WithNetworkId(Aws::String &&value)
Definition: GetNetworkRequest.h:68
Aws::ManagedBlockchain::Model::GetNetworkRequest::GetNetworkId
const Aws::String & GetNetworkId() const
Definition: GetNetworkRequest.h:38
AWSString.h
Aws::ManagedBlockchain::ManagedBlockchainRequest
Definition: ManagedBlockchainRequest.h:17
Aws::ManagedBlockchain::Model::GetNetworkRequest::WithNetworkId
GetNetworkRequest & WithNetworkId(const char *value)
Definition: GetNetworkRequest.h:73
Aws::ManagedBlockchain::Model::GetNetworkRequest::SetNetworkId
void SetNetworkId(const Aws::String &value)
Definition: GetNetworkRequest.h:48
Aws::ManagedBlockchain::Model::GetNetworkRequest::SetNetworkId
void SetNetworkId(const char *value)
Definition: GetNetworkRequest.h:58
ManagedBlockchainRequest.h
AWS_MANAGEDBLOCKCHAIN_API
#define AWS_MANAGEDBLOCKCHAIN_API
Definition: ManagedBlockchain_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
ManagedBlockchain_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ManagedBlockchain::Model::GetNetworkRequest::WithNetworkId
GetNetworkRequest & WithNetworkId(const Aws::String &value)
Definition: GetNetworkRequest.h:63
Aws::ManagedBlockchain::Model::GetNetworkRequest::SetNetworkId
void SetNetworkId(Aws::String &&value)
Definition: GetNetworkRequest.h:53
Aws::ManagedBlockchain::Model::GetNetworkRequest::NetworkIdHasBeenSet
bool NetworkIdHasBeenSet() const
Definition: GetNetworkRequest.h:43