AWS SDK for C++

AWS SDK for C++ Version 1.11.854

Loading...
Searching...
No Matches
WallClockWindow.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatch {
20namespace Model {
21
37 public:
38 AWS_CLOUDWATCH_API WallClockWindow() = default;
39 AWS_CLOUDWATCH_API WallClockWindow(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_CLOUDWATCH_API WallClockWindow& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
54 inline const Aws::String& GetTimezone() const { return m_timezone; }
55 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
56 template <typename TimezoneT = Aws::String>
57 void SetTimezone(TimezoneT&& value) {
58 m_timezoneHasBeenSet = true;
59 m_timezone = std::forward<TimezoneT>(value);
60 }
61 template <typename TimezoneT = Aws::String>
62 WallClockWindow& WithTimezone(TimezoneT&& value) {
63 SetTimezone(std::forward<TimezoneT>(value));
64 return *this;
65 }
67 private:
68 Aws::String m_timezone;
69 bool m_timezoneHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace CloudWatch
74} // namespace Aws
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API WallClockWindow()=default
AWS_CLOUDWATCH_API WallClockWindow & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API WallClockWindow(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WallClockWindow & WithTimezone(TimezoneT &&value)
const Aws::String & GetTimezone() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String