AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Limit.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/shield/Shield_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Shield {
20namespace Model {
21
28class Limit {
29 public:
30 AWS_SHIELD_API Limit() = default;
31 AWS_SHIELD_API Limit(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_SHIELD_API Limit& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_SHIELD_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 template <typename TypeT = Aws::String>
42 void SetType(TypeT&& value) {
43 m_typeHasBeenSet = true;
44 m_type = std::forward<TypeT>(value);
45 }
46 template <typename TypeT = Aws::String>
47 Limit& WithType(TypeT&& value) {
48 SetType(std::forward<TypeT>(value));
49 return *this;
50 }
52
54
58 inline long long GetMax() const { return m_max; }
59 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
60 inline void SetMax(long long value) {
61 m_maxHasBeenSet = true;
62 m_max = value;
63 }
64 inline Limit& WithMax(long long value) {
65 SetMax(value);
66 return *this;
67 }
69 private:
70 Aws::String m_type;
71
72 long long m_max{0};
73 bool m_typeHasBeenSet = false;
74 bool m_maxHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Shield
79} // namespace Aws
bool TypeHasBeenSet() const
Definition Limit.h:40
const Aws::String & GetType() const
Definition Limit.h:39
Limit & WithType(TypeT &&value)
Definition Limit.h:47
Limit & WithMax(long long value)
Definition Limit.h:64
AWS_SHIELD_API Limit(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool MaxHasBeenSet() const
Definition Limit.h:59
void SetMax(long long value)
Definition Limit.h:60
AWS_SHIELD_API Limit & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SHIELD_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_SHIELD_API Limit()=default
long long GetMax() const
Definition Limit.h:58
void SetType(TypeT &&value)
Definition Limit.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String