AWS SDK for C++  0.14.3
AWS SDK for C++
Condition.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>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace S3
29 {
30 namespace Model
31 {
32 
34  {
35  public:
36  Condition();
37  Condition(const Aws::Utils::Xml::XmlNode& xmlNode);
38  Condition& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39 
40  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41 
49  inline const Aws::String& GetHttpErrorCodeReturnedEquals() const{ return m_httpErrorCodeReturnedEquals; }
50 
58  inline void SetHttpErrorCodeReturnedEquals(const Aws::String& value) { m_httpErrorCodeReturnedEqualsHasBeenSet = true; m_httpErrorCodeReturnedEquals = value; }
59 
67  inline void SetHttpErrorCodeReturnedEquals(Aws::String&& value) { m_httpErrorCodeReturnedEqualsHasBeenSet = true; m_httpErrorCodeReturnedEquals = value; }
68 
76  inline void SetHttpErrorCodeReturnedEquals(const char* value) { m_httpErrorCodeReturnedEqualsHasBeenSet = true; m_httpErrorCodeReturnedEquals.assign(value); }
77 
85  inline Condition& WithHttpErrorCodeReturnedEquals(const Aws::String& value) { SetHttpErrorCodeReturnedEquals(value); return *this;}
86 
94  inline Condition& WithHttpErrorCodeReturnedEquals(Aws::String&& value) { SetHttpErrorCodeReturnedEquals(value); return *this;}
95 
103  inline Condition& WithHttpErrorCodeReturnedEquals(const char* value) { SetHttpErrorCodeReturnedEquals(value); return *this;}
104 
114  inline const Aws::String& GetKeyPrefixEquals() const{ return m_keyPrefixEquals; }
115 
125  inline void SetKeyPrefixEquals(const Aws::String& value) { m_keyPrefixEqualsHasBeenSet = true; m_keyPrefixEquals = value; }
126 
136  inline void SetKeyPrefixEquals(Aws::String&& value) { m_keyPrefixEqualsHasBeenSet = true; m_keyPrefixEquals = value; }
137 
147  inline void SetKeyPrefixEquals(const char* value) { m_keyPrefixEqualsHasBeenSet = true; m_keyPrefixEquals.assign(value); }
148 
158  inline Condition& WithKeyPrefixEquals(const Aws::String& value) { SetKeyPrefixEquals(value); return *this;}
159 
169  inline Condition& WithKeyPrefixEquals(Aws::String&& value) { SetKeyPrefixEquals(value); return *this;}
170 
180  inline Condition& WithKeyPrefixEquals(const char* value) { SetKeyPrefixEquals(value); return *this;}
181 
182  private:
183  Aws::String m_httpErrorCodeReturnedEquals;
184  bool m_httpErrorCodeReturnedEqualsHasBeenSet;
185  Aws::String m_keyPrefixEquals;
186  bool m_keyPrefixEqualsHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace S3
191 } // namespace Aws
void SetKeyPrefixEquals(Aws::String &&value)
Definition: Condition.h:136
void SetKeyPrefixEquals(const Aws::String &value)
Definition: Condition.h:125
Condition & WithHttpErrorCodeReturnedEquals(const Aws::String &value)
Definition: Condition.h:85
Condition & WithHttpErrorCodeReturnedEquals(const char *value)
Definition: Condition.h:103
const Aws::String & GetHttpErrorCodeReturnedEquals() const
Definition: Condition.h:49
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
Condition & WithKeyPrefixEquals(const char *value)
Definition: Condition.h:180
Condition & WithHttpErrorCodeReturnedEquals(Aws::String &&value)
Definition: Condition.h:94
void SetHttpErrorCodeReturnedEquals(const Aws::String &value)
Definition: Condition.h:58
void SetHttpErrorCodeReturnedEquals(Aws::String &&value)
Definition: Condition.h:67
const Aws::String & GetKeyPrefixEquals() const
Definition: Condition.h:114
Condition & WithKeyPrefixEquals(const Aws::String &value)
Definition: Condition.h:158
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetKeyPrefixEquals(const char *value)
Definition: Condition.h:147
void SetHttpErrorCodeReturnedEquals(const char *value)
Definition: Condition.h:76
JSON (JavaScript Object Notation).
Condition & WithKeyPrefixEquals(Aws::String &&value)
Definition: Condition.h:169