AWS SDK for C++

AWS SDK for C++ Version 1.11.789

Loading...
Searching...
No Matches
GetCredentialReportResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/iam/IAM_EXPORTS.h>
11#include <aws/iam/model/ReportFormatType.h>
12#include <aws/iam/model/ResponseMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace IAM {
26namespace Model {
35 public:
36 AWS_IAM_API GetCredentialReportResult() = default;
39
41
44 inline const Aws::Utils::ByteBuffer& GetContent() const { return m_content; }
45 template <typename ContentT = Aws::Utils::ByteBuffer>
46 void SetContent(ContentT&& value) {
47 m_contentHasBeenSet = true;
48 m_content = std::forward<ContentT>(value);
49 }
50 template <typename ContentT = Aws::Utils::ByteBuffer>
52 SetContent(std::forward<ContentT>(value));
53 return *this;
54 }
56
58
61 inline ReportFormatType GetReportFormat() const { return m_reportFormat; }
62 inline void SetReportFormat(ReportFormatType value) {
63 m_reportFormatHasBeenSet = true;
64 m_reportFormat = value;
65 }
67 SetReportFormat(value);
68 return *this;
69 }
71
73
77 inline const Aws::Utils::DateTime& GetGeneratedTime() const { return m_generatedTime; }
78 template <typename GeneratedTimeT = Aws::Utils::DateTime>
79 void SetGeneratedTime(GeneratedTimeT&& value) {
80 m_generatedTimeHasBeenSet = true;
81 m_generatedTime = std::forward<GeneratedTimeT>(value);
82 }
83 template <typename GeneratedTimeT = Aws::Utils::DateTime>
85 SetGeneratedTime(std::forward<GeneratedTimeT>(value));
86 return *this;
87 }
89
91
92 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
93 template <typename ResponseMetadataT = ResponseMetadata>
94 void SetResponseMetadata(ResponseMetadataT&& value) {
95 m_responseMetadataHasBeenSet = true;
96 m_responseMetadata = std::forward<ResponseMetadataT>(value);
97 }
98 template <typename ResponseMetadataT = ResponseMetadata>
99 GetCredentialReportResult& WithResponseMetadata(ResponseMetadataT&& value) {
100 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
101 return *this;
102 }
104 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
105
106 private:
107 Aws::Utils::ByteBuffer m_content{};
108
110
111 Aws::Utils::DateTime m_generatedTime{};
112
113 ResponseMetadata m_responseMetadata;
114 Aws::Http::HttpResponseCode m_HttpResponseCode;
115 bool m_contentHasBeenSet = false;
116 bool m_reportFormatHasBeenSet = false;
117 bool m_generatedTimeHasBeenSet = false;
118 bool m_responseMetadataHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace IAM
123} // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
AWS_IAM_API GetCredentialReportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Utils::ByteBuffer & GetContent() const
void SetResponseMetadata(ResponseMetadataT &&value)
GetCredentialReportResult & WithGeneratedTime(GeneratedTimeT &&value)
AWS_IAM_API GetCredentialReportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetCredentialReportResult & WithContent(ContentT &&value)
const Aws::Utils::DateTime & GetGeneratedTime() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IAM_API GetCredentialReportResult()=default
GetCredentialReportResult & WithReportFormat(ReportFormatType value)
GetCredentialReportResult & WithResponseMetadata(ResponseMetadataT &&value)
Aws::Utils::Xml::XmlDocument XmlDocument