AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UnusedIamRoleDetails.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AccessAnalyzer
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_ACCESSANALYZER_API UnusedIamRoleDetails();
39 AWS_ACCESSANALYZER_API UnusedIamRoleDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API UnusedIamRoleDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetLastAccessed() const{ return m_lastAccessed; }
49 inline bool LastAccessedHasBeenSet() const { return m_lastAccessedHasBeenSet; }
50 inline void SetLastAccessed(const Aws::Utils::DateTime& value) { m_lastAccessedHasBeenSet = true; m_lastAccessed = value; }
51 inline void SetLastAccessed(Aws::Utils::DateTime&& value) { m_lastAccessedHasBeenSet = true; m_lastAccessed = std::move(value); }
52 inline UnusedIamRoleDetails& WithLastAccessed(const Aws::Utils::DateTime& value) { SetLastAccessed(value); return *this;}
53 inline UnusedIamRoleDetails& WithLastAccessed(Aws::Utils::DateTime&& value) { SetLastAccessed(std::move(value)); return *this;}
55 private:
56
57 Aws::Utils::DateTime m_lastAccessed;
58 bool m_lastAccessedHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace AccessAnalyzer
63} // namespace Aws
AWS_ACCESSANALYZER_API UnusedIamRoleDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastAccessed() const
void SetLastAccessed(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API UnusedIamRoleDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastAccessed(const Aws::Utils::DateTime &value)
UnusedIamRoleDetails & WithLastAccessed(const Aws::Utils::DateTime &value)
UnusedIamRoleDetails & WithLastAccessed(Aws::Utils::DateTime &&value)
Aws::Utils::Json::JsonValue JsonValue