AWS SDK for C++  1.9.108
AWS SDK for C++
Limit.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Shield
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Limit();
39 
40 
44  inline const Aws::String& GetType() const{ return m_type; }
45 
49  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 
54  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
55 
59  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 
64  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
65 
69  inline Limit& WithType(const Aws::String& value) { SetType(value); return *this;}
70 
74  inline Limit& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
75 
79  inline Limit& WithType(const char* value) { SetType(value); return *this;}
80 
81 
86  inline long long GetMax() const{ return m_max; }
87 
92  inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
93 
98  inline void SetMax(long long value) { m_maxHasBeenSet = true; m_max = value; }
99 
104  inline Limit& WithMax(long long value) { SetMax(value); return *this;}
105 
106  private:
107 
108  Aws::String m_type;
109  bool m_typeHasBeenSet;
110 
111  long long m_max;
112  bool m_maxHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace Shield
117 } // namespace Aws
Aws::Shield::Model::Limit::Limit
Limit()
Aws::Shield::Model::Limit::Limit
Limit(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API
#define AWS_SHIELD_API
Definition: Shield_EXPORTS.h:28
Aws::Shield::Model::Limit::GetMax
long long GetMax() const
Definition: Limit.h:86
Aws::Shield::Model::Limit::WithType
Limit & WithType(const Aws::String &value)
Definition: Limit.h:69
Aws::Shield::Model::Limit::WithType
Limit & WithType(const char *value)
Definition: Limit.h:79
Aws::Shield::Model::Limit::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Shield::Model::Limit::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Limit.h:49
Aws::Shield::Model::Limit::SetType
void SetType(Aws::String &&value)
Definition: Limit.h:59
Aws::Shield::Model::Limit::SetMax
void SetMax(long long value)
Definition: Limit.h:98
Aws::Shield::Model::Limit::WithType
Limit & WithType(Aws::String &&value)
Definition: Limit.h:74
Aws::Shield::Model::Limit::SetType
void SetType(const char *value)
Definition: Limit.h:64
Shield_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Shield::Model::Limit::operator=
Limit & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Shield::Model::Limit
Definition: Limit.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::Shield::Model::Limit::WithMax
Limit & WithMax(long long value)
Definition: Limit.h:104
Aws::Shield::Model::Limit::GetType
const Aws::String & GetType() const
Definition: Limit.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Shield::Model::Limit::SetType
void SetType(const Aws::String &value)
Definition: Limit.h:54
Aws::Shield::Model::Limit::MaxHasBeenSet
bool MaxHasBeenSet() const
Definition: Limit.h:92