AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Route.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMS_EXPORTS.h>
9#include <aws/fms/model/DestinationType.h>
10#include <aws/fms/model/TargetType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FMS {
22namespace Model {
23
29class Route {
30 public:
31 AWS_FMS_API Route() = default;
32 AWS_FMS_API Route(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline DestinationType GetDestinationType() const { return m_destinationType; }
41 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
43 m_destinationTypeHasBeenSet = true;
44 m_destinationType = value;
45 }
47 SetDestinationType(value);
48 return *this;
49 }
51
53
56 inline TargetType GetTargetType() const { return m_targetType; }
57 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
58 inline void SetTargetType(TargetType value) {
59 m_targetTypeHasBeenSet = true;
60 m_targetType = value;
61 }
63 SetTargetType(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetDestination() const { return m_destination; }
73 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
74 template <typename DestinationT = Aws::String>
75 void SetDestination(DestinationT&& value) {
76 m_destinationHasBeenSet = true;
77 m_destination = std::forward<DestinationT>(value);
78 }
79 template <typename DestinationT = Aws::String>
80 Route& WithDestination(DestinationT&& value) {
81 SetDestination(std::forward<DestinationT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetTarget() const { return m_target; }
91 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
92 template <typename TargetT = Aws::String>
93 void SetTarget(TargetT&& value) {
94 m_targetHasBeenSet = true;
95 m_target = std::forward<TargetT>(value);
96 }
97 template <typename TargetT = Aws::String>
98 Route& WithTarget(TargetT&& value) {
99 SetTarget(std::forward<TargetT>(value));
100 return *this;
101 }
103 private:
104 DestinationType m_destinationType{DestinationType::NOT_SET};
105
106 TargetType m_targetType{TargetType::NOT_SET};
107
108 Aws::String m_destination;
109
110 Aws::String m_target;
111 bool m_destinationTypeHasBeenSet = false;
112 bool m_targetTypeHasBeenSet = false;
113 bool m_destinationHasBeenSet = false;
114 bool m_targetHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace FMS
119} // namespace Aws
bool TargetTypeHasBeenSet() const
Definition Route.h:57
void SetDestinationType(DestinationType value)
Definition Route.h:42
void SetTargetType(TargetType value)
Definition Route.h:58
DestinationType GetDestinationType() const
Definition Route.h:40
Route & WithTargetType(TargetType value)
Definition Route.h:62
AWS_FMS_API Route & operator=(Aws::Utils::Json::JsonView jsonValue)
Route & WithDestinationType(DestinationType value)
Definition Route.h:46
bool DestinationTypeHasBeenSet() const
Definition Route.h:41
const Aws::String & GetDestination() const
Definition Route.h:72
void SetTarget(TargetT &&value)
Definition Route.h:93
const Aws::String & GetTarget() const
Definition Route.h:90
TargetType GetTargetType() const
Definition Route.h:56
AWS_FMS_API Route()=default
AWS_FMS_API Route(Aws::Utils::Json::JsonView jsonValue)
void SetDestination(DestinationT &&value)
Definition Route.h:75
Route & WithTarget(TargetT &&value)
Definition Route.h:98
Route & WithDestination(DestinationT &&value)
Definition Route.h:80
bool TargetHasBeenSet() const
Definition Route.h:91
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
bool DestinationHasBeenSet() const
Definition Route.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue