/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { class GetServiceLastAccessedDetailsResult { public: AWS_IAM_API GetServiceLastAccessedDetailsResult(); AWS_IAM_API GetServiceLastAccessedDetailsResult(const Aws::AmazonWebServiceResult& result); AWS_IAM_API GetServiceLastAccessedDetailsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The status of the job.

*/ inline const JobStatusType& GetJobStatus() const{ return m_jobStatus; } /** *

The status of the job.

*/ inline void SetJobStatus(const JobStatusType& value) { m_jobStatus = value; } /** *

The status of the job.

*/ inline void SetJobStatus(JobStatusType&& value) { m_jobStatus = std::move(value); } /** *

The status of the job.

*/ inline GetServiceLastAccessedDetailsResult& WithJobStatus(const JobStatusType& value) { SetJobStatus(value); return *this;} /** *

The status of the job.

*/ inline GetServiceLastAccessedDetailsResult& WithJobStatus(JobStatusType&& value) { SetJobStatus(std::move(value)); return *this;} /** *

The type of job. Service jobs return information about when each service was * last accessed. Action jobs also include information about when tracked actions * within the service were last accessed.

*/ inline const AccessAdvisorUsageGranularityType& GetJobType() const{ return m_jobType; } /** *

The type of job. Service jobs return information about when each service was * last accessed. Action jobs also include information about when tracked actions * within the service were last accessed.

*/ inline void SetJobType(const AccessAdvisorUsageGranularityType& value) { m_jobType = value; } /** *

The type of job. Service jobs return information about when each service was * last accessed. Action jobs also include information about when tracked actions * within the service were last accessed.

*/ inline void SetJobType(AccessAdvisorUsageGranularityType&& value) { m_jobType = std::move(value); } /** *

The type of job. Service jobs return information about when each service was * last accessed. Action jobs also include information about when tracked actions * within the service were last accessed.

*/ inline GetServiceLastAccessedDetailsResult& WithJobType(const AccessAdvisorUsageGranularityType& value) { SetJobType(value); return *this;} /** *

The type of job. Service jobs return information about when each service was * last accessed. Action jobs also include information about when tracked actions * within the service were last accessed.

*/ inline GetServiceLastAccessedDetailsResult& WithJobType(AccessAdvisorUsageGranularityType&& value) { SetJobType(std::move(value)); return *this;} /** *

The date and time, in ISO 8601 * date-time format, when the report job was created.

*/ inline const Aws::Utils::DateTime& GetJobCreationDate() const{ return m_jobCreationDate; } /** *

The date and time, in ISO 8601 * date-time format, when the report job was created.

*/ inline void SetJobCreationDate(const Aws::Utils::DateTime& value) { m_jobCreationDate = value; } /** *

The date and time, in ISO 8601 * date-time format, when the report job was created.

*/ inline void SetJobCreationDate(Aws::Utils::DateTime&& value) { m_jobCreationDate = std::move(value); } /** *

The date and time, in ISO 8601 * date-time format, when the report job was created.

*/ inline GetServiceLastAccessedDetailsResult& WithJobCreationDate(const Aws::Utils::DateTime& value) { SetJobCreationDate(value); return *this;} /** *

The date and time, in ISO 8601 * date-time format, when the report job was created.

*/ inline GetServiceLastAccessedDetailsResult& WithJobCreationDate(Aws::Utils::DateTime&& value) { SetJobCreationDate(std::move(value)); return *this;} /** *

ServiceLastAccessed object that contains details about the * most recent attempt to access the service.

*/ inline const Aws::Vector& GetServicesLastAccessed() const{ return m_servicesLastAccessed; } /** *

ServiceLastAccessed object that contains details about the * most recent attempt to access the service.

*/ inline void SetServicesLastAccessed(const Aws::Vector& value) { m_servicesLastAccessed = value; } /** *

ServiceLastAccessed object that contains details about the * most recent attempt to access the service.

*/ inline void SetServicesLastAccessed(Aws::Vector&& value) { m_servicesLastAccessed = std::move(value); } /** *

ServiceLastAccessed object that contains details about the * most recent attempt to access the service.

*/ inline GetServiceLastAccessedDetailsResult& WithServicesLastAccessed(const Aws::Vector& value) { SetServicesLastAccessed(value); return *this;} /** *

ServiceLastAccessed object that contains details about the * most recent attempt to access the service.

*/ inline GetServiceLastAccessedDetailsResult& WithServicesLastAccessed(Aws::Vector&& value) { SetServicesLastAccessed(std::move(value)); return *this;} /** *

ServiceLastAccessed object that contains details about the * most recent attempt to access the service.

*/ inline GetServiceLastAccessedDetailsResult& AddServicesLastAccessed(const ServiceLastAccessed& value) { m_servicesLastAccessed.push_back(value); return *this; } /** *

ServiceLastAccessed object that contains details about the * most recent attempt to access the service.

*/ inline GetServiceLastAccessedDetailsResult& AddServicesLastAccessed(ServiceLastAccessed&& value) { m_servicesLastAccessed.push_back(std::move(value)); return *this; } /** *

The date and time, in ISO 8601 * date-time format, when the generated report job was completed or failed.

*

This field is null if the job is still in progress, as indicated by a job * status value of IN_PROGRESS.

*/ inline const Aws::Utils::DateTime& GetJobCompletionDate() const{ return m_jobCompletionDate; } /** *

The date and time, in ISO 8601 * date-time format, when the generated report job was completed or failed.

*

This field is null if the job is still in progress, as indicated by a job * status value of IN_PROGRESS.

*/ inline void SetJobCompletionDate(const Aws::Utils::DateTime& value) { m_jobCompletionDate = value; } /** *

The date and time, in ISO 8601 * date-time format, when the generated report job was completed or failed.

*

This field is null if the job is still in progress, as indicated by a job * status value of IN_PROGRESS.

*/ inline void SetJobCompletionDate(Aws::Utils::DateTime&& value) { m_jobCompletionDate = std::move(value); } /** *

The date and time, in ISO 8601 * date-time format, when the generated report job was completed or failed.

*

This field is null if the job is still in progress, as indicated by a job * status value of IN_PROGRESS.

*/ inline GetServiceLastAccessedDetailsResult& WithJobCompletionDate(const Aws::Utils::DateTime& value) { SetJobCompletionDate(value); return *this;} /** *

The date and time, in ISO 8601 * date-time format, when the generated report job was completed or failed.

*

This field is null if the job is still in progress, as indicated by a job * status value of IN_PROGRESS.

*/ inline GetServiceLastAccessedDetailsResult& WithJobCompletionDate(Aws::Utils::DateTime&& value) { SetJobCompletionDate(std::move(value)); return *this;} /** *

A flag that indicates whether there are more items to return. If your results * were truncated, you can make a subsequent pagination request using the * Marker request parameter to retrieve more items. Note that IAM * might return fewer than the MaxItems number of results even when * there are more results available. We recommend that you check * IsTruncated after every call to ensure that you receive all your * results.

*/ inline bool GetIsTruncated() const{ return m_isTruncated; } /** *

A flag that indicates whether there are more items to return. If your results * were truncated, you can make a subsequent pagination request using the * Marker request parameter to retrieve more items. Note that IAM * might return fewer than the MaxItems number of results even when * there are more results available. We recommend that you check * IsTruncated after every call to ensure that you receive all your * results.

*/ inline void SetIsTruncated(bool value) { m_isTruncated = value; } /** *

A flag that indicates whether there are more items to return. If your results * were truncated, you can make a subsequent pagination request using the * Marker request parameter to retrieve more items. Note that IAM * might return fewer than the MaxItems number of results even when * there are more results available. We recommend that you check * IsTruncated after every call to ensure that you receive all your * results.

*/ inline GetServiceLastAccessedDetailsResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;} /** *

When IsTruncated is true, this element is present * and contains the value to use for the Marker parameter in a * subsequent pagination request.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

When IsTruncated is true, this element is present * and contains the value to use for the Marker parameter in a * subsequent pagination request.

*/ inline void SetMarker(const Aws::String& value) { m_marker = value; } /** *

When IsTruncated is true, this element is present * and contains the value to use for the Marker parameter in a * subsequent pagination request.

*/ inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); } /** *

When IsTruncated is true, this element is present * and contains the value to use for the Marker parameter in a * subsequent pagination request.

*/ inline void SetMarker(const char* value) { m_marker.assign(value); } /** *

When IsTruncated is true, this element is present * and contains the value to use for the Marker parameter in a * subsequent pagination request.

*/ inline GetServiceLastAccessedDetailsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

When IsTruncated is true, this element is present * and contains the value to use for the Marker parameter in a * subsequent pagination request.

*/ inline GetServiceLastAccessedDetailsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

When IsTruncated is true, this element is present * and contains the value to use for the Marker parameter in a * subsequent pagination request.

*/ inline GetServiceLastAccessedDetailsResult& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

An object that contains details about the reason the operation failed.

*/ inline const ErrorDetails& GetError() const{ return m_error; } /** *

An object that contains details about the reason the operation failed.

*/ inline void SetError(const ErrorDetails& value) { m_error = value; } /** *

An object that contains details about the reason the operation failed.

*/ inline void SetError(ErrorDetails&& value) { m_error = std::move(value); } /** *

An object that contains details about the reason the operation failed.

*/ inline GetServiceLastAccessedDetailsResult& WithError(const ErrorDetails& value) { SetError(value); return *this;} /** *

An object that contains details about the reason the operation failed.

*/ inline GetServiceLastAccessedDetailsResult& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline GetServiceLastAccessedDetailsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetServiceLastAccessedDetailsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: JobStatusType m_jobStatus; AccessAdvisorUsageGranularityType m_jobType; Aws::Utils::DateTime m_jobCreationDate; Aws::Vector m_servicesLastAccessed; Aws::Utils::DateTime m_jobCompletionDate; bool m_isTruncated; Aws::String m_marker; ErrorDetails m_error; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace IAM } // namespace Aws