AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
50 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
51 inline Access& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
52 inline Access& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
53 inline Access& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
54 inline Access& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
55 inline Access& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
57
59
64 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
65 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
66 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
67 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
68 inline Access& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
69 inline Access& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
70 inline Access& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
71 inline Access& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
72 inline Access& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
74 private:
75
77 bool m_actionsHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_resources;
80 bool m_resourcesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace AccessAnalyzer
85} // 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 & WithResources(Aws::Vector< Aws::String > &&value)
Definition Access.h:69
Access & WithResources(const Aws::Vector< Aws::String > &value)
Definition Access.h:68
void SetActions(Aws::Vector< Aws::String > &&value)
Definition Access.h:50
Access & AddResources(const char *value)
Definition Access.h:72
void SetActions(const Aws::Vector< Aws::String > &value)
Definition Access.h:49
Access & AddActions(Aws::String &&value)
Definition Access.h:54
Access & AddActions(const Aws::String &value)
Definition Access.h:53
Access & AddResources(const Aws::String &value)
Definition Access.h:70
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
void SetResources(Aws::Vector< Aws::String > &&value)
Definition Access.h:67
Access & AddResources(Aws::String &&value)
Definition Access.h:71
Access & WithActions(const Aws::Vector< Aws::String > &value)
Definition Access.h:51
Access & AddActions(const char *value)
Definition Access.h:55
Access & WithActions(Aws::Vector< Aws::String > &&value)
Definition Access.h:52
AWS_ACCESSANALYZER_API Access()
void SetResources(const Aws::Vector< Aws::String > &value)
Definition Access.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue