AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SearchInventoryResult.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/InventoryCertificate.h>
9#include <aws/acm/model/TotalCountRelation.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ACM {
26namespace Model {
28 public:
29 AWS_ACM_API SearchInventoryResult() = default;
32
34
37 inline const Aws::Vector<InventoryCertificate>& GetCertificates() const { return m_certificates; }
38 template <typename CertificatesT = Aws::Vector<InventoryCertificate>>
39 void SetCertificates(CertificatesT&& value) {
40 m_certificatesHasBeenSet = true;
41 m_certificates = std::forward<CertificatesT>(value);
42 }
43 template <typename CertificatesT = Aws::Vector<InventoryCertificate>>
44 SearchInventoryResult& WithCertificates(CertificatesT&& value) {
45 SetCertificates(std::forward<CertificatesT>(value));
46 return *this;
47 }
48 template <typename CertificatesT = InventoryCertificate>
49 SearchInventoryResult& AddCertificates(CertificatesT&& value) {
50 m_certificatesHasBeenSet = true;
51 m_certificates.emplace_back(std::forward<CertificatesT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 template <typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) {
64 m_nextTokenHasBeenSet = true;
65 m_nextToken = std::forward<NextTokenT>(value);
66 }
67 template <typename NextTokenT = Aws::String>
68 SearchInventoryResult& WithNextToken(NextTokenT&& value) {
69 SetNextToken(std::forward<NextTokenT>(value));
70 return *this;
71 }
73
75
80 inline long long GetTotalCount() const { return m_totalCount; }
81 inline void SetTotalCount(long long value) {
82 m_totalCountHasBeenSet = true;
83 m_totalCount = value;
84 }
85 inline SearchInventoryResult& WithTotalCount(long long value) {
86 SetTotalCount(value);
87 return *this;
88 }
90
92
95 inline TotalCountRelation GetTotalCountRelation() const { return m_totalCountRelation; }
97 m_totalCountRelationHasBeenSet = true;
98 m_totalCountRelation = value;
99 }
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
121
122 private:
124
125 Aws::String m_nextToken;
126
127 long long m_totalCount{0};
128
130
131 Aws::String m_requestId;
132 Aws::Http::HttpResponseCode m_HttpResponseCode;
133 bool m_certificatesHasBeenSet = false;
134 bool m_nextTokenHasBeenSet = false;
135 bool m_totalCountHasBeenSet = false;
136 bool m_totalCountRelationHasBeenSet = false;
137 bool m_requestIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace ACM
142} // namespace Aws
TotalCountRelation GetTotalCountRelation() const
AWS_ACM_API SearchInventoryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
SearchInventoryResult & WithNextToken(NextTokenT &&value)
AWS_ACM_API SearchInventoryResult()=default
const Aws::Vector< InventoryCertificate > & GetCertificates() const
void SetTotalCountRelation(TotalCountRelation value)
AWS_ACM_API SearchInventoryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchInventoryResult & WithCertificates(CertificatesT &&value)
SearchInventoryResult & AddCertificates(CertificatesT &&value)
SearchInventoryResult & WithRequestId(RequestIdT &&value)
SearchInventoryResult & WithTotalCountRelation(TotalCountRelation value)
void SetCertificates(CertificatesT &&value)
SearchInventoryResult & WithTotalCount(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue