AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrackedActionLastAccessed.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace IAM
23{
24namespace Model
25{
26
35 {
36 public:
40
41 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::String& GetActionName() const{ return m_actionName; }
51 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
52 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
53 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
54 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
55 inline TrackedActionLastAccessed& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
56 inline TrackedActionLastAccessed& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
57 inline TrackedActionLastAccessed& WithActionName(const char* value) { SetActionName(value); return *this;}
59
61
62 inline const Aws::String& GetLastAccessedEntity() const{ return m_lastAccessedEntity; }
63 inline bool LastAccessedEntityHasBeenSet() const { return m_lastAccessedEntityHasBeenSet; }
64 inline void SetLastAccessedEntity(const Aws::String& value) { m_lastAccessedEntityHasBeenSet = true; m_lastAccessedEntity = value; }
65 inline void SetLastAccessedEntity(Aws::String&& value) { m_lastAccessedEntityHasBeenSet = true; m_lastAccessedEntity = std::move(value); }
66 inline void SetLastAccessedEntity(const char* value) { m_lastAccessedEntityHasBeenSet = true; m_lastAccessedEntity.assign(value); }
68 inline TrackedActionLastAccessed& WithLastAccessedEntity(Aws::String&& value) { SetLastAccessedEntity(std::move(value)); return *this;}
69 inline TrackedActionLastAccessed& WithLastAccessedEntity(const char* value) { SetLastAccessedEntity(value); return *this;}
71
73
82 inline const Aws::Utils::DateTime& GetLastAccessedTime() const{ return m_lastAccessedTime; }
83 inline bool LastAccessedTimeHasBeenSet() const { return m_lastAccessedTimeHasBeenSet; }
84 inline void SetLastAccessedTime(const Aws::Utils::DateTime& value) { m_lastAccessedTimeHasBeenSet = true; m_lastAccessedTime = value; }
85 inline void SetLastAccessedTime(Aws::Utils::DateTime&& value) { m_lastAccessedTimeHasBeenSet = true; m_lastAccessedTime = std::move(value); }
89
91
99 inline const Aws::String& GetLastAccessedRegion() const{ return m_lastAccessedRegion; }
100 inline bool LastAccessedRegionHasBeenSet() const { return m_lastAccessedRegionHasBeenSet; }
101 inline void SetLastAccessedRegion(const Aws::String& value) { m_lastAccessedRegionHasBeenSet = true; m_lastAccessedRegion = value; }
102 inline void SetLastAccessedRegion(Aws::String&& value) { m_lastAccessedRegionHasBeenSet = true; m_lastAccessedRegion = std::move(value); }
103 inline void SetLastAccessedRegion(const char* value) { m_lastAccessedRegionHasBeenSet = true; m_lastAccessedRegion.assign(value); }
105 inline TrackedActionLastAccessed& WithLastAccessedRegion(Aws::String&& value) { SetLastAccessedRegion(std::move(value)); return *this;}
106 inline TrackedActionLastAccessed& WithLastAccessedRegion(const char* value) { SetLastAccessedRegion(value); return *this;}
108 private:
109
110 Aws::String m_actionName;
111 bool m_actionNameHasBeenSet = false;
112
113 Aws::String m_lastAccessedEntity;
114 bool m_lastAccessedEntityHasBeenSet = false;
115
116 Aws::Utils::DateTime m_lastAccessedTime;
117 bool m_lastAccessedTimeHasBeenSet = false;
118
119 Aws::String m_lastAccessedRegion;
120 bool m_lastAccessedRegionHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace IAM
125} // namespace Aws
TrackedActionLastAccessed & WithLastAccessedRegion(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TrackedActionLastAccessed & WithLastAccessedEntity(Aws::String &&value)
TrackedActionLastAccessed & WithLastAccessedEntity(const char *value)
TrackedActionLastAccessed & WithActionName(const char *value)
TrackedActionLastAccessed & WithActionName(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TrackedActionLastAccessed & WithLastAccessedRegion(const Aws::String &value)
void SetLastAccessedTime(Aws::Utils::DateTime &&value)
TrackedActionLastAccessed & WithLastAccessedTime(const Aws::Utils::DateTime &value)
AWS_IAM_API TrackedActionLastAccessed & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrackedActionLastAccessed & WithLastAccessedEntity(const Aws::String &value)
TrackedActionLastAccessed & WithLastAccessedRegion(const char *value)
TrackedActionLastAccessed & WithActionName(const Aws::String &value)
TrackedActionLastAccessed & WithLastAccessedTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastAccessedTime() const
void SetLastAccessedTime(const Aws::Utils::DateTime &value)
AWS_IAM_API TrackedActionLastAccessed(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream