AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ApplicationConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotwireless/IoTWireless_EXPORTS.h>
9#include <aws/iotwireless/model/ApplicationConfigType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTWireless {
21namespace Model {
22
30 public:
31 AWS_IOTWIRELESS_API ApplicationConfig() = default;
32 AWS_IOTWIRELESS_API ApplicationConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline int GetFPort() const { return m_fPort; }
39 inline bool FPortHasBeenSet() const { return m_fPortHasBeenSet; }
40 inline void SetFPort(int value) {
41 m_fPortHasBeenSet = true;
42 m_fPort = value;
43 }
44 inline ApplicationConfig& WithFPort(int value) {
45 SetFPort(value);
46 return *this;
47 }
49
51
55 inline ApplicationConfigType GetType() const { return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(ApplicationConfigType value) {
58 m_typeHasBeenSet = true;
59 m_type = value;
60 }
62 SetType(value);
63 return *this;
64 }
66
68
73 inline const Aws::String& GetDestinationName() const { return m_destinationName; }
74 inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
75 template <typename DestinationNameT = Aws::String>
76 void SetDestinationName(DestinationNameT&& value) {
77 m_destinationNameHasBeenSet = true;
78 m_destinationName = std::forward<DestinationNameT>(value);
79 }
80 template <typename DestinationNameT = Aws::String>
81 ApplicationConfig& WithDestinationName(DestinationNameT&& value) {
82 SetDestinationName(std::forward<DestinationNameT>(value));
83 return *this;
84 }
86 private:
87 int m_fPort{0};
88
90
91 Aws::String m_destinationName;
92 bool m_fPortHasBeenSet = false;
93 bool m_typeHasBeenSet = false;
94 bool m_destinationNameHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace IoTWireless
99} // namespace Aws
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDestinationName() const
ApplicationConfig & WithType(ApplicationConfigType value)
ApplicationConfig & WithFPort(int value)
AWS_IOTWIRELESS_API ApplicationConfig(Aws::Utils::Json::JsonView jsonValue)
void SetType(ApplicationConfigType value)
void SetDestinationName(DestinationNameT &&value)
AWS_IOTWIRELESS_API ApplicationConfig()=default
AWS_IOTWIRELESS_API ApplicationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationConfig & WithDestinationName(DestinationNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue