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/appintegrations/AppIntegrationsService_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 AppIntegrationsService
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>The name of the data and how often it should be pulled from the
28    * source.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ScheduleConfiguration">AWS
30    * API Reference</a></p>
31    */
32   class AWS_APPINTEGRATIONSSERVICE_API ScheduleConfiguration
33   {
34   public:
35     ScheduleConfiguration();
36     ScheduleConfiguration(Aws::Utils::Json::JsonView jsonValue);
37     ScheduleConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The start date for objects to import in the first flow run.</p>
43      */
GetFirstExecutionFrom()44     inline const Aws::String& GetFirstExecutionFrom() const{ return m_firstExecutionFrom; }
45 
46     /**
47      * <p>The start date for objects to import in the first flow run.</p>
48      */
FirstExecutionFromHasBeenSet()49     inline bool FirstExecutionFromHasBeenSet() const { return m_firstExecutionFromHasBeenSet; }
50 
51     /**
52      * <p>The start date for objects to import in the first flow run.</p>
53      */
SetFirstExecutionFrom(const Aws::String & value)54     inline void SetFirstExecutionFrom(const Aws::String& value) { m_firstExecutionFromHasBeenSet = true; m_firstExecutionFrom = value; }
55 
56     /**
57      * <p>The start date for objects to import in the first flow run.</p>
58      */
SetFirstExecutionFrom(Aws::String && value)59     inline void SetFirstExecutionFrom(Aws::String&& value) { m_firstExecutionFromHasBeenSet = true; m_firstExecutionFrom = std::move(value); }
60 
61     /**
62      * <p>The start date for objects to import in the first flow run.</p>
63      */
SetFirstExecutionFrom(const char * value)64     inline void SetFirstExecutionFrom(const char* value) { m_firstExecutionFromHasBeenSet = true; m_firstExecutionFrom.assign(value); }
65 
66     /**
67      * <p>The start date for objects to import in the first flow run.</p>
68      */
WithFirstExecutionFrom(const Aws::String & value)69     inline ScheduleConfiguration& WithFirstExecutionFrom(const Aws::String& value) { SetFirstExecutionFrom(value); return *this;}
70 
71     /**
72      * <p>The start date for objects to import in the first flow run.</p>
73      */
WithFirstExecutionFrom(Aws::String && value)74     inline ScheduleConfiguration& WithFirstExecutionFrom(Aws::String&& value) { SetFirstExecutionFrom(std::move(value)); return *this;}
75 
76     /**
77      * <p>The start date for objects to import in the first flow run.</p>
78      */
WithFirstExecutionFrom(const char * value)79     inline ScheduleConfiguration& WithFirstExecutionFrom(const char* value) { SetFirstExecutionFrom(value); return *this;}
80 
81 
82     /**
83      * <p>The name of the object to pull from the data source.</p>
84      */
GetObject()85     inline const Aws::String& GetObject() const{ return m_object; }
86 
87     /**
88      * <p>The name of the object to pull from the data source.</p>
89      */
ObjectHasBeenSet()90     inline bool ObjectHasBeenSet() const { return m_objectHasBeenSet; }
91 
92     /**
93      * <p>The name of the object to pull from the data source.</p>
94      */
SetObject(const Aws::String & value)95     inline void SetObject(const Aws::String& value) { m_objectHasBeenSet = true; m_object = value; }
96 
97     /**
98      * <p>The name of the object to pull from the data source.</p>
99      */
SetObject(Aws::String && value)100     inline void SetObject(Aws::String&& value) { m_objectHasBeenSet = true; m_object = std::move(value); }
101 
102     /**
103      * <p>The name of the object to pull from the data source.</p>
104      */
SetObject(const char * value)105     inline void SetObject(const char* value) { m_objectHasBeenSet = true; m_object.assign(value); }
106 
107     /**
108      * <p>The name of the object to pull from the data source.</p>
109      */
WithObject(const Aws::String & value)110     inline ScheduleConfiguration& WithObject(const Aws::String& value) { SetObject(value); return *this;}
111 
112     /**
113      * <p>The name of the object to pull from the data source.</p>
114      */
WithObject(Aws::String && value)115     inline ScheduleConfiguration& WithObject(Aws::String&& value) { SetObject(std::move(value)); return *this;}
116 
117     /**
118      * <p>The name of the object to pull from the data source.</p>
119      */
WithObject(const char * value)120     inline ScheduleConfiguration& WithObject(const char* value) { SetObject(value); return *this;}
121 
122 
123     /**
124      * <p>How often the data should be pulled from data source.</p>
125      */
GetScheduleExpression()126     inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
127 
128     /**
129      * <p>How often the data should be pulled from data source.</p>
130      */
ScheduleExpressionHasBeenSet()131     inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
132 
133     /**
134      * <p>How often the data should be pulled from data source.</p>
135      */
SetScheduleExpression(const Aws::String & value)136     inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
137 
138     /**
139      * <p>How often the data should be pulled from data source.</p>
140      */
SetScheduleExpression(Aws::String && value)141     inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
142 
143     /**
144      * <p>How often the data should be pulled from data source.</p>
145      */
SetScheduleExpression(const char * value)146     inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
147 
148     /**
149      * <p>How often the data should be pulled from data source.</p>
150      */
WithScheduleExpression(const Aws::String & value)151     inline ScheduleConfiguration& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
152 
153     /**
154      * <p>How often the data should be pulled from data source.</p>
155      */
WithScheduleExpression(Aws::String && value)156     inline ScheduleConfiguration& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
157 
158     /**
159      * <p>How often the data should be pulled from data source.</p>
160      */
WithScheduleExpression(const char * value)161     inline ScheduleConfiguration& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
162 
163   private:
164 
165     Aws::String m_firstExecutionFrom;
166     bool m_firstExecutionFromHasBeenSet;
167 
168     Aws::String m_object;
169     bool m_objectHasBeenSet;
170 
171     Aws::String m_scheduleExpression;
172     bool m_scheduleExpressionHasBeenSet;
173   };
174 
175 } // namespace Model
176 } // namespace AppIntegrationsService
177 } // namespace Aws
178