AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Limit.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Shield
22{
23namespace Model
24{
25
32 class Limit
33 {
34 public:
35 AWS_SHIELD_API Limit() = default;
36 AWS_SHIELD_API Limit(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SHIELD_API Limit& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 template<typename TypeT = Aws::String>
48 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
49 template<typename TypeT = Aws::String>
50 Limit& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
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) { m_maxHasBeenSet = true; m_max = value; }
61 inline Limit& WithMax(long long value) { SetMax(value); return *this;}
63 private:
64
65 Aws::String m_type;
66 bool m_typeHasBeenSet = false;
67
68 long long m_max{0};
69 bool m_maxHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Shield
74} // namespace Aws
bool TypeHasBeenSet() const
Definition Limit.h:46
AWS_SHIELD_API Limit(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
Definition Limit.h:45
Limit & WithType(TypeT &&value)
Definition Limit.h:50
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
Limit & WithMax(long long value)
Definition Limit.h:61
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:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue