AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
LinkAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9#include <aws/networkmanager/model/LinkAssociationState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkManager {
21namespace Model {
22
30 public:
31 AWS_NETWORKMANAGER_API LinkAssociation() = default;
32 AWS_NETWORKMANAGER_API LinkAssociation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKMANAGER_API LinkAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
41 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
42 template <typename GlobalNetworkIdT = Aws::String>
43 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
44 m_globalNetworkIdHasBeenSet = true;
45 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
46 }
47 template <typename GlobalNetworkIdT = Aws::String>
48 LinkAssociation& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
49 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
59 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
60 template <typename DeviceIdT = Aws::String>
61 void SetDeviceId(DeviceIdT&& value) {
62 m_deviceIdHasBeenSet = true;
63 m_deviceId = std::forward<DeviceIdT>(value);
64 }
65 template <typename DeviceIdT = Aws::String>
66 LinkAssociation& WithDeviceId(DeviceIdT&& value) {
67 SetDeviceId(std::forward<DeviceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLinkId() const { return m_linkId; }
77 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
78 template <typename LinkIdT = Aws::String>
79 void SetLinkId(LinkIdT&& value) {
80 m_linkIdHasBeenSet = true;
81 m_linkId = std::forward<LinkIdT>(value);
82 }
83 template <typename LinkIdT = Aws::String>
84 LinkAssociation& WithLinkId(LinkIdT&& value) {
85 SetLinkId(std::forward<LinkIdT>(value));
86 return *this;
87 }
89
91
94 inline LinkAssociationState GetLinkAssociationState() const { return m_linkAssociationState; }
95 inline bool LinkAssociationStateHasBeenSet() const { return m_linkAssociationStateHasBeenSet; }
97 m_linkAssociationStateHasBeenSet = true;
98 m_linkAssociationState = value;
99 }
102 return *this;
103 }
105 private:
106 Aws::String m_globalNetworkId;
107
108 Aws::String m_deviceId;
109
110 Aws::String m_linkId;
111
113 bool m_globalNetworkIdHasBeenSet = false;
114 bool m_deviceIdHasBeenSet = false;
115 bool m_linkIdHasBeenSet = false;
116 bool m_linkAssociationStateHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace NetworkManager
121} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue