AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PrincipalGroup.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/ReadAccessType.h>
10#include <aws/qbusiness/model/MembershipType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QBUSINESS_API PrincipalGroup() = default;
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 PrincipalGroup& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
60 inline ReadAccessType GetAccess() const { return m_access; }
61 inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
62 inline void SetAccess(ReadAccessType value) { m_accessHasBeenSet = true; m_access = value; }
63 inline PrincipalGroup& WithAccess(ReadAccessType value) { SetAccess(value); return *this;}
65
67
70 inline MembershipType GetMembershipType() const { return m_membershipType; }
71 inline bool MembershipTypeHasBeenSet() const { return m_membershipTypeHasBeenSet; }
72 inline void SetMembershipType(MembershipType value) { m_membershipTypeHasBeenSet = true; m_membershipType = value; }
73 inline PrincipalGroup& WithMembershipType(MembershipType value) { SetMembershipType(value); return *this;}
75 private:
76
77 Aws::String m_name;
78 bool m_nameHasBeenSet = false;
79
81 bool m_accessHasBeenSet = false;
82
84 bool m_membershipTypeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace QBusiness
89} // 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