AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UnusedIamUserAccessKeyDetails.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 UnusedIamUserAccessKeyDetails();
42 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
51 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
52 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
53 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
54 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
55 inline UnusedIamUserAccessKeyDetails& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
56 inline UnusedIamUserAccessKeyDetails& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
57 inline UnusedIamUserAccessKeyDetails& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
59
61
64 inline const Aws::Utils::DateTime& GetLastAccessed() const{ return m_lastAccessed; }
65 inline bool LastAccessedHasBeenSet() const { return m_lastAccessedHasBeenSet; }
66 inline void SetLastAccessed(const Aws::Utils::DateTime& value) { m_lastAccessedHasBeenSet = true; m_lastAccessed = value; }
67 inline void SetLastAccessed(Aws::Utils::DateTime&& value) { m_lastAccessedHasBeenSet = true; m_lastAccessed = std::move(value); }
69 inline UnusedIamUserAccessKeyDetails& WithLastAccessed(Aws::Utils::DateTime&& value) { SetLastAccessed(std::move(value)); return *this;}
71 private:
72
73 Aws::String m_accessKeyId;
74 bool m_accessKeyIdHasBeenSet = false;
75
76 Aws::Utils::DateTime m_lastAccessed;
77 bool m_lastAccessedHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace AccessAnalyzer
82} // namespace Aws
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
UnusedIamUserAccessKeyDetails & WithAccessKeyId(Aws::String &&value)
UnusedIamUserAccessKeyDetails & WithLastAccessed(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API UnusedIamUserAccessKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
UnusedIamUserAccessKeyDetails & WithLastAccessed(const Aws::Utils::DateTime &value)
UnusedIamUserAccessKeyDetails & WithAccessKeyId(const Aws::String &value)
UnusedIamUserAccessKeyDetails & WithAccessKeyId(const char *value)
AWS_ACCESSANALYZER_API UnusedIamUserAccessKeyDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue