AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DestinationConfig.h
1
6#pragma once
7#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTSecureTunneling
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOTSECURETUNNELING_API DestinationConfig() = default;
36 AWS_IOTSECURETUNNELING_API DestinationConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTSECURETUNNELING_API DestinationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetThingName() const { return m_thingName; }
46 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
47 template<typename ThingNameT = Aws::String>
48 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
49 template<typename ThingNameT = Aws::String>
50 DestinationConfig& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
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) { m_servicesHasBeenSet = true; m_services = std::forward<ServicesT>(value); }
64 template<typename ServicesT = Aws::Vector<Aws::String>>
65 DestinationConfig& WithServices(ServicesT&& value) { SetServices(std::forward<ServicesT>(value)); return *this;}
66 template<typename ServicesT = Aws::String>
67 DestinationConfig& AddServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services.emplace_back(std::forward<ServicesT>(value)); return *this; }
69 private:
70
71 Aws::String m_thingName;
72 bool m_thingNameHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_services;
75 bool m_servicesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace IoTSecureTunneling
80} // 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