1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/databrew/GlueDataBrew_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GlueDataBrew
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Selector of a column from a dataset for profile job configuration. One
28    * selector includes either a column name or a regular expression.</p><p><h3>See
29    * Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/databrew-2017-07-25/ColumnSelector">AWS
31    * API Reference</a></p>
32    */
33   class AWS_GLUEDATABREW_API ColumnSelector
34   {
35   public:
36     ColumnSelector();
37     ColumnSelector(Aws::Utils::Json::JsonView jsonValue);
38     ColumnSelector& operator=(Aws::Utils::Json::JsonView jsonValue);
39     Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42     /**
43      * <p>A regular expression for selecting a column from a dataset.</p>
44      */
GetRegex()45     inline const Aws::String& GetRegex() const{ return m_regex; }
46 
47     /**
48      * <p>A regular expression for selecting a column from a dataset.</p>
49      */
RegexHasBeenSet()50     inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
51 
52     /**
53      * <p>A regular expression for selecting a column from a dataset.</p>
54      */
SetRegex(const Aws::String & value)55     inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
56 
57     /**
58      * <p>A regular expression for selecting a column from a dataset.</p>
59      */
SetRegex(Aws::String && value)60     inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
61 
62     /**
63      * <p>A regular expression for selecting a column from a dataset.</p>
64      */
SetRegex(const char * value)65     inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
66 
67     /**
68      * <p>A regular expression for selecting a column from a dataset.</p>
69      */
WithRegex(const Aws::String & value)70     inline ColumnSelector& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
71 
72     /**
73      * <p>A regular expression for selecting a column from a dataset.</p>
74      */
WithRegex(Aws::String && value)75     inline ColumnSelector& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
76 
77     /**
78      * <p>A regular expression for selecting a column from a dataset.</p>
79      */
WithRegex(const char * value)80     inline ColumnSelector& WithRegex(const char* value) { SetRegex(value); return *this;}
81 
82 
83     /**
84      * <p>The name of a column from a dataset.</p>
85      */
GetName()86     inline const Aws::String& GetName() const{ return m_name; }
87 
88     /**
89      * <p>The name of a column from a dataset.</p>
90      */
NameHasBeenSet()91     inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 
93     /**
94      * <p>The name of a column from a dataset.</p>
95      */
SetName(const Aws::String & value)96     inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 
98     /**
99      * <p>The name of a column from a dataset.</p>
100      */
SetName(Aws::String && value)101     inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
102 
103     /**
104      * <p>The name of a column from a dataset.</p>
105      */
SetName(const char * value)106     inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
108     /**
109      * <p>The name of a column from a dataset.</p>
110      */
WithName(const Aws::String & value)111     inline ColumnSelector& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
113     /**
114      * <p>The name of a column from a dataset.</p>
115      */
WithName(Aws::String && value)116     inline ColumnSelector& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 
118     /**
119      * <p>The name of a column from a dataset.</p>
120      */
WithName(const char * value)121     inline ColumnSelector& WithName(const char* value) { SetName(value); return *this;}
122 
123   private:
124 
125     Aws::String m_regex;
126     bool m_regexHasBeenSet;
127 
128     Aws::String m_name;
129     bool m_nameHasBeenSet;
130   };
131 
132 } // namespace Model
133 } // namespace GlueDataBrew
134 } // namespace Aws
135