AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourcePermission.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_QUICKSIGHT_API ResourcePermission();
36 AWS_QUICKSIGHT_API ResourcePermission(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
52 inline const Aws::String& GetPrincipal() const{ return m_principal; }
53 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
54 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
55 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
56 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
57 inline ResourcePermission& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
58 inline ResourcePermission& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
59 inline ResourcePermission& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
61
63
66 inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
67 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
68 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
69 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
70 inline ResourcePermission& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
71 inline ResourcePermission& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
72 inline ResourcePermission& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
73 inline ResourcePermission& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
74 inline ResourcePermission& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
76 private:
77
78 Aws::String m_principal;
79 bool m_principalHasBeenSet = false;
80
82 bool m_actionsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace QuickSight
87} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
ResourcePermission & WithPrincipal(const char *value)
ResourcePermission & WithActions(Aws::Vector< Aws::String > &&value)
AWS_QUICKSIGHT_API ResourcePermission & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourcePermission & AddActions(Aws::String &&value)
void SetActions(const Aws::Vector< Aws::String > &value)
ResourcePermission & AddActions(const char *value)
const Aws::Vector< Aws::String > & GetActions() const
ResourcePermission & AddActions(const Aws::String &value)
ResourcePermission & WithActions(const Aws::Vector< Aws::String > &value)
void SetActions(Aws::Vector< Aws::String > &&value)
AWS_QUICKSIGHT_API ResourcePermission(Aws::Utils::Json::JsonView jsonValue)
ResourcePermission & WithPrincipal(const Aws::String &value)
ResourcePermission & WithPrincipal(Aws::String &&value)
void SetPrincipal(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue