AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PrincipalGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9#include <aws/qbusiness/model/MembershipType.h>
10#include <aws/qbusiness/model/ReadAccessType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness {
22namespace Model {
23
31 public:
32 AWS_QBUSINESS_API PrincipalGroup() = default;
35 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline ReadAccessType GetAccess() const { return m_access; }
61 inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
62 inline void SetAccess(ReadAccessType value) {
63 m_accessHasBeenSet = true;
64 m_access = value;
65 }
67 SetAccess(value);
68 return *this;
69 }
71
73
76 inline MembershipType GetMembershipType() const { return m_membershipType; }
77 inline bool MembershipTypeHasBeenSet() const { return m_membershipTypeHasBeenSet; }
78 inline void SetMembershipType(MembershipType value) {
79 m_membershipTypeHasBeenSet = true;
80 m_membershipType = value;
81 }
83 SetMembershipType(value);
84 return *this;
85 }
87 private:
88 Aws::String m_name;
89
91
93 bool m_nameHasBeenSet = false;
94 bool m_accessHasBeenSet = false;
95 bool m_membershipTypeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace QBusiness
100} // namespace Aws
AWS_QBUSINESS_API PrincipalGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
PrincipalGroup & WithMembershipType(MembershipType value)
MembershipType GetMembershipType() const
void SetMembershipType(MembershipType value)
const Aws::String & GetName() const
AWS_QBUSINESS_API PrincipalGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API PrincipalGroup()=default
PrincipalGroup & WithAccess(ReadAccessType value)
PrincipalGroup & WithName(NameT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccess(ReadAccessType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue