AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 User& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline UserType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(UserType value) { m_typeHasBeenSet = true; m_type = value; }
63 inline User& WithType(UserType value) { SetType(value); return *this;}
65 private:
66
67 Aws::String m_id;
68 bool m_idHasBeenSet = false;
69
71 bool m_typeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace ManagedGrafana
76} // namespace Aws
bool TypeHasBeenSet() const
Definition User.h:61
void SetType(UserType value)
Definition User.h:62
AWS_MANAGEDGRAFANA_API User(Aws::Utils::Json::JsonView jsonValue)
void SetId(IdT &&value)
Definition User.h:51
AWS_MANAGEDGRAFANA_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API User()=default
UserType GetType() const
Definition User.h:60
User & WithId(IdT &&value)
Definition User.h:53
User & WithType(UserType value)
Definition User.h:63
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Definition User.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue