AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceAccessPolicy.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/model/Permission.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Greengrass
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GREENGRASS_API ResourceAccessPolicy();
36 AWS_GREENGRASS_API ResourceAccessPolicy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Permission& GetPermission() const{ return m_permission; }
47 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
48 inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
49 inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
50 inline ResourceAccessPolicy& WithPermission(const Permission& value) { SetPermission(value); return *this;}
51 inline ResourceAccessPolicy& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
62 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
63 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
64 inline ResourceAccessPolicy& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
65 inline ResourceAccessPolicy& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
66 inline ResourceAccessPolicy& WithResourceId(const char* value) { SetResourceId(value); return *this;}
68 private:
69
70 Permission m_permission;
71 bool m_permissionHasBeenSet = false;
72
73 Aws::String m_resourceId;
74 bool m_resourceIdHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Greengrass
79} // namespace Aws
ResourceAccessPolicy & WithResourceId(Aws::String &&value)
AWS_GREENGRASS_API ResourceAccessPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API ResourceAccessPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceAccessPolicy & WithResourceId(const char *value)
ResourceAccessPolicy & WithPermission(const Permission &value)
ResourceAccessPolicy & WithPermission(Permission &&value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceAccessPolicy & WithResourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue