AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
TimeToLive.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/keyspaces/Keyspaces_EXPORTS.h>
9#include <aws/keyspaces/model/TimeToLiveStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Keyspaces {
20namespace Model {
21
33 public:
34 AWS_KEYSPACES_API TimeToLive() = default;
35 AWS_KEYSPACES_API TimeToLive(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_KEYSPACES_API TimeToLive& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
44 inline TimeToLiveStatus GetStatus() const { return m_status; }
45 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
46 inline void SetStatus(TimeToLiveStatus value) {
47 m_statusHasBeenSet = true;
48 m_status = value;
49 }
51 SetStatus(value);
52 return *this;
53 }
55 private:
57 bool m_statusHasBeenSet = false;
58};
59
60} // namespace Model
61} // namespace Keyspaces
62} // namespace Aws
AWS_KEYSPACES_API TimeToLive & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetStatus(TimeToLiveStatus value)
Definition TimeToLive.h:46
AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
TimeToLive & WithStatus(TimeToLiveStatus value)
Definition TimeToLive.h:50
AWS_KEYSPACES_API TimeToLive()=default
TimeToLiveStatus GetStatus() const
Definition TimeToLive.h:44
AWS_KEYSPACES_API TimeToLive(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)