AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
RootStorage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace WorkSpaces {
20namespace Model {
21
29 public:
30 AWS_WORKSPACES_API RootStorage() = default;
31 AWS_WORKSPACES_API RootStorage(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACES_API RootStorage& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetCapacity() const { return m_capacity; }
40 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
41 template <typename CapacityT = Aws::String>
42 void SetCapacity(CapacityT&& value) {
43 m_capacityHasBeenSet = true;
44 m_capacity = std::forward<CapacityT>(value);
45 }
46 template <typename CapacityT = Aws::String>
47 RootStorage& WithCapacity(CapacityT&& value) {
48 SetCapacity(std::forward<CapacityT>(value));
49 return *this;
50 }
52 private:
53 Aws::String m_capacity;
54 bool m_capacityHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace WorkSpaces
59} // namespace Aws
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetCapacity(CapacityT &&value)
Definition RootStorage.h:42
AWS_WORKSPACES_API RootStorage()=default
const Aws::String & GetCapacity() const
Definition RootStorage.h:39
RootStorage & WithCapacity(CapacityT &&value)
Definition RootStorage.h:47
AWS_WORKSPACES_API RootStorage(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API RootStorage & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String