AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Session.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_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 Lightsail
22{
23namespace Model
24{
25
33 class Session
34 {
35 public:
36 AWS_LIGHTSAIL_API Session() = default;
37 AWS_LIGHTSAIL_API Session(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Session& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 Session& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
62 template<typename UrlT = Aws::String>
63 Session& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
65
67
71 inline bool GetIsPrimary() const { return m_isPrimary; }
72 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
73 inline void SetIsPrimary(bool value) { m_isPrimaryHasBeenSet = true; m_isPrimary = value; }
74 inline Session& WithIsPrimary(bool value) { SetIsPrimary(value); return *this;}
76 private:
77
78 Aws::String m_name;
79 bool m_nameHasBeenSet = false;
80
81 Aws::String m_url;
82 bool m_urlHasBeenSet = false;
83
84 bool m_isPrimary{false};
85 bool m_isPrimaryHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Lightsail
90} // namespace Aws
const Aws::String & GetName() const
Definition Session.h:46
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Session & WithIsPrimary(bool value)
Definition Session.h:74
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:51
bool IsPrimaryHasBeenSet() const
Definition Session.h:72
Session & WithUrl(UrlT &&value)
Definition Session.h:63
void SetIsPrimary(bool value)
Definition Session.h:73
AWS_LIGHTSAIL_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Session.h:49
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