AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
App.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FMS
22{
23namespace Model
24{
25
31 class App
32 {
33 public:
34 AWS_FMS_API App() = default;
35 AWS_FMS_API App(Aws::Utils::Json::JsonView jsonValue);
36 AWS_FMS_API App& operator=(Aws::Utils::Json::JsonView jsonValue);
38
39
41
44 inline const Aws::String& GetAppName() const { return m_appName; }
45 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
46 template<typename AppNameT = Aws::String>
47 void SetAppName(AppNameT&& value) { m_appNameHasBeenSet = true; m_appName = std::forward<AppNameT>(value); }
48 template<typename AppNameT = Aws::String>
49 App& WithAppName(AppNameT&& value) { SetAppName(std::forward<AppNameT>(value)); return *this;}
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) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
64 template<typename ProtocolT = Aws::String>
65 App& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
67
69
72 inline long long GetPort() const { return m_port; }
73 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
74 inline void SetPort(long long value) { m_portHasBeenSet = true; m_port = value; }
75 inline App& WithPort(long long value) { SetPort(value); return *this;}
77 private:
78
79 Aws::String m_appName;
80 bool m_appNameHasBeenSet = false;
81
82 Aws::String m_protocol;
83 bool m_protocolHasBeenSet = false;
84
85 long long m_port{0};
86 bool m_portHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace FMS
91} // namespace Aws
AWS_FMS_API App(Aws::Utils::Json::JsonView jsonValue)
bool PortHasBeenSet() const
Definition App.h:73
AWS_FMS_API App()=default
App & WithAppName(AppNameT &&value)
Definition App.h:49
void SetProtocol(ProtocolT &&value)
Definition App.h:63
App & WithPort(long long value)
Definition App.h:75
void SetPort(long long value)
Definition App.h:74
bool ProtocolHasBeenSet() const
Definition App.h:61
bool AppNameHasBeenSet() const
Definition App.h:45
AWS_FMS_API App & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAppName() const
Definition App.h:44
void SetAppName(AppNameT &&value)
Definition App.h:47
const Aws::String & GetProtocol() const
Definition App.h:60
App & WithProtocol(ProtocolT &&value)
Definition App.h:65
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
long long GetPort() const
Definition App.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue