AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
37 AWS_FMS_API Route(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline DestinationType GetDestinationType() const { return m_destinationType; }
47 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
48 inline void SetDestinationType(DestinationType value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
49 inline Route& WithDestinationType(DestinationType value) { SetDestinationType(value); return *this;}
51
53
56 inline TargetType GetTargetType() const { return m_targetType; }
57 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
58 inline void SetTargetType(TargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
59 inline Route& WithTargetType(TargetType value) { SetTargetType(value); return *this;}
61
63
66 inline const Aws::String& GetDestination() const { return m_destination; }
67 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
68 template<typename DestinationT = Aws::String>
69 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
70 template<typename DestinationT = Aws::String>
71 Route& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
73
75
78 inline const Aws::String& GetTarget() const { return m_target; }
79 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
80 template<typename TargetT = Aws::String>
81 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
82 template<typename TargetT = Aws::String>
83 Route& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
85 private:
86
88 bool m_destinationTypeHasBeenSet = false;
89
90 TargetType m_targetType{TargetType::NOT_SET};
91 bool m_targetTypeHasBeenSet = false;
92
93 Aws::String m_destination;
94 bool m_destinationHasBeenSet = false;
95
96 Aws::String m_target;
97 bool m_targetHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace FMS
102} // namespace Aws
bool TargetTypeHasBeenSet() const
Definition Route.h:57
void SetDestinationType(DestinationType value)
Definition Route.h:48
void SetTargetType(TargetType value)
Definition Route.h:58
DestinationType GetDestinationType() const
Definition Route.h:46
Route & WithTargetType(TargetType value)
Definition Route.h:59
AWS_FMS_API Route & operator=(Aws::Utils::Json::JsonView jsonValue)
Route & WithDestinationType(DestinationType value)
Definition Route.h:49
bool DestinationTypeHasBeenSet() const
Definition Route.h:47
const Aws::String & GetDestination() const
Definition Route.h:66
void SetTarget(TargetT &&value)
Definition Route.h:81
const Aws::String & GetTarget() const
Definition Route.h:78
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:69
Route & WithTarget(TargetT &&value)
Definition Route.h:83
Route & WithDestination(DestinationT &&value)
Definition Route.h:71
bool TargetHasBeenSet() const
Definition Route.h:79
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
bool DestinationHasBeenSet() const
Definition Route.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue