AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38 AWS_QBUSINESS_API PrincipalGroup(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline PrincipalGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline PrincipalGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline PrincipalGroup& WithName(const char* value) { SetName(value); return *this;}
56
58
62 inline const ReadAccessType& GetAccess() const{ return m_access; }
63 inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
64 inline void SetAccess(const ReadAccessType& value) { m_accessHasBeenSet = true; m_access = value; }
65 inline void SetAccess(ReadAccessType&& value) { m_accessHasBeenSet = true; m_access = std::move(value); }
66 inline PrincipalGroup& WithAccess(const ReadAccessType& value) { SetAccess(value); return *this;}
67 inline PrincipalGroup& WithAccess(ReadAccessType&& value) { SetAccess(std::move(value)); return *this;}
69
71
74 inline const MembershipType& GetMembershipType() const{ return m_membershipType; }
75 inline bool MembershipTypeHasBeenSet() const { return m_membershipTypeHasBeenSet; }
76 inline void SetMembershipType(const MembershipType& value) { m_membershipTypeHasBeenSet = true; m_membershipType = value; }
77 inline void SetMembershipType(MembershipType&& value) { m_membershipTypeHasBeenSet = true; m_membershipType = std::move(value); }
78 inline PrincipalGroup& WithMembershipType(const MembershipType& value) { SetMembershipType(value); return *this;}
79 inline PrincipalGroup& WithMembershipType(MembershipType&& value) { SetMembershipType(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
86 ReadAccessType m_access;
87 bool m_accessHasBeenSet = false;
88
89 MembershipType m_membershipType;
90 bool m_membershipTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace QBusiness
95} // namespace Aws
AWS_QBUSINESS_API PrincipalGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAccess(const ReadAccessType &value)
PrincipalGroup & WithAccess(ReadAccessType &&value)
PrincipalGroup & WithMembershipType(MembershipType &&value)
const MembershipType & GetMembershipType() const
PrincipalGroup & WithAccess(const ReadAccessType &value)
const Aws::String & GetName() const
void SetMembershipType(MembershipType &&value)
AWS_QBUSINESS_API PrincipalGroup(Aws::Utils::Json::JsonView jsonValue)
const ReadAccessType & GetAccess() const
void SetMembershipType(const MembershipType &value)
void SetAccess(ReadAccessType &&value)
PrincipalGroup & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
PrincipalGroup & WithName(Aws::String &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
PrincipalGroup & WithMembershipType(const MembershipType &value)
PrincipalGroup & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue