AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetServiceLastAccessedDetailsResult.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/model/JobStatusType.h>
9#include <aws/iam/model/AccessAdvisorUsageGranularityType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/iam/model/ErrorDetails.h>
14#include <aws/iam/model/ResponseMetadata.h>
15#include <aws/iam/model/ServiceLastAccessed.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Xml
26{
27 class XmlDocument;
28} // namespace Xml
29} // namespace Utils
30namespace IAM
31{
32namespace Model
33{
35 {
36 public:
40
41
43
46 inline const JobStatusType& GetJobStatus() const{ return m_jobStatus; }
47 inline void SetJobStatus(const JobStatusType& value) { m_jobStatus = value; }
48 inline void SetJobStatus(JobStatusType&& value) { m_jobStatus = std::move(value); }
49 inline GetServiceLastAccessedDetailsResult& WithJobStatus(const JobStatusType& value) { SetJobStatus(value); return *this;}
50 inline GetServiceLastAccessedDetailsResult& WithJobStatus(JobStatusType&& value) { SetJobStatus(std::move(value)); return *this;}
52
54
59 inline const AccessAdvisorUsageGranularityType& GetJobType() const{ return m_jobType; }
60 inline void SetJobType(const AccessAdvisorUsageGranularityType& value) { m_jobType = value; }
61 inline void SetJobType(AccessAdvisorUsageGranularityType&& value) { m_jobType = std::move(value); }
65
67
71 inline const Aws::Utils::DateTime& GetJobCreationDate() const{ return m_jobCreationDate; }
72 inline void SetJobCreationDate(const Aws::Utils::DateTime& value) { m_jobCreationDate = value; }
73 inline void SetJobCreationDate(Aws::Utils::DateTime&& value) { m_jobCreationDate = std::move(value); }
77
79
83 inline const Aws::Vector<ServiceLastAccessed>& GetServicesLastAccessed() const{ return m_servicesLastAccessed; }
84 inline void SetServicesLastAccessed(const Aws::Vector<ServiceLastAccessed>& value) { m_servicesLastAccessed = value; }
85 inline void SetServicesLastAccessed(Aws::Vector<ServiceLastAccessed>&& value) { m_servicesLastAccessed = std::move(value); }
88 inline GetServiceLastAccessedDetailsResult& AddServicesLastAccessed(const ServiceLastAccessed& value) { m_servicesLastAccessed.push_back(value); return *this; }
89 inline GetServiceLastAccessedDetailsResult& AddServicesLastAccessed(ServiceLastAccessed&& value) { m_servicesLastAccessed.push_back(std::move(value)); return *this; }
91
93
99 inline const Aws::Utils::DateTime& GetJobCompletionDate() const{ return m_jobCompletionDate; }
100 inline void SetJobCompletionDate(const Aws::Utils::DateTime& value) { m_jobCompletionDate = value; }
101 inline void SetJobCompletionDate(Aws::Utils::DateTime&& value) { m_jobCompletionDate = std::move(value); }
105
107
116 inline bool GetIsTruncated() const{ return m_isTruncated; }
117 inline void SetIsTruncated(bool value) { m_isTruncated = value; }
118 inline GetServiceLastAccessedDetailsResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
120
122
127 inline const Aws::String& GetMarker() const{ return m_marker; }
128 inline void SetMarker(const Aws::String& value) { m_marker = value; }
129 inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
130 inline void SetMarker(const char* value) { m_marker.assign(value); }
131 inline GetServiceLastAccessedDetailsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
132 inline GetServiceLastAccessedDetailsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
133 inline GetServiceLastAccessedDetailsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
135
137
140 inline const ErrorDetails& GetError() const{ return m_error; }
141 inline void SetError(const ErrorDetails& value) { m_error = value; }
142 inline void SetError(ErrorDetails&& value) { m_error = std::move(value); }
143 inline GetServiceLastAccessedDetailsResult& WithError(const ErrorDetails& value) { SetError(value); return *this;}
144 inline GetServiceLastAccessedDetailsResult& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;}
146
148
149 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
150 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
151 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
155 private:
156
157 JobStatusType m_jobStatus;
158
160
161 Aws::Utils::DateTime m_jobCreationDate;
162
163 Aws::Vector<ServiceLastAccessed> m_servicesLastAccessed;
164
165 Aws::Utils::DateTime m_jobCompletionDate;
166
167 bool m_isTruncated;
168
169 Aws::String m_marker;
170
171 ErrorDetails m_error;
172
173 ResponseMetadata m_responseMetadata;
174 };
175
176} // namespace Model
177} // namespace IAM
178} // namespace Aws
const AccessAdvisorUsageGranularityType & GetJobType() const
GetServiceLastAccessedDetailsResult & WithServicesLastAccessed(Aws::Vector< ServiceLastAccessed > &&value)
GetServiceLastAccessedDetailsResult & WithServicesLastAccessed(const Aws::Vector< ServiceLastAccessed > &value)
GetServiceLastAccessedDetailsResult & AddServicesLastAccessed(const ServiceLastAccessed &value)
GetServiceLastAccessedDetailsResult & WithJobCompletionDate(Aws::Utils::DateTime &&value)
GetServiceLastAccessedDetailsResult & WithIsTruncated(bool value)
GetServiceLastAccessedDetailsResult & WithJobCreationDate(Aws::Utils::DateTime &&value)
GetServiceLastAccessedDetailsResult & WithMarker(Aws::String &&value)
GetServiceLastAccessedDetailsResult & AddServicesLastAccessed(ServiceLastAccessed &&value)
GetServiceLastAccessedDetailsResult & WithResponseMetadata(const ResponseMetadata &value)
void SetServicesLastAccessed(const Aws::Vector< ServiceLastAccessed > &value)
GetServiceLastAccessedDetailsResult & WithError(const ErrorDetails &value)
GetServiceLastAccessedDetailsResult & WithJobType(AccessAdvisorUsageGranularityType &&value)
AWS_IAM_API GetServiceLastAccessedDetailsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetServiceLastAccessedDetailsResult & WithResponseMetadata(ResponseMetadata &&value)
void SetJobType(const AccessAdvisorUsageGranularityType &value)
GetServiceLastAccessedDetailsResult & WithMarker(const Aws::String &value)
GetServiceLastAccessedDetailsResult & WithMarker(const char *value)
GetServiceLastAccessedDetailsResult & WithJobCreationDate(const Aws::Utils::DateTime &value)
const Aws::Vector< ServiceLastAccessed > & GetServicesLastAccessed() const
GetServiceLastAccessedDetailsResult & WithJobStatus(const JobStatusType &value)
AWS_IAM_API GetServiceLastAccessedDetailsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetServicesLastAccessed(Aws::Vector< ServiceLastAccessed > &&value)
GetServiceLastAccessedDetailsResult & WithJobCompletionDate(const Aws::Utils::DateTime &value)
GetServiceLastAccessedDetailsResult & WithError(ErrorDetails &&value)
GetServiceLastAccessedDetailsResult & WithJobStatus(JobStatusType &&value)
GetServiceLastAccessedDetailsResult & WithJobType(const AccessAdvisorUsageGranularityType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument