AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
DescribeUploadBufferResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/storagegateway/StorageGateway_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace StorageGateway {
24namespace Model {
26 public:
27 AWS_STORAGEGATEWAY_API DescribeUploadBufferResult() = default;
30
32
33 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
34 template <typename GatewayARNT = Aws::String>
35 void SetGatewayARN(GatewayARNT&& value) {
36 m_gatewayARNHasBeenSet = true;
37 m_gatewayARN = std::forward<GatewayARNT>(value);
38 }
39 template <typename GatewayARNT = Aws::String>
41 SetGatewayARN(std::forward<GatewayARNT>(value));
42 return *this;
43 }
45
47
53 inline const Aws::Vector<Aws::String>& GetDiskIds() const { return m_diskIds; }
54 template <typename DiskIdsT = Aws::Vector<Aws::String>>
55 void SetDiskIds(DiskIdsT&& value) {
56 m_diskIdsHasBeenSet = true;
57 m_diskIds = std::forward<DiskIdsT>(value);
58 }
59 template <typename DiskIdsT = Aws::Vector<Aws::String>>
61 SetDiskIds(std::forward<DiskIdsT>(value));
62 return *this;
63 }
64 template <typename DiskIdsT = Aws::String>
66 m_diskIdsHasBeenSet = true;
67 m_diskIds.emplace_back(std::forward<DiskIdsT>(value));
68 return *this;
69 }
71
73
76 inline long long GetUploadBufferUsedInBytes() const { return m_uploadBufferUsedInBytes; }
77 inline void SetUploadBufferUsedInBytes(long long value) {
78 m_uploadBufferUsedInBytesHasBeenSet = true;
79 m_uploadBufferUsedInBytes = value;
80 }
83 return *this;
84 }
86
88
91 inline long long GetUploadBufferAllocatedInBytes() const { return m_uploadBufferAllocatedInBytes; }
92 inline void SetUploadBufferAllocatedInBytes(long long value) {
93 m_uploadBufferAllocatedInBytesHasBeenSet = true;
94 m_uploadBufferAllocatedInBytes = value;
95 }
98 return *this;
99 }
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template <typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) {
107 m_requestIdHasBeenSet = true;
108 m_requestId = std::forward<RequestIdT>(value);
109 }
110 template <typename RequestIdT = Aws::String>
112 SetRequestId(std::forward<RequestIdT>(value));
113 return *this;
114 }
116 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
117
118 private:
119 Aws::String m_gatewayARN;
120
121 Aws::Vector<Aws::String> m_diskIds;
122
123 long long m_uploadBufferUsedInBytes{0};
124
125 long long m_uploadBufferAllocatedInBytes{0};
126
127 Aws::String m_requestId;
128 Aws::Http::HttpResponseCode m_HttpResponseCode;
129 bool m_gatewayARNHasBeenSet = false;
130 bool m_diskIdsHasBeenSet = false;
131 bool m_uploadBufferUsedInBytesHasBeenSet = false;
132 bool m_uploadBufferAllocatedInBytesHasBeenSet = false;
133 bool m_requestIdHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace StorageGateway
138} // namespace Aws
DescribeUploadBufferResult & WithDiskIds(DiskIdsT &&value)
DescribeUploadBufferResult & WithUploadBufferUsedInBytes(long long value)
DescribeUploadBufferResult & WithGatewayARN(GatewayARNT &&value)
DescribeUploadBufferResult & AddDiskIds(DiskIdsT &&value)
AWS_STORAGEGATEWAY_API DescribeUploadBufferResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_STORAGEGATEWAY_API DescribeUploadBufferResult()=default
AWS_STORAGEGATEWAY_API DescribeUploadBufferResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeUploadBufferResult & WithRequestId(RequestIdT &&value)
DescribeUploadBufferResult & WithUploadBufferAllocatedInBytes(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