AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SizeConstraintSet.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf/model/SizeConstraint.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAF
24{
25namespace Model
26{
27
46 {
47 public:
48 AWS_WAF_API SizeConstraintSet();
52
53
55
67 inline const Aws::String& GetSizeConstraintSetId() const{ return m_sizeConstraintSetId; }
68 inline bool SizeConstraintSetIdHasBeenSet() const { return m_sizeConstraintSetIdHasBeenSet; }
69 inline void SetSizeConstraintSetId(const Aws::String& value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId = value; }
70 inline void SetSizeConstraintSetId(Aws::String&& value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId = std::move(value); }
71 inline void SetSizeConstraintSetId(const char* value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId.assign(value); }
72 inline SizeConstraintSet& WithSizeConstraintSetId(const Aws::String& value) { SetSizeConstraintSetId(value); return *this;}
73 inline SizeConstraintSet& WithSizeConstraintSetId(Aws::String&& value) { SetSizeConstraintSetId(std::move(value)); return *this;}
74 inline SizeConstraintSet& WithSizeConstraintSetId(const char* value) { SetSizeConstraintSetId(value); return *this;}
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline SizeConstraintSet& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline SizeConstraintSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline SizeConstraintSet& WithName(const char* value) { SetName(value); return *this;}
90
92
95 inline const Aws::Vector<SizeConstraint>& GetSizeConstraints() const{ return m_sizeConstraints; }
96 inline bool SizeConstraintsHasBeenSet() const { return m_sizeConstraintsHasBeenSet; }
97 inline void SetSizeConstraints(const Aws::Vector<SizeConstraint>& value) { m_sizeConstraintsHasBeenSet = true; m_sizeConstraints = value; }
98 inline void SetSizeConstraints(Aws::Vector<SizeConstraint>&& value) { m_sizeConstraintsHasBeenSet = true; m_sizeConstraints = std::move(value); }
100 inline SizeConstraintSet& WithSizeConstraints(Aws::Vector<SizeConstraint>&& value) { SetSizeConstraints(std::move(value)); return *this;}
101 inline SizeConstraintSet& AddSizeConstraints(const SizeConstraint& value) { m_sizeConstraintsHasBeenSet = true; m_sizeConstraints.push_back(value); return *this; }
102 inline SizeConstraintSet& AddSizeConstraints(SizeConstraint&& value) { m_sizeConstraintsHasBeenSet = true; m_sizeConstraints.push_back(std::move(value)); return *this; }
104 private:
105
106 Aws::String m_sizeConstraintSetId;
107 bool m_sizeConstraintSetIdHasBeenSet = false;
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::Vector<SizeConstraint> m_sizeConstraints;
113 bool m_sizeConstraintsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace WAF
118} // namespace Aws
SizeConstraintSet & AddSizeConstraints(SizeConstraint &&value)
void SetName(Aws::String &&value)
void SetSizeConstraints(const Aws::Vector< SizeConstraint > &value)
void SetName(const Aws::String &value)
const Aws::Vector< SizeConstraint > & GetSizeConstraints() const
SizeConstraintSet & WithSizeConstraintSetId(const char *value)
const Aws::String & GetSizeConstraintSetId() const
AWS_WAF_API SizeConstraintSet(Aws::Utils::Json::JsonView jsonValue)
SizeConstraintSet & WithSizeConstraints(const Aws::Vector< SizeConstraint > &value)
void SetSizeConstraintSetId(Aws::String &&value)
void SetSizeConstraints(Aws::Vector< SizeConstraint > &&value)
AWS_WAF_API SizeConstraintSet & operator=(Aws::Utils::Json::JsonView jsonValue)
SizeConstraintSet & WithSizeConstraintSetId(const Aws::String &value)
SizeConstraintSet & WithSizeConstraints(Aws::Vector< SizeConstraint > &&value)
const Aws::String & GetName() const
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
SizeConstraintSet & WithName(const Aws::String &value)
void SetSizeConstraintSetId(const Aws::String &value)
SizeConstraintSet & WithName(const char *value)
SizeConstraintSet & AddSizeConstraints(const SizeConstraint &value)
void SetSizeConstraintSetId(const char *value)
SizeConstraintSet & WithName(Aws::String &&value)
SizeConstraintSet & WithSizeConstraintSetId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue