AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/grafana/model/UserType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ManagedGrafana
23{
24namespace Model
25{
26
33 class User
34 {
35 public:
36 AWS_MANAGEDGRAFANA_API User();
37 AWS_MANAGEDGRAFANA_API User(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MANAGEDGRAFANA_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline User& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline User& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline User& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const UserType& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const UserType& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(UserType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline User& WithType(const UserType& value) { SetType(value); return *this;}
67 inline User& WithType(UserType&& value) { SetType(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_id;
72 bool m_idHasBeenSet = false;
73
74 UserType m_type;
75 bool m_typeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace ManagedGrafana
80} // namespace Aws
bool TypeHasBeenSet() const
Definition User.h:63
User & WithType(const UserType &value)
Definition User.h:66
void SetId(Aws::String &&value)
Definition User.h:51
AWS_MANAGEDGRAFANA_API User(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition User.h:52
User & WithId(Aws::String &&value)
Definition User.h:54
User & WithId(const char *value)
Definition User.h:55
AWS_MANAGEDGRAFANA_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(const UserType &value)
Definition User.h:64
void SetId(const Aws::String &value)
Definition User.h:50
const UserType & GetType() const
Definition User.h:62
User & WithType(UserType &&value)
Definition User.h:67
void SetType(UserType &&value)
Definition User.h:65
AWS_MANAGEDGRAFANA_API User()
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Definition User.h:48
User & WithId(const Aws::String &value)
Definition User.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue