AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Limit.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/shield/Shield_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Shield {
20namespace Model {
21
28class Limit {
29 public:
30 AWS_SHIELD_API Limit() = default;
31 AWS_SHIELD_API Limit(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SHIELD_API Limit& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() 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
AWS_SHIELD_API Limit(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
Definition Limit.h:39
Limit & WithType(TypeT &&value)
Definition Limit.h:47
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
Limit & WithMax(long long value)
Definition Limit.h:64
bool MaxHasBeenSet() const
Definition Limit.h:59
void SetMax(long long value)
Definition Limit.h:60
AWS_SHIELD_API Limit & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue