AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
ServiceAccountSummary.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/Role.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
30 public:
31 AWS_MANAGEDGRAFANA_API ServiceAccountSummary() = default;
32 AWS_MANAGEDGRAFANA_API ServiceAccountSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetIsDisabled() const { return m_isDisabled; }
78 inline bool IsDisabledHasBeenSet() const { return m_isDisabledHasBeenSet; }
79 template <typename IsDisabledT = Aws::String>
80 void SetIsDisabled(IsDisabledT&& value) {
81 m_isDisabledHasBeenSet = true;
82 m_isDisabled = std::forward<IsDisabledT>(value);
83 }
84 template <typename IsDisabledT = Aws::String>
85 ServiceAccountSummary& WithIsDisabled(IsDisabledT&& value) {
86 SetIsDisabled(std::forward<IsDisabledT>(value));
87 return *this;
88 }
90
92
96 inline Role GetGrafanaRole() const { return m_grafanaRole; }
97 inline bool GrafanaRoleHasBeenSet() const { return m_grafanaRoleHasBeenSet; }
98 inline void SetGrafanaRole(Role value) {
99 m_grafanaRoleHasBeenSet = true;
100 m_grafanaRole = value;
101 }
103 SetGrafanaRole(value);
104 return *this;
105 }
107 private:
108 Aws::String m_id;
109
110 Aws::String m_name;
111
112 Aws::String m_isDisabled;
113
114 Role m_grafanaRole{Role::NOT_SET};
115 bool m_idHasBeenSet = false;
116 bool m_nameHasBeenSet = false;
117 bool m_isDisabledHasBeenSet = false;
118 bool m_grafanaRoleHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace ManagedGrafana
123} // namespace Aws
AWS_MANAGEDGRAFANA_API ServiceAccountSummary()=default
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDGRAFANA_API ServiceAccountSummary(Aws::Utils::Json::JsonView jsonValue)
ServiceAccountSummary & WithGrafanaRole(Role value)
ServiceAccountSummary & WithName(NameT &&value)
ServiceAccountSummary & WithIsDisabled(IsDisabledT &&value)
AWS_MANAGEDGRAFANA_API ServiceAccountSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue