AWS SDK for C++  1.8.126
AWS SDK for C++
ResourceAccessPolicy.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 Greengrass
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
45  inline const Permission& GetPermission() const{ return m_permission; }
46 
51  inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
52 
57  inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
58 
63  inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
64 
69  inline ResourceAccessPolicy& WithPermission(const Permission& value) { SetPermission(value); return *this;}
70 
75  inline ResourceAccessPolicy& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
76 
77 
82  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
83 
88  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
89 
94  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
95 
100  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
101 
106  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
107 
112  inline ResourceAccessPolicy& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
113 
118  inline ResourceAccessPolicy& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
119 
124  inline ResourceAccessPolicy& WithResourceId(const char* value) { SetResourceId(value); return *this;}
125 
126  private:
127 
128  Permission m_permission;
129  bool m_permissionHasBeenSet;
130 
131  Aws::String m_resourceId;
132  bool m_resourceIdHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace Greengrass
137 } // namespace Aws
Aws::Greengrass::Model::ResourceAccessPolicy::operator=
ResourceAccessPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Greengrass::Model::ResourceAccessPolicy::SetResourceId
void SetResourceId(const char *value)
Definition: ResourceAccessPolicy.h:106
Permission.h
Greengrass_EXPORTS.h
Aws::Greengrass::Model::Permission
Permission
Definition: Permission.h:17
AWS_GREENGRASS_API
#define AWS_GREENGRASS_API
Definition: Greengrass_EXPORTS.h:28
Aws::Greengrass::Model::ResourceAccessPolicy::WithResourceId
ResourceAccessPolicy & WithResourceId(Aws::String &&value)
Definition: ResourceAccessPolicy.h:118
Aws::Greengrass::Model::ResourceAccessPolicy::WithPermission
ResourceAccessPolicy & WithPermission(Permission &&value)
Definition: ResourceAccessPolicy.h:75
Aws::Greengrass::Model::ResourceAccessPolicy::WithResourceId
ResourceAccessPolicy & WithResourceId(const char *value)
Definition: ResourceAccessPolicy.h:124
Aws::Greengrass::Model::ResourceAccessPolicy::SetPermission
void SetPermission(const Permission &value)
Definition: ResourceAccessPolicy.h:57
Aws::Greengrass::Model::ResourceAccessPolicy::ResourceAccessPolicy
ResourceAccessPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::Greengrass::Model::ResourceAccessPolicy
Definition: ResourceAccessPolicy.h:33
Aws::Greengrass::Model::ResourceAccessPolicy::GetPermission
const Permission & GetPermission() const
Definition: ResourceAccessPolicy.h:45
Aws::Greengrass::Model::ResourceAccessPolicy::WithResourceId
ResourceAccessPolicy & WithResourceId(const Aws::String &value)
Definition: ResourceAccessPolicy.h:112
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Greengrass::Model::ResourceAccessPolicy::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ResourceAccessPolicy.h:88
Aws::Greengrass::Model::ResourceAccessPolicy::SetPermission
void SetPermission(Permission &&value)
Definition: ResourceAccessPolicy.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::Greengrass::Model::ResourceAccessPolicy::PermissionHasBeenSet
bool PermissionHasBeenSet() const
Definition: ResourceAccessPolicy.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Greengrass::Model::ResourceAccessPolicy::ResourceAccessPolicy
ResourceAccessPolicy()
Aws::Greengrass::Model::ResourceAccessPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Greengrass::Model::ResourceAccessPolicy::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ResourceAccessPolicy.h:94
Aws::Greengrass::Model::ResourceAccessPolicy::WithPermission
ResourceAccessPolicy & WithPermission(const Permission &value)
Definition: ResourceAccessPolicy.h:69
Aws::Greengrass::Model::ResourceAccessPolicy::GetResourceId
const Aws::String & GetResourceId() const
Definition: ResourceAccessPolicy.h:82
Aws::Greengrass::Model::ResourceAccessPolicy::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ResourceAccessPolicy.h:100