AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PermissionModel.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resiliencehub/model/PermissionModelType.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 ResilienceHub
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_RESILIENCEHUB_API PermissionModel();
39 AWS_RESILIENCEHUB_API PermissionModel(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESILIENCEHUB_API PermissionModel& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
55 inline const Aws::Vector<Aws::String>& GetCrossAccountRoleArns() const{ return m_crossAccountRoleArns; }
56 inline bool CrossAccountRoleArnsHasBeenSet() const { return m_crossAccountRoleArnsHasBeenSet; }
57 inline void SetCrossAccountRoleArns(const Aws::Vector<Aws::String>& value) { m_crossAccountRoleArnsHasBeenSet = true; m_crossAccountRoleArns = value; }
58 inline void SetCrossAccountRoleArns(Aws::Vector<Aws::String>&& value) { m_crossAccountRoleArnsHasBeenSet = true; m_crossAccountRoleArns = std::move(value); }
61 inline PermissionModel& AddCrossAccountRoleArns(const Aws::String& value) { m_crossAccountRoleArnsHasBeenSet = true; m_crossAccountRoleArns.push_back(value); return *this; }
62 inline PermissionModel& AddCrossAccountRoleArns(Aws::String&& value) { m_crossAccountRoleArnsHasBeenSet = true; m_crossAccountRoleArns.push_back(std::move(value)); return *this; }
63 inline PermissionModel& AddCrossAccountRoleArns(const char* value) { m_crossAccountRoleArnsHasBeenSet = true; m_crossAccountRoleArns.push_back(value); return *this; }
65
67
76 inline const Aws::String& GetInvokerRoleName() const{ return m_invokerRoleName; }
77 inline bool InvokerRoleNameHasBeenSet() const { return m_invokerRoleNameHasBeenSet; }
78 inline void SetInvokerRoleName(const Aws::String& value) { m_invokerRoleNameHasBeenSet = true; m_invokerRoleName = value; }
79 inline void SetInvokerRoleName(Aws::String&& value) { m_invokerRoleNameHasBeenSet = true; m_invokerRoleName = std::move(value); }
80 inline void SetInvokerRoleName(const char* value) { m_invokerRoleNameHasBeenSet = true; m_invokerRoleName.assign(value); }
81 inline PermissionModel& WithInvokerRoleName(const Aws::String& value) { SetInvokerRoleName(value); return *this;}
82 inline PermissionModel& WithInvokerRoleName(Aws::String&& value) { SetInvokerRoleName(std::move(value)); return *this;}
83 inline PermissionModel& WithInvokerRoleName(const char* value) { SetInvokerRoleName(value); return *this;}
85
87
92 inline const PermissionModelType& GetType() const{ return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(const PermissionModelType& value) { m_typeHasBeenSet = true; m_type = value; }
95 inline void SetType(PermissionModelType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
96 inline PermissionModel& WithType(const PermissionModelType& value) { SetType(value); return *this;}
97 inline PermissionModel& WithType(PermissionModelType&& value) { SetType(std::move(value)); return *this;}
99 private:
100
101 Aws::Vector<Aws::String> m_crossAccountRoleArns;
102 bool m_crossAccountRoleArnsHasBeenSet = false;
103
104 Aws::String m_invokerRoleName;
105 bool m_invokerRoleNameHasBeenSet = false;
106
107 PermissionModelType m_type;
108 bool m_typeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace ResilienceHub
113} // namespace Aws
PermissionModel & WithType(PermissionModelType &&value)
AWS_RESILIENCEHUB_API PermissionModel(Aws::Utils::Json::JsonView jsonValue)
PermissionModel & AddCrossAccountRoleArns(Aws::String &&value)
PermissionModel & WithInvokerRoleName(const char *value)
PermissionModel & WithCrossAccountRoleArns(const Aws::Vector< Aws::String > &value)
void SetInvokerRoleName(const Aws::String &value)
PermissionModel & WithInvokerRoleName(Aws::String &&value)
const PermissionModelType & GetType() const
void SetCrossAccountRoleArns(const Aws::Vector< Aws::String > &value)
const Aws::String & GetInvokerRoleName() const
void SetType(const PermissionModelType &value)
AWS_RESILIENCEHUB_API PermissionModel & operator=(Aws::Utils::Json::JsonView jsonValue)
PermissionModel & AddCrossAccountRoleArns(const Aws::String &value)
PermissionModel & WithType(const PermissionModelType &value)
PermissionModel & AddCrossAccountRoleArns(const char *value)
PermissionModel & WithInvokerRoleName(const Aws::String &value)
void SetCrossAccountRoleArns(Aws::Vector< Aws::String > &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInvokerRoleName(Aws::String &&value)
PermissionModel & WithCrossAccountRoleArns(Aws::Vector< Aws::String > &&value)
void SetType(PermissionModelType &&value)
const Aws::Vector< Aws::String > & GetCrossAccountRoleArns() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue