AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
ServiceVersion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/snowball/Snowball_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Snowball {
20namespace Model {
21
28 public:
29 AWS_SNOWBALL_API ServiceVersion() = default;
30 AWS_SNOWBALL_API ServiceVersion(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_SNOWBALL_API ServiceVersion& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_SNOWBALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::String& GetVersion() const { return m_version; }
39 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
40 template <typename VersionT = Aws::String>
41 void SetVersion(VersionT&& value) {
42 m_versionHasBeenSet = true;
43 m_version = std::forward<VersionT>(value);
44 }
45 template <typename VersionT = Aws::String>
46 ServiceVersion& WithVersion(VersionT&& value) {
47 SetVersion(std::forward<VersionT>(value));
48 return *this;
49 }
51 private:
52 Aws::String m_version;
53 bool m_versionHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace Snowball
58} // namespace Aws
AWS_SNOWBALL_API ServiceVersion()=default
AWS_SNOWBALL_API ServiceVersion & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetVersion() const
AWS_SNOWBALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_SNOWBALL_API ServiceVersion(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ServiceVersion & WithVersion(VersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String