AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Operation& GetOperation() const{ return m_operation; }
47 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
48 inline void SetOperation(const Operation& value) { m_operationHasBeenSet = true; m_operation = value; }
49 inline void SetOperation(Operation&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
50 inline Permission& WithOperation(const Operation& value) { SetOperation(value); return *this;}
51 inline Permission& WithOperation(Operation&& value) { SetOperation(std::move(value)); return *this;}
53
55
59 inline const Service& GetService() const{ return m_service; }
60 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
61 inline void SetService(const Service& value) { m_serviceHasBeenSet = true; m_service = value; }
62 inline void SetService(Service&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
63 inline Permission& WithService(const Service& value) { SetService(value); return *this;}
64 inline Permission& WithService(Service&& value) { SetService(std::move(value)); return *this;}
66 private:
67
68 Operation m_operation;
69 bool m_operationHasBeenSet = false;
70
71 Service m_service;
72 bool m_serviceHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Inspector2
77} // namespace Aws
AWS_INSPECTOR2_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const Service & GetService() const
Definition Permission.h:59
Permission & WithOperation(const Operation &value)
Definition Permission.h:50
void SetOperation(Operation &&value)
Definition Permission.h:49
void SetOperation(const Operation &value)
Definition Permission.h:48
AWS_INSPECTOR2_API Permission(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Permission()
const Operation & GetOperation() const
Definition Permission.h:46
Permission & WithService(const Service &value)
Definition Permission.h:63
Permission & WithService(Service &&value)
Definition Permission.h:64
void SetService(Service &&value)
Definition Permission.h:62
Permission & WithOperation(Operation &&value)
Definition Permission.h:51
void SetService(const Service &value)
Definition Permission.h:61
Aws::Utils::Json::JsonValue JsonValue