AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UnusedAction.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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
37 {
38 public:
39 AWS_ACCESSANALYZER_API UnusedAction() = default;
40 AWS_ACCESSANALYZER_API UnusedAction(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API UnusedAction& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAction() const { return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 template<typename ActionT = Aws::String>
52 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
53 template<typename ActionT = Aws::String>
54 UnusedAction& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetLastAccessed() const { return m_lastAccessed; }
62 inline bool LastAccessedHasBeenSet() const { return m_lastAccessedHasBeenSet; }
63 template<typename LastAccessedT = Aws::Utils::DateTime>
64 void SetLastAccessed(LastAccessedT&& value) { m_lastAccessedHasBeenSet = true; m_lastAccessed = std::forward<LastAccessedT>(value); }
65 template<typename LastAccessedT = Aws::Utils::DateTime>
66 UnusedAction& WithLastAccessed(LastAccessedT&& value) { SetLastAccessed(std::forward<LastAccessedT>(value)); return *this;}
68 private:
69
70 Aws::String m_action;
71 bool m_actionHasBeenSet = false;
72
73 Aws::Utils::DateTime m_lastAccessed{};
74 bool m_lastAccessedHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace AccessAnalyzer
79} // namespace Aws
UnusedAction & WithLastAccessed(LastAccessedT &&value)
AWS_ACCESSANALYZER_API UnusedAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastAccessed() const
AWS_ACCESSANALYZER_API UnusedAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAction() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastAccessed(LastAccessedT &&value)
AWS_ACCESSANALYZER_API UnusedAction()=default
UnusedAction & WithAction(ActionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue