AWS SDK for C++  0.14.3
AWS SDK for C++
FilterRule.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/s3/S3_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace S3
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  FilterRule();
41  FilterRule(const Aws::Utils::Xml::XmlNode& xmlNode);
42  FilterRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
54  inline const FilterRuleName& GetName() const{ return m_name; }
55 
64  inline void SetName(const FilterRuleName& value) { m_nameHasBeenSet = true; m_name = value; }
65 
74  inline void SetName(FilterRuleName&& value) { m_nameHasBeenSet = true; m_name = value; }
75 
84  inline FilterRule& WithName(const FilterRuleName& value) { SetName(value); return *this;}
85 
94  inline FilterRule& WithName(FilterRuleName&& value) { SetName(value); return *this;}
95 
96 
97  inline const Aws::String& GetValue() const{ return m_value; }
98 
99 
100  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
101 
102 
103  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
104 
105 
106  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
107 
108 
109  inline FilterRule& WithValue(const Aws::String& value) { SetValue(value); return *this;}
110 
111 
112  inline FilterRule& WithValue(Aws::String&& value) { SetValue(value); return *this;}
113 
114 
115  inline FilterRule& WithValue(const char* value) { SetValue(value); return *this;}
116 
117  private:
118  FilterRuleName m_name;
119  bool m_nameHasBeenSet;
120  Aws::String m_value;
121  bool m_valueHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace S3
126 } // namespace Aws
const Aws::String & GetValue() const
Definition: FilterRule.h:97
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
void SetValue(const char *value)
Definition: FilterRule.h:106
FilterRule & WithValue(const char *value)
Definition: FilterRule.h:115
FilterRule & WithName(FilterRuleName &&value)
Definition: FilterRule.h:94
FilterRule & WithValue(Aws::String &&value)
Definition: FilterRule.h:112
const FilterRuleName & GetName() const
Definition: FilterRule.h:54
FilterRule & WithValue(const Aws::String &value)
Definition: FilterRule.h:109
FilterRule & WithName(const FilterRuleName &value)
Definition: FilterRule.h:84
void SetValue(Aws::String &&value)
Definition: FilterRule.h:103
void SetValue(const Aws::String &value)
Definition: FilterRule.h:100
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetName(FilterRuleName &&value)
Definition: FilterRule.h:74
void SetName(const FilterRuleName &value)
Definition: FilterRule.h:64
JSON (JavaScript Object Notation).