AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/grafana/ManagedGrafana_EXPORTS.h>
9#include <aws/grafana/model/UserType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ManagedGrafana {
21namespace Model {
22
29class User {
30 public:
31 AWS_MANAGEDGRAFANA_API User() = default;
32 AWS_MANAGEDGRAFANA_API User(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MANAGEDGRAFANA_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 User& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline UserType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(UserType value) {
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
66 inline User& WithType(UserType value) {
67 SetType(value);
68 return *this;
69 }
71 private:
72 Aws::String m_id;
73
75 bool m_idHasBeenSet = false;
76 bool m_typeHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ManagedGrafana
81} // 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:45
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:50
User & WithType(UserType value)
Definition User.h:66
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Definition User.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue