AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
RoutedResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTEvents {
20namespace Model {
21
29 public:
30 AWS_IOTEVENTS_API RoutedResource() = default;
31 AWS_IOTEVENTS_API RoutedResource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 RoutedResource& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 RoutedResource& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_name;
74
75 Aws::String m_arn;
76 bool m_nameHasBeenSet = false;
77 bool m_arnHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace IoTEvents
82} // namespace Aws
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTEVENTS_API RoutedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API RoutedResource()=default
RoutedResource & WithName(NameT &&value)
const Aws::String & GetName() const
RoutedResource & WithArn(ArnT &&value)
AWS_IOTEVENTS_API RoutedResource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue