AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
DestinationConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTSecureTunneling {
21namespace Model {
22
29 public:
30 AWS_IOTSECURETUNNELING_API DestinationConfig() = default;
31 AWS_IOTSECURETUNNELING_API DestinationConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTSECURETUNNELING_API DestinationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetThingName() const { return m_thingName; }
40 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
41 template <typename ThingNameT = Aws::String>
42 void SetThingName(ThingNameT&& value) {
43 m_thingNameHasBeenSet = true;
44 m_thingName = std::forward<ThingNameT>(value);
45 }
46 template <typename ThingNameT = Aws::String>
47 DestinationConfig& WithThingName(ThingNameT&& value) {
48 SetThingName(std::forward<ThingNameT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::Vector<Aws::String>& GetServices() const { return m_services; }
61 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
62 template <typename ServicesT = Aws::Vector<Aws::String>>
63 void SetServices(ServicesT&& value) {
64 m_servicesHasBeenSet = true;
65 m_services = std::forward<ServicesT>(value);
66 }
67 template <typename ServicesT = Aws::Vector<Aws::String>>
68 DestinationConfig& WithServices(ServicesT&& value) {
69 SetServices(std::forward<ServicesT>(value));
70 return *this;
71 }
72 template <typename ServicesT = Aws::String>
73 DestinationConfig& AddServices(ServicesT&& value) {
74 m_servicesHasBeenSet = true;
75 m_services.emplace_back(std::forward<ServicesT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_thingName;
81
82 Aws::Vector<Aws::String> m_services;
83 bool m_thingNameHasBeenSet = false;
84 bool m_servicesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace IoTSecureTunneling
89} // namespace Aws
DestinationConfig & AddServices(ServicesT &&value)
AWS_IOTSECURETUNNELING_API DestinationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSECURETUNNELING_API DestinationConfig()=default
DestinationConfig & WithServices(ServicesT &&value)
const Aws::Vector< Aws::String > & GetServices() const
AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSECURETUNNELING_API DestinationConfig(Aws::Utils::Json::JsonView jsonValue)
DestinationConfig & WithThingName(ThingNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue