AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetAccessKeyLastUsedResult.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iam/model/AccessKeyLastUsed.h>
10#include <aws/iam/model/ResponseMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace IAM
26{
27namespace Model
28{
37 {
38 public:
42
43
45
48 inline const Aws::String& GetUserName() const{ return m_userName; }
49 inline void SetUserName(const Aws::String& value) { m_userName = value; }
50 inline void SetUserName(Aws::String&& value) { m_userName = std::move(value); }
51 inline void SetUserName(const char* value) { m_userName.assign(value); }
52 inline GetAccessKeyLastUsedResult& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
53 inline GetAccessKeyLastUsedResult& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
54 inline GetAccessKeyLastUsedResult& WithUserName(const char* value) { SetUserName(value); return *this;}
56
58
61 inline const AccessKeyLastUsed& GetAccessKeyLastUsed() const{ return m_accessKeyLastUsed; }
62 inline void SetAccessKeyLastUsed(const AccessKeyLastUsed& value) { m_accessKeyLastUsed = value; }
63 inline void SetAccessKeyLastUsed(AccessKeyLastUsed&& value) { m_accessKeyLastUsed = std::move(value); }
67
69
70 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
71 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
72 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
74 inline GetAccessKeyLastUsedResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
76 private:
77
78 Aws::String m_userName;
79
80 AccessKeyLastUsed m_accessKeyLastUsed;
81
82 ResponseMetadata m_responseMetadata;
83 };
84
85} // namespace Model
86} // namespace IAM
87} // namespace Aws
GetAccessKeyLastUsedResult & WithResponseMetadata(const ResponseMetadata &value)
AWS_IAM_API GetAccessKeyLastUsedResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetAccessKeyLastUsedResult & WithAccessKeyLastUsed(const AccessKeyLastUsed &value)
GetAccessKeyLastUsedResult & WithAccessKeyLastUsed(AccessKeyLastUsed &&value)
void SetResponseMetadata(const ResponseMetadata &value)
GetAccessKeyLastUsedResult & WithUserName(const char *value)
GetAccessKeyLastUsedResult & WithUserName(Aws::String &&value)
AWS_IAM_API GetAccessKeyLastUsedResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetAccessKeyLastUsedResult & WithUserName(const Aws::String &value)
GetAccessKeyLastUsedResult & WithResponseMetadata(ResponseMetadata &&value)
const AccessKeyLastUsed & GetAccessKeyLastUsed() const
void SetAccessKeyLastUsed(const AccessKeyLastUsed &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument