AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Relationship.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkManager {
20namespace Model {
21
28 public:
29 AWS_NETWORKMANAGER_API Relationship() = default;
30 AWS_NETWORKMANAGER_API Relationship(Aws::Utils::Json::JsonView jsonValue);
31 AWS_NETWORKMANAGER_API Relationship& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetFrom() const { return m_from; }
39 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
40 template <typename FromT = Aws::String>
41 void SetFrom(FromT&& value) {
42 m_fromHasBeenSet = true;
43 m_from = std::forward<FromT>(value);
44 }
45 template <typename FromT = Aws::String>
46 Relationship& WithFrom(FromT&& value) {
47 SetFrom(std::forward<FromT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetTo() const { return m_to; }
57 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
58 template <typename ToT = Aws::String>
59 void SetTo(ToT&& value) {
60 m_toHasBeenSet = true;
61 m_to = std::forward<ToT>(value);
62 }
63 template <typename ToT = Aws::String>
64 Relationship& WithTo(ToT&& value) {
65 SetTo(std::forward<ToT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_from;
71
72 Aws::String m_to;
73 bool m_fromHasBeenSet = false;
74 bool m_toHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace NetworkManager
79} // namespace Aws
const Aws::String & GetTo() const
Relationship & WithFrom(FromT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API Relationship(Aws::Utils::Json::JsonView jsonValue)
Relationship & WithTo(ToT &&value)
AWS_NETWORKMANAGER_API Relationship()=default
const Aws::String & GetFrom() const
AWS_NETWORKMANAGER_API Relationship & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue