AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UnusedPermissionDetails.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 <aws/core/utils/DateTime.h>
11#include <aws/accessanalyzer/model/UnusedAction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_ACCESSANALYZER_API UnusedPermissionDetails();
42 AWS_ACCESSANALYZER_API UnusedPermissionDetails(Aws::Utils::Json::JsonView jsonValue);
44 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::Vector<UnusedAction>& GetActions() const{ return m_actions; }
53 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
54 inline void SetActions(const Aws::Vector<UnusedAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
55 inline void SetActions(Aws::Vector<UnusedAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
56 inline UnusedPermissionDetails& WithActions(const Aws::Vector<UnusedAction>& value) { SetActions(value); return *this;}
57 inline UnusedPermissionDetails& WithActions(Aws::Vector<UnusedAction>&& value) { SetActions(std::move(value)); return *this;}
58 inline UnusedPermissionDetails& AddActions(const UnusedAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
59 inline UnusedPermissionDetails& AddActions(UnusedAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
61
63
67 inline const Aws::String& GetServiceNamespace() const{ return m_serviceNamespace; }
68 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
69 inline void SetServiceNamespace(const Aws::String& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
70 inline void SetServiceNamespace(Aws::String&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
71 inline void SetServiceNamespace(const char* value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace.assign(value); }
72 inline UnusedPermissionDetails& WithServiceNamespace(const Aws::String& value) { SetServiceNamespace(value); return *this;}
73 inline UnusedPermissionDetails& WithServiceNamespace(Aws::String&& value) { SetServiceNamespace(std::move(value)); return *this;}
74 inline UnusedPermissionDetails& WithServiceNamespace(const char* value) { SetServiceNamespace(value); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetLastAccessed() const{ return m_lastAccessed; }
82 inline bool LastAccessedHasBeenSet() const { return m_lastAccessedHasBeenSet; }
83 inline void SetLastAccessed(const Aws::Utils::DateTime& value) { m_lastAccessedHasBeenSet = true; m_lastAccessed = value; }
84 inline void SetLastAccessed(Aws::Utils::DateTime&& value) { m_lastAccessedHasBeenSet = true; m_lastAccessed = std::move(value); }
86 inline UnusedPermissionDetails& WithLastAccessed(Aws::Utils::DateTime&& value) { SetLastAccessed(std::move(value)); return *this;}
88 private:
89
91 bool m_actionsHasBeenSet = false;
92
93 Aws::String m_serviceNamespace;
94 bool m_serviceNamespaceHasBeenSet = false;
95
96 Aws::Utils::DateTime m_lastAccessed;
97 bool m_lastAccessedHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace AccessAnalyzer
102} // namespace Aws
UnusedPermissionDetails & WithActions(Aws::Vector< UnusedAction > &&value)
UnusedPermissionDetails & WithServiceNamespace(const char *value)
const Aws::Vector< UnusedAction > & GetActions() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
UnusedPermissionDetails & AddActions(const UnusedAction &value)
void SetActions(const Aws::Vector< UnusedAction > &value)
void SetLastAccessed(const Aws::Utils::DateTime &value)
UnusedPermissionDetails & WithServiceNamespace(Aws::String &&value)
AWS_ACCESSANALYZER_API UnusedPermissionDetails(Aws::Utils::Json::JsonView jsonValue)
UnusedPermissionDetails & WithServiceNamespace(const Aws::String &value)
void SetActions(Aws::Vector< UnusedAction > &&value)
AWS_ACCESSANALYZER_API UnusedPermissionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
UnusedPermissionDetails & AddActions(UnusedAction &&value)
UnusedPermissionDetails & WithActions(const Aws::Vector< UnusedAction > &value)
UnusedPermissionDetails & WithLastAccessed(Aws::Utils::DateTime &&value)
UnusedPermissionDetails & WithLastAccessed(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue