AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Session.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
29class Session {
30 public:
31 AWS_LIGHTSAIL_API Session() = default;
32 AWS_LIGHTSAIL_API Session(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LIGHTSAIL_API Session& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 Session& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetUrl() const { return m_url; }
59 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
60 template <typename UrlT = Aws::String>
61 void SetUrl(UrlT&& value) {
62 m_urlHasBeenSet = true;
63 m_url = std::forward<UrlT>(value);
64 }
65 template <typename UrlT = Aws::String>
66 Session& WithUrl(UrlT&& value) {
67 SetUrl(std::forward<UrlT>(value));
68 return *this;
69 }
71
73
77 inline bool GetIsPrimary() const { return m_isPrimary; }
78 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
79 inline void SetIsPrimary(bool value) {
80 m_isPrimaryHasBeenSet = true;
81 m_isPrimary = value;
82 }
83 inline Session& WithIsPrimary(bool value) {
84 SetIsPrimary(value);
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90
91 Aws::String m_url;
92
93 bool m_isPrimary{false};
94 bool m_nameHasBeenSet = false;
95 bool m_urlHasBeenSet = false;
96 bool m_isPrimaryHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Lightsail
101} // namespace Aws
const Aws::String & GetName() const
Definition Session.h:40
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Session & WithIsPrimary(bool value)
Definition Session.h:83
AWS_LIGHTSAIL_API Session()=default
void SetUrl(UrlT &&value)
Definition Session.h:61
AWS_LIGHTSAIL_API Session(Aws::Utils::Json::JsonView jsonValue)
Session & WithName(NameT &&value)
Definition Session.h:48
bool IsPrimaryHasBeenSet() const
Definition Session.h:78
Session & WithUrl(UrlT &&value)
Definition Session.h:66
void SetIsPrimary(bool value)
Definition Session.h:79
AWS_LIGHTSAIL_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Session.h:43
const Aws::String & GetUrl() const
Definition Session.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue