AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Access.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.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 AccessAnalyzer
23{
24namespace Model
25{
26
33 class Access
34 {
35 public:
36 AWS_ACCESSANALYZER_API Access() = default;
37 AWS_ACCESSANALYZER_API Access(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API Access& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
48 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
49 template<typename ActionsT = Aws::Vector<Aws::String>>
50 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
51 template<typename ActionsT = Aws::Vector<Aws::String>>
52 Access& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
53 template<typename ActionsT = Aws::String>
54 Access& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
56
58
64 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
65 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
66 template<typename ResourcesT = Aws::Vector<Aws::String>>
67 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
68 template<typename ResourcesT = Aws::Vector<Aws::String>>
69 Access& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
70 template<typename ResourcesT = Aws::String>
71 Access& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
73 private:
74
76 bool m_actionsHasBeenSet = false;
77
78 Aws::Vector<Aws::String> m_resources;
79 bool m_resourcesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace AccessAnalyzer
84} // namespace Aws
const Aws::Vector< Aws::String > & GetResources() const
Definition Access.h:64
const Aws::Vector< Aws::String > & GetActions() const
Definition Access.h:47
Access & AddResources(ResourcesT &&value)
Definition Access.h:71
AWS_ACCESSANALYZER_API Access()=default
void SetResources(ResourcesT &&value)
Definition Access.h:67
Access & AddActions(ActionsT &&value)
Definition Access.h:54
AWS_ACCESSANALYZER_API Access(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Access & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
Access & WithResources(ResourcesT &&value)
Definition Access.h:69
Access & WithActions(ActionsT &&value)
Definition Access.h:52
void SetActions(ActionsT &&value)
Definition Access.h:50
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue