AWS SDK for C++  0.14.3
AWS SDK for C++
Selector.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DataPipeline
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  Selector();
42  Selector(const Aws::Utils::Json::JsonValue& jsonValue);
43  Selector& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
52  inline const Aws::String& GetFieldName() const{ return m_fieldName; }
53 
60  inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
61 
68  inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
69 
76  inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); }
77 
84  inline Selector& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;}
85 
92  inline Selector& WithFieldName(Aws::String&& value) { SetFieldName(value); return *this;}
93 
100  inline Selector& WithFieldName(const char* value) { SetFieldName(value); return *this;}
101 
102 
103  inline const Operator& GetOperator() const{ return m_operator; }
104 
105 
106  inline void SetOperator(const Operator& value) { m_operatorHasBeenSet = true; m_operator = value; }
107 
108 
109  inline void SetOperator(Operator&& value) { m_operatorHasBeenSet = true; m_operator = value; }
110 
111 
112  inline Selector& WithOperator(const Operator& value) { SetOperator(value); return *this;}
113 
114 
115  inline Selector& WithOperator(Operator&& value) { SetOperator(value); return *this;}
116 
117  private:
118  Aws::String m_fieldName;
119  bool m_fieldNameHasBeenSet;
120  Operator m_operator;
121  bool m_operatorHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace DataPipeline
126 } // namespace Aws
Selector & WithFieldName(Aws::String &&value)
Definition: Selector.h:92
Selector & WithFieldName(const Aws::String &value)
Definition: Selector.h:84
Selector & WithOperator(const Operator &value)
Definition: Selector.h:112
void SetOperator(Operator &&value)
Definition: Selector.h:109
void SetFieldName(Aws::String &&value)
Definition: Selector.h:68
const Operator & GetOperator() const
Definition: Selector.h:103
#define AWS_DATAPIPELINE_API
void SetFieldName(const Aws::String &value)
Definition: Selector.h:60
void SetFieldName(const char *value)
Definition: Selector.h:76
const Aws::String & GetFieldName() const
Definition: Selector.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetOperator(const Operator &value)
Definition: Selector.h:106
Selector & WithOperator(Operator &&value)
Definition: Selector.h:115
Selector & WithFieldName(const char *value)
Definition: Selector.h:100
JSON (JavaScript Object Notation).