AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; }
47 inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); }
48 inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); }
49 inline Relationship& WithFrom(const Aws::String& value) { SetFrom(value); return *this;}
50 inline Relationship& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;}
51 inline Relationship& WithFrom(const char* value) { SetFrom(value); return *this;}
53
55
58 inline const Aws::String& GetTo() const{ return m_to; }
59 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
60 inline void SetTo(const Aws::String& value) { m_toHasBeenSet = true; m_to = value; }
61 inline void SetTo(Aws::String&& value) { m_toHasBeenSet = true; m_to = std::move(value); }
62 inline void SetTo(const char* value) { m_toHasBeenSet = true; m_to.assign(value); }
63 inline Relationship& WithTo(const Aws::String& value) { SetTo(value); return *this;}
64 inline Relationship& WithTo(Aws::String&& value) { SetTo(std::move(value)); return *this;}
65 inline Relationship& WithTo(const char* value) { SetTo(value); return *this;}
67 private:
68
69 Aws::String m_from;
70 bool m_fromHasBeenSet = false;
71
72 Aws::String m_to;
73 bool m_toHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace NetworkManager
78} // namespace Aws
Relationship & WithFrom(Aws::String &&value)
const Aws::String & GetTo() const
Relationship & WithFrom(const char *value)
Relationship & WithTo(Aws::String &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API Relationship()
Relationship & WithFrom(const Aws::String &value)
AWS_NETWORKMANAGER_API Relationship(Aws::Utils::Json::JsonView jsonValue)
void SetTo(const Aws::String &value)
Relationship & WithTo(const Aws::String &value)
Relationship & WithTo(const char *value)
void SetFrom(Aws::String &&value)
const Aws::String & GetFrom() const
AWS_NETWORKMANAGER_API Relationship & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFrom(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue