AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Relationship.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkManager
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_NETWORKMANAGER_API Relationship() = default;
35 AWS_NETWORKMANAGER_API Relationship(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Relationship& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetFrom() const { return m_from; }
45 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
46 template<typename FromT = Aws::String>
47 void SetFrom(FromT&& value) { m_fromHasBeenSet = true; m_from = std::forward<FromT>(value); }
48 template<typename FromT = Aws::String>
49 Relationship& WithFrom(FromT&& value) { SetFrom(std::forward<FromT>(value)); return *this;}
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) { m_toHasBeenSet = true; m_to = std::forward<ToT>(value); }
60 template<typename ToT = Aws::String>
61 Relationship& WithTo(ToT&& value) { SetTo(std::forward<ToT>(value)); return *this;}
63 private:
64
65 Aws::String m_from;
66 bool m_fromHasBeenSet = false;
67
68 Aws::String m_to;
69 bool m_toHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace NetworkManager
74} // 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