AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetSnowballUsageResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snowball/Snowball_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Snowball {
23namespace Model {
25 public:
26 AWS_SNOWBALL_API GetSnowballUsageResult() = default;
29
31
35 inline int GetSnowballLimit() const { return m_snowballLimit; }
36 inline void SetSnowballLimit(int value) {
37 m_snowballLimitHasBeenSet = true;
38 m_snowballLimit = value;
39 }
41 SetSnowballLimit(value);
42 return *this;
43 }
45
47
50 inline int GetSnowballsInUse() const { return m_snowballsInUse; }
51 inline void SetSnowballsInUse(int value) {
52 m_snowballsInUseHasBeenSet = true;
53 m_snowballsInUse = value;
54 }
56 SetSnowballsInUse(value);
57 return *this;
58 }
60
62
63 inline const Aws::String& GetRequestId() const { return m_requestId; }
64 template <typename RequestIdT = Aws::String>
65 void SetRequestId(RequestIdT&& value) {
66 m_requestIdHasBeenSet = true;
67 m_requestId = std::forward<RequestIdT>(value);
68 }
69 template <typename RequestIdT = Aws::String>
71 SetRequestId(std::forward<RequestIdT>(value));
72 return *this;
73 }
75 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
76
77 private:
78 int m_snowballLimit{0};
79
80 int m_snowballsInUse{0};
81
82 Aws::String m_requestId;
83 Aws::Http::HttpResponseCode m_HttpResponseCode;
84 bool m_snowballLimitHasBeenSet = false;
85 bool m_snowballsInUseHasBeenSet = false;
86 bool m_requestIdHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Snowball
91} // namespace Aws
GetSnowballUsageResult & WithRequestId(RequestIdT &&value)
GetSnowballUsageResult & WithSnowballLimit(int value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SNOWBALL_API GetSnowballUsageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SNOWBALL_API GetSnowballUsageResult()=default
AWS_SNOWBALL_API GetSnowballUsageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSnowballUsageResult & WithSnowballsInUse(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue