AWS SDK for C++  1.9.71
AWS SDK for C++
ResourcePermission.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace QuickSight
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
51  inline const Aws::String& GetPrincipal() const{ return m_principal; }
52 
63  inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
64 
75  inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
76 
87  inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
88 
99  inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
100 
111  inline ResourcePermission& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
112 
123  inline ResourcePermission& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
124 
135  inline ResourcePermission& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
136 
137 
141  inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
142 
146  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
147 
151  inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
152 
156  inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
157 
161  inline ResourcePermission& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
162 
166  inline ResourcePermission& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
167 
171  inline ResourcePermission& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
172 
176  inline ResourcePermission& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
177 
181  inline ResourcePermission& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
182 
183  private:
184 
185  Aws::String m_principal;
186  bool m_principalHasBeenSet;
187 
188  Aws::Vector<Aws::String> m_actions;
189  bool m_actionsHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace QuickSight
194 } // namespace Aws
QuickSight_EXPORTS.h
Aws::QuickSight::Model::ResourcePermission::GetActions
const Aws::Vector< Aws::String > & GetActions() const
Definition: ResourcePermission.h:141
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::ResourcePermission::SetPrincipal
void SetPrincipal(const Aws::String &value)
Definition: ResourcePermission.h:75
Aws::QuickSight::Model::ResourcePermission::WithPrincipal
ResourcePermission & WithPrincipal(Aws::String &&value)
Definition: ResourcePermission.h:123
AWSVector.h
Aws::QuickSight::Model::ResourcePermission::WithPrincipal
ResourcePermission & WithPrincipal(const char *value)
Definition: ResourcePermission.h:135
Aws::QuickSight::Model::ResourcePermission::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: ResourcePermission.h:146
Aws::QuickSight::Model::ResourcePermission::GetPrincipal
const Aws::String & GetPrincipal() const
Definition: ResourcePermission.h:51
Aws::QuickSight::Model::ResourcePermission
Definition: ResourcePermission.h:33
Aws::QuickSight::Model::ResourcePermission::SetActions
void SetActions(const Aws::Vector< Aws::String > &value)
Definition: ResourcePermission.h:151
Aws::QuickSight::Model::ResourcePermission::AddActions
ResourcePermission & AddActions(const char *value)
Definition: ResourcePermission.h:181
Aws::QuickSight::Model::ResourcePermission::WithActions
ResourcePermission & WithActions(Aws::Vector< Aws::String > &&value)
Definition: ResourcePermission.h:166
Aws::QuickSight::Model::ResourcePermission::SetPrincipal
void SetPrincipal(const char *value)
Definition: ResourcePermission.h:99
Aws::QuickSight::Model::ResourcePermission::SetActions
void SetActions(Aws::Vector< Aws::String > &&value)
Definition: ResourcePermission.h:156
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::QuickSight::Model::ResourcePermission::ResourcePermission
ResourcePermission(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::ResourcePermission::AddActions
ResourcePermission & AddActions(Aws::String &&value)
Definition: ResourcePermission.h:176
Aws::QuickSight::Model::ResourcePermission::ResourcePermission
ResourcePermission()
Aws::QuickSight::Model::ResourcePermission::WithActions
ResourcePermission & WithActions(const Aws::Vector< Aws::String > &value)
Definition: ResourcePermission.h:161
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::ResourcePermission::SetPrincipal
void SetPrincipal(Aws::String &&value)
Definition: ResourcePermission.h:87
Aws::QuickSight::Model::ResourcePermission::WithPrincipal
ResourcePermission & WithPrincipal(const Aws::String &value)
Definition: ResourcePermission.h:111
Aws::QuickSight::Model::ResourcePermission::PrincipalHasBeenSet
bool PrincipalHasBeenSet() const
Definition: ResourcePermission.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::ResourcePermission::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::QuickSight::Model::ResourcePermission::operator=
ResourcePermission & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::ResourcePermission::AddActions
ResourcePermission & AddActions(const Aws::String &value)
Definition: ResourcePermission.h:171