AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
App.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace FMS {
20namespace Model {
21
27class App {
28 public:
29 AWS_FMS_API App() = default;
30 AWS_FMS_API App(Aws::Utils::Json::JsonView jsonValue);
31 AWS_FMS_API App& operator=(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline const Aws::String& GetAppName() const { return m_appName; }
39 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
40 template <typename AppNameT = Aws::String>
41 void SetAppName(AppNameT&& value) {
42 m_appNameHasBeenSet = true;
43 m_appName = std::forward<AppNameT>(value);
44 }
45 template <typename AppNameT = Aws::String>
46 App& WithAppName(AppNameT&& value) {
47 SetAppName(std::forward<AppNameT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetProtocol() const { return m_protocol; }
61 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
62 template <typename ProtocolT = Aws::String>
63 void SetProtocol(ProtocolT&& value) {
64 m_protocolHasBeenSet = true;
65 m_protocol = std::forward<ProtocolT>(value);
66 }
67 template <typename ProtocolT = Aws::String>
68 App& WithProtocol(ProtocolT&& value) {
69 SetProtocol(std::forward<ProtocolT>(value));
70 return *this;
71 }
73
75
78 inline long long GetPort() const { return m_port; }
79 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
80 inline void SetPort(long long value) {
81 m_portHasBeenSet = true;
82 m_port = value;
83 }
84 inline App& WithPort(long long value) {
85 SetPort(value);
86 return *this;
87 }
89 private:
90 Aws::String m_appName;
91
92 Aws::String m_protocol;
93
94 long long m_port{0};
95 bool m_appNameHasBeenSet = false;
96 bool m_protocolHasBeenSet = false;
97 bool m_portHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace FMS
102} // namespace Aws
AWS_FMS_API App(Aws::Utils::Json::JsonView jsonValue)
bool PortHasBeenSet() const
Definition App.h:79
AWS_FMS_API App()=default
App & WithAppName(AppNameT &&value)
Definition App.h:46
void SetProtocol(ProtocolT &&value)
Definition App.h:63
App & WithPort(long long value)
Definition App.h:84
void SetPort(long long value)
Definition App.h:80
bool ProtocolHasBeenSet() const
Definition App.h:61
bool AppNameHasBeenSet() const
Definition App.h:39
AWS_FMS_API App & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAppName() const
Definition App.h:38
void SetAppName(AppNameT &&value)
Definition App.h:41
const Aws::String & GetProtocol() const
Definition App.h:60
App & WithProtocol(ProtocolT &&value)
Definition App.h:68
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
long long GetPort() const
Definition App.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue