AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
52 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
53 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
54 inline UnusedAction& WithAction(const Aws::String& value) { SetAction(value); return *this;}
55 inline UnusedAction& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
56 inline UnusedAction& WithAction(const char* value) { SetAction(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetLastAccessed() const{ return m_lastAccessed; }
64 inline bool LastAccessedHasBeenSet() const { return m_lastAccessedHasBeenSet; }
65 inline void SetLastAccessed(const Aws::Utils::DateTime& value) { m_lastAccessedHasBeenSet = true; m_lastAccessed = value; }
66 inline void SetLastAccessed(Aws::Utils::DateTime&& value) { m_lastAccessedHasBeenSet = true; m_lastAccessed = std::move(value); }
67 inline UnusedAction& WithLastAccessed(const Aws::Utils::DateTime& value) { SetLastAccessed(value); return *this;}
68 inline UnusedAction& WithLastAccessed(Aws::Utils::DateTime&& value) { SetLastAccessed(std::move(value)); return *this;}
70 private:
71
72 Aws::String m_action;
73 bool m_actionHasBeenSet = false;
74
75 Aws::Utils::DateTime m_lastAccessed;
76 bool m_lastAccessedHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace AccessAnalyzer
81} // namespace Aws
UnusedAction & WithAction(Aws::String &&value)
UnusedAction & WithLastAccessed(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API UnusedAction(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API UnusedAction()
const Aws::Utils::DateTime & GetLastAccessed() const
void SetLastAccessed(const Aws::Utils::DateTime &value)
AWS_ACCESSANALYZER_API UnusedAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAction() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
UnusedAction & WithAction(const Aws::String &value)
void SetAction(const Aws::String &value)
UnusedAction & WithLastAccessed(const Aws::Utils::DateTime &value)
void SetLastAccessed(Aws::Utils::DateTime &&value)
void SetAction(Aws::String &&value)
UnusedAction & WithAction(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue