AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Route.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/fms/model/DestinationType.h>
9#include <aws/fms/model/TargetType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FMS
24{
25namespace Model
26{
27
33 class Route
34 {
35 public:
36 AWS_FMS_API Route();
37 AWS_FMS_API Route(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const DestinationType& GetDestinationType() const{ return m_destinationType; }
47 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
48 inline void SetDestinationType(const DestinationType& value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
49 inline void SetDestinationType(DestinationType&& value) { m_destinationTypeHasBeenSet = true; m_destinationType = std::move(value); }
50 inline Route& WithDestinationType(const DestinationType& value) { SetDestinationType(value); return *this;}
51 inline Route& WithDestinationType(DestinationType&& value) { SetDestinationType(std::move(value)); return *this;}
53
55
58 inline const TargetType& GetTargetType() const{ return m_targetType; }
59 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
60 inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
61 inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
62 inline Route& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
63 inline Route& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetDestination() const{ return m_destination; }
71 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
72 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
73 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
74 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
75 inline Route& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
76 inline Route& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
77 inline Route& WithDestination(const char* value) { SetDestination(value); return *this;}
79
81
84 inline const Aws::String& GetTarget() const{ return m_target; }
85 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
86 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
87 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
88 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
89 inline Route& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
90 inline Route& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
91 inline Route& WithTarget(const char* value) { SetTarget(value); return *this;}
93 private:
94
95 DestinationType m_destinationType;
96 bool m_destinationTypeHasBeenSet = false;
97
98 TargetType m_targetType;
99 bool m_targetTypeHasBeenSet = false;
100
101 Aws::String m_destination;
102 bool m_destinationHasBeenSet = false;
103
104 Aws::String m_target;
105 bool m_targetHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace FMS
110} // namespace Aws
bool TargetTypeHasBeenSet() const
Definition Route.h:59
void SetDestinationType(const DestinationType &value)
Definition Route.h:48
AWS_FMS_API Route & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetType(TargetType &&value)
Definition Route.h:61
const TargetType & GetTargetType() const
Definition Route.h:58
bool DestinationTypeHasBeenSet() const
Definition Route.h:47
const Aws::String & GetDestination() const
Definition Route.h:70
Route & WithTargetType(TargetType &&value)
Definition Route.h:63
void SetDestinationType(DestinationType &&value)
Definition Route.h:49
const Aws::String & GetTarget() const
Definition Route.h:84
void SetTarget(Aws::String &&value)
Definition Route.h:87
Route & WithTarget(const Aws::String &value)
Definition Route.h:89
Route & WithDestination(const char *value)
Definition Route.h:77
void SetTargetType(const TargetType &value)
Definition Route.h:60
Route & WithTargetType(const TargetType &value)
Definition Route.h:62
Route & WithTarget(Aws::String &&value)
Definition Route.h:90
void SetTarget(const char *value)
Definition Route.h:88
const DestinationType & GetDestinationType() const
Definition Route.h:46
Route & WithDestination(Aws::String &&value)
Definition Route.h:76
void SetDestination(const Aws::String &value)
Definition Route.h:72
Route & WithDestination(const Aws::String &value)
Definition Route.h:75
AWS_FMS_API Route(Aws::Utils::Json::JsonView jsonValue)
Route & WithDestinationType(const DestinationType &value)
Definition Route.h:50
bool TargetHasBeenSet() const
Definition Route.h:85
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDestination(const char *value)
Definition Route.h:74
Route & WithDestinationType(DestinationType &&value)
Definition Route.h:51
void SetTarget(const Aws::String &value)
Definition Route.h:86
bool DestinationHasBeenSet() const
Definition Route.h:71
void SetDestination(Aws::String &&value)
Definition Route.h:73
Route & WithTarget(const char *value)
Definition Route.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue