AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Role.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/identitystore/IdentityStore_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IdentityStore {
20namespace Model {
21
27class Role {
28 public:
29 AWS_IDENTITYSTORE_API Role() = default;
30 AWS_IDENTITYSTORE_API Role(Aws::Utils::Json::JsonView jsonValue);
31 AWS_IDENTITYSTORE_API Role& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetValue() const { return m_value; }
39 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
40 template <typename ValueT = Aws::String>
41 void SetValue(ValueT&& value) {
42 m_valueHasBeenSet = true;
43 m_value = std::forward<ValueT>(value);
44 }
45 template <typename ValueT = Aws::String>
46 Role& WithValue(ValueT&& value) {
47 SetValue(std::forward<ValueT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 template <typename TypeT = Aws::String>
59 void SetType(TypeT&& value) {
60 m_typeHasBeenSet = true;
61 m_type = std::forward<TypeT>(value);
62 }
63 template <typename TypeT = Aws::String>
64 Role& WithType(TypeT&& value) {
65 SetType(std::forward<TypeT>(value));
66 return *this;
67 }
69
71
75 inline bool GetPrimary() const { return m_primary; }
76 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
77 inline void SetPrimary(bool value) {
78 m_primaryHasBeenSet = true;
79 m_primary = value;
80 }
81 inline Role& WithPrimary(bool value) {
82 SetPrimary(value);
83 return *this;
84 }
86 private:
87 Aws::String m_value;
88
89 Aws::String m_type;
90
91 bool m_primary{false};
92 bool m_valueHasBeenSet = false;
93 bool m_typeHasBeenSet = false;
94 bool m_primaryHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace IdentityStore
99} // namespace Aws
void SetType(TypeT &&value)
Definition Role.h:59
void SetValue(ValueT &&value)
Definition Role.h:41
const Aws::String & GetValue() const
Definition Role.h:38
bool ValueHasBeenSet() const
Definition Role.h:39
const Aws::String & GetType() const
Definition Role.h:56
AWS_IDENTITYSTORE_API Role(Aws::Utils::Json::JsonView jsonValue)
bool TypeHasBeenSet() const
Definition Role.h:57
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IDENTITYSTORE_API Role()=default
Role & WithPrimary(bool value)
Definition Role.h:81
void SetPrimary(bool value)
Definition Role.h:77
bool PrimaryHasBeenSet() const
Definition Role.h:76
Role & WithType(TypeT &&value)
Definition Role.h:64
AWS_IDENTITYSTORE_API Role & operator=(Aws::Utils::Json::JsonView jsonValue)
Role & WithValue(ValueT &&value)
Definition Role.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue