AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayRegistration.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/TransitGatewayRegistrationStateReason.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NETWORKMANAGER_API TransitGatewayRegistration();
37 AWS_NETWORKMANAGER_API TransitGatewayRegistration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
47 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
48 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
49 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
50 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
52 inline TransitGatewayRegistration& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
53 inline TransitGatewayRegistration& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
55
57
60 inline const Aws::String& GetTransitGatewayArn() const{ return m_transitGatewayArn; }
61 inline bool TransitGatewayArnHasBeenSet() const { return m_transitGatewayArnHasBeenSet; }
62 inline void SetTransitGatewayArn(const Aws::String& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = value; }
63 inline void SetTransitGatewayArn(Aws::String&& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = std::move(value); }
64 inline void SetTransitGatewayArn(const char* value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn.assign(value); }
66 inline TransitGatewayRegistration& WithTransitGatewayArn(Aws::String&& value) { SetTransitGatewayArn(std::move(value)); return *this;}
67 inline TransitGatewayRegistration& WithTransitGatewayArn(const char* value) { SetTransitGatewayArn(value); return *this;}
69
71
74 inline const TransitGatewayRegistrationStateReason& GetState() const{ return m_state; }
75 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
76 inline void SetState(const TransitGatewayRegistrationStateReason& value) { m_stateHasBeenSet = true; m_state = value; }
77 inline void SetState(TransitGatewayRegistrationStateReason&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
79 inline TransitGatewayRegistration& WithState(TransitGatewayRegistrationStateReason&& value) { SetState(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_globalNetworkId;
84 bool m_globalNetworkIdHasBeenSet = false;
85
86 Aws::String m_transitGatewayArn;
87 bool m_transitGatewayArnHasBeenSet = false;
88
90 bool m_stateHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace NetworkManager
95} // namespace Aws
TransitGatewayRegistration & WithTransitGatewayArn(const char *value)
TransitGatewayRegistration & WithTransitGatewayArn(const Aws::String &value)
TransitGatewayRegistration & WithGlobalNetworkId(Aws::String &&value)
TransitGatewayRegistration & WithState(const TransitGatewayRegistrationStateReason &value)
void SetState(TransitGatewayRegistrationStateReason &&value)
void SetState(const TransitGatewayRegistrationStateReason &value)
TransitGatewayRegistration & WithGlobalNetworkId(const char *value)
const TransitGatewayRegistrationStateReason & GetState() const
TransitGatewayRegistration & WithState(TransitGatewayRegistrationStateReason &&value)
TransitGatewayRegistration & WithGlobalNetworkId(const Aws::String &value)
TransitGatewayRegistration & WithTransitGatewayArn(Aws::String &&value)
AWS_NETWORKMANAGER_API TransitGatewayRegistration(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API TransitGatewayRegistration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue