AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Session& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Session& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Session& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetUrl() const{ return m_url; }
61 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
62 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
63 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
64 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
65 inline Session& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
66 inline Session& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
67 inline Session& WithUrl(const char* value) { SetUrl(value); return *this;}
69
71
75 inline bool GetIsPrimary() const{ return m_isPrimary; }
76 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
77 inline void SetIsPrimary(bool value) { m_isPrimaryHasBeenSet = true; m_isPrimary = value; }
78 inline Session& WithIsPrimary(bool value) { SetIsPrimary(value); return *this;}
80 private:
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
85 Aws::String m_url;
86 bool m_urlHasBeenSet = false;
87
88 bool m_isPrimary;
89 bool m_isPrimaryHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Lightsail
94} // namespace Aws
const Aws::String & GetName() const
Definition Session.h:46
Session & WithName(Aws::String &&value)
Definition Session.h:52
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Session & WithIsPrimary(bool value)
Definition Session.h:78
Session & WithName(const Aws::String &value)
Definition Session.h:51
AWS_LIGHTSAIL_API Session(Aws::Utils::Json::JsonView jsonValue)
void SetUrl(Aws::String &&value)
Definition Session.h:63
bool IsPrimaryHasBeenSet() const
Definition Session.h:76
AWS_LIGHTSAIL_API Session()
void SetName(const char *value)
Definition Session.h:50
void SetUrl(const char *value)
Definition Session.h:64
void SetIsPrimary(bool value)
Definition Session.h:77
Session & WithName(const char *value)
Definition Session.h:53
Session & WithUrl(Aws::String &&value)
Definition Session.h:66
void SetName(const Aws::String &value)
Definition Session.h:48
AWS_LIGHTSAIL_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition Session.h:49
const Aws::String & GetUrl() const
Definition Session.h:60
Session & WithUrl(const Aws::String &value)
Definition Session.h:65
void SetUrl(const Aws::String &value)
Definition Session.h:62
Session & WithUrl(const char *value)
Definition Session.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue