AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LabelOptions.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
35 public:
36 AWS_CLOUDWATCH_API LabelOptions() = default;
37 AWS_CLOUDWATCH_API LabelOptions(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CLOUDWATCH_API LabelOptions& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
49 inline const Aws::String& GetTimezone() const { return m_timezone; }
50 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
51 template <typename TimezoneT = Aws::String>
52 void SetTimezone(TimezoneT&& value) {
53 m_timezoneHasBeenSet = true;
54 m_timezone = std::forward<TimezoneT>(value);
55 }
56 template <typename TimezoneT = Aws::String>
57 LabelOptions& WithTimezone(TimezoneT&& value) {
58 SetTimezone(std::forward<TimezoneT>(value));
59 return *this;
60 }
62 private:
63 Aws::String m_timezone;
64 bool m_timezoneHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace CloudWatch
69} // namespace Aws
AWS_CLOUDWATCH_API LabelOptions()=default
void SetTimezone(TimezoneT &&value)
const Aws::String & GetTimezone() const
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
LabelOptions & WithTimezone(TimezoneT &&value)
AWS_CLOUDWATCH_API LabelOptions(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API LabelOptions & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String