AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
Alarm.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
27class Alarm {
28 public:
29 AWS_CODEDEPLOY_API Alarm() = default;
30 AWS_CODEDEPLOY_API Alarm(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_CODEDEPLOY_API Alarm& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 Alarm& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52 private:
53 Aws::String m_name;
54 bool m_nameHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace CodeDeploy
59} // namespace Aws
void SetName(NameT &&value)
Definition Alarm.h:42
AWS_CODEDEPLOY_API Alarm(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API Alarm()=default
bool NameHasBeenSet() const
Definition Alarm.h:40
AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetName() const
Definition Alarm.h:39
Alarm & WithName(NameT &&value)
Definition Alarm.h:47
AWS_CODEDEPLOY_API Alarm & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String