AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
48 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
49 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
50 inline Limit& WithType(const Aws::String& value) { SetType(value); return *this;}
51 inline Limit& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
52 inline Limit& WithType(const char* value) { SetType(value); return *this;}
54
56
60 inline long long GetMax() const{ return m_max; }
61 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
62 inline void SetMax(long long value) { m_maxHasBeenSet = true; m_max = value; }
63 inline Limit& WithMax(long long value) { SetMax(value); return *this;}
65 private:
66
67 Aws::String m_type;
68 bool m_typeHasBeenSet = false;
69
70 long long m_max;
71 bool m_maxHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Shield
76} // namespace Aws
bool TypeHasBeenSet() const
Definition Limit.h:46
AWS_SHIELD_API Limit(Aws::Utils::Json::JsonView jsonValue)
void SetType(Aws::String &&value)
Definition Limit.h:48
const Aws::String & GetType() const
Definition Limit.h:45
void SetType(const char *value)
Definition Limit.h:49
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
Limit & WithType(Aws::String &&value)
Definition Limit.h:51
Limit & WithMax(long long value)
Definition Limit.h:63
bool MaxHasBeenSet() const
Definition Limit.h:61
void SetMax(long long value)
Definition Limit.h:62
AWS_SHIELD_API Limit()
Limit & WithType(const char *value)
Definition Limit.h:52
Limit & WithType(const Aws::String &value)
Definition Limit.h:50
AWS_SHIELD_API Limit & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(const Aws::String &value)
Definition Limit.h:47
long long GetMax() const
Definition Limit.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue