AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Permission.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/Operation.h>
9#include <aws/inspector2/model/Service.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 Inspector2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR2_API Permission() = default;
37 AWS_INSPECTOR2_API Permission(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Permission& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline Operation GetOperation() const { return m_operation; }
47 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
48 inline void SetOperation(Operation value) { m_operationHasBeenSet = true; m_operation = value; }
49 inline Permission& WithOperation(Operation value) { SetOperation(value); return *this;}
51
53
57 inline Service GetService() const { return m_service; }
58 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
59 inline void SetService(Service value) { m_serviceHasBeenSet = true; m_service = value; }
60 inline Permission& WithService(Service value) { SetService(value); return *this;}
62 private:
63
64 Operation m_operation{Operation::NOT_SET};
65 bool m_operationHasBeenSet = false;
66
67 Service m_service{Service::NOT_SET};
68 bool m_serviceHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Inspector2
73} // namespace Aws
AWS_INSPECTOR2_API Permission()=default
AWS_INSPECTOR2_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Permission & WithService(Service value)
Definition Permission.h:60
AWS_INSPECTOR2_API Permission(Aws::Utils::Json::JsonView jsonValue)
void SetService(Service value)
Definition Permission.h:59
void SetOperation(Operation value)
Definition Permission.h:48
Permission & WithOperation(Operation value)
Definition Permission.h:49
Aws::Utils::Json::JsonValue JsonValue