AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API Permission() = default;
32 AWS_INSPECTOR2_API Permission(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API Permission& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline Service GetService() const { return m_service; }
42 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
43 inline void SetService(Service value) {
44 m_serviceHasBeenSet = true;
45 m_service = value;
46 }
48 SetService(value);
49 return *this;
50 }
52
54
57 inline Operation GetOperation() const { return m_operation; }
58 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
59 inline void SetOperation(Operation value) {
60 m_operationHasBeenSet = true;
61 m_operation = value;
62 }
64 SetOperation(value);
65 return *this;
66 }
68 private:
69 Service m_service{Service::NOT_SET};
70
71 Operation m_operation{Operation::NOT_SET};
72 bool m_serviceHasBeenSet = false;
73 bool m_operationHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Inspector2
78} // 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:47
AWS_INSPECTOR2_API Permission(Aws::Utils::Json::JsonView jsonValue)
void SetService(Service value)
Definition Permission.h:43
void SetOperation(Operation value)
Definition Permission.h:59
Permission & WithOperation(Operation value)
Definition Permission.h:63
Aws::Utils::Json::JsonValue JsonValue