AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UnusedAction.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AccessAnalyzer {
21namespace Model {
22
33 public:
34 AWS_ACCESSANALYZER_API UnusedAction() = default;
35 AWS_ACCESSANALYZER_API UnusedAction(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ACCESSANALYZER_API UnusedAction& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAction() const { return m_action; }
44 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
45 template <typename ActionT = Aws::String>
46 void SetAction(ActionT&& value) {
47 m_actionHasBeenSet = true;
48 m_action = std::forward<ActionT>(value);
49 }
50 template <typename ActionT = Aws::String>
51 UnusedAction& WithAction(ActionT&& value) {
52 SetAction(std::forward<ActionT>(value));
53 return *this;
54 }
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) {
65 m_lastAccessedHasBeenSet = true;
66 m_lastAccessed = std::forward<LastAccessedT>(value);
67 }
68 template <typename LastAccessedT = Aws::Utils::DateTime>
69 UnusedAction& WithLastAccessed(LastAccessedT&& value) {
70 SetLastAccessed(std::forward<LastAccessedT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_action;
76
77 Aws::Utils::DateTime m_lastAccessed{};
78 bool m_actionHasBeenSet = false;
79 bool m_lastAccessedHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace AccessAnalyzer
84} // 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