AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessConfiguration.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/model/MemberRelation.h>
10#include <aws/qbusiness/model/AccessControl.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 AccessConfiguration();
38 AWS_QBUSINESS_API AccessConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<AccessControl>& GetAccessControls() const{ return m_accessControls; }
48 inline bool AccessControlsHasBeenSet() const { return m_accessControlsHasBeenSet; }
49 inline void SetAccessControls(const Aws::Vector<AccessControl>& value) { m_accessControlsHasBeenSet = true; m_accessControls = value; }
50 inline void SetAccessControls(Aws::Vector<AccessControl>&& value) { m_accessControlsHasBeenSet = true; m_accessControls = std::move(value); }
52 inline AccessConfiguration& WithAccessControls(Aws::Vector<AccessControl>&& value) { SetAccessControls(std::move(value)); return *this;}
53 inline AccessConfiguration& AddAccessControls(const AccessControl& value) { m_accessControlsHasBeenSet = true; m_accessControls.push_back(value); return *this; }
54 inline AccessConfiguration& AddAccessControls(AccessControl&& value) { m_accessControlsHasBeenSet = true; m_accessControls.push_back(std::move(value)); return *this; }
56
58
62 inline const MemberRelation& GetMemberRelation() const{ return m_memberRelation; }
63 inline bool MemberRelationHasBeenSet() const { return m_memberRelationHasBeenSet; }
64 inline void SetMemberRelation(const MemberRelation& value) { m_memberRelationHasBeenSet = true; m_memberRelation = value; }
65 inline void SetMemberRelation(MemberRelation&& value) { m_memberRelationHasBeenSet = true; m_memberRelation = std::move(value); }
66 inline AccessConfiguration& WithMemberRelation(const MemberRelation& value) { SetMemberRelation(value); return *this;}
67 inline AccessConfiguration& WithMemberRelation(MemberRelation&& value) { SetMemberRelation(std::move(value)); return *this;}
69 private:
70
71 Aws::Vector<AccessControl> m_accessControls;
72 bool m_accessControlsHasBeenSet = false;
73
74 MemberRelation m_memberRelation;
75 bool m_memberRelationHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace QBusiness
80} // namespace Aws
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AccessControl > & GetAccessControls() const
AccessConfiguration & WithMemberRelation(const MemberRelation &value)
AccessConfiguration & WithAccessControls(const Aws::Vector< AccessControl > &value)
AccessConfiguration & WithMemberRelation(MemberRelation &&value)
const MemberRelation & GetMemberRelation() const
void SetMemberRelation(const MemberRelation &value)
AccessConfiguration & AddAccessControls(const AccessControl &value)
AWS_QBUSINESS_API AccessConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessConfiguration & AddAccessControls(AccessControl &&value)
AccessConfiguration & WithAccessControls(Aws::Vector< AccessControl > &&value)
void SetMemberRelation(MemberRelation &&value)
AWS_QBUSINESS_API AccessConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetAccessControls(Aws::Vector< AccessControl > &&value)
void SetAccessControls(const Aws::Vector< AccessControl > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue