AWS SDK for C++  0.12.9
AWS SDK for C++
WebACLSummary.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/waf/WAF_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace WAF
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  WebACLSummary();
41  WebACLSummary& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
51  inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
52 
60  inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
61 
69  inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
70 
78  inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
79 
87  inline WebACLSummary& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
88 
96  inline WebACLSummary& WithWebACLId(Aws::String&& value) { SetWebACLId(value); return *this;}
97 
105  inline WebACLSummary& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
106 
111  inline const Aws::String& GetName() const{ return m_name; }
112 
117  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
118 
123  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
124 
129  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
130 
135  inline WebACLSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
136 
141  inline WebACLSummary& WithName(Aws::String&& value) { SetName(value); return *this;}
142 
147  inline WebACLSummary& WithName(const char* value) { SetName(value); return *this;}
148 
149  private:
150  Aws::String m_webACLId;
151  bool m_webACLIdHasBeenSet;
152  Aws::String m_name;
153  bool m_nameHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace WAF
158 } // namespace Aws
const Aws::String & GetWebACLId() const
Definition: WebACLSummary.h:51
void SetName(const char *value)
void SetWebACLId(Aws::String &&value)
Definition: WebACLSummary.h:69
WebACLSummary & WithWebACLId(Aws::String &&value)
Definition: WebACLSummary.h:96
void SetName(const Aws::String &value)
const Aws::String & GetName() const
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
WebACLSummary & WithWebACLId(const Aws::String &value)
Definition: WebACLSummary.h:87
void SetWebACLId(const Aws::String &value)
Definition: WebACLSummary.h:60
WebACLSummary & WithName(const char *value)
WebACLSummary & WithWebACLId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
WebACLSummary & WithName(Aws::String &&value)
void SetWebACLId(const char *value)
Definition: WebACLSummary.h:78
void SetName(Aws::String &&value)
JSON (JavaScript Object Notation).
WebACLSummary & WithName(const Aws::String &value)