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/config/ConfigService_EXPORTS.h>
8 #include <aws/config/model/DeliveryStatus.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/core/utils/DateTime.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19   class JsonValue;
20   class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ConfigService
24 {
25 namespace Model
26 {
27 
28   /**
29    * <p>Provides status of the delivery of the snapshot or the configuration history
30    * to the specified Amazon S3 bucket. Also provides the status of notifications
31    * about the Amazon S3 delivery to the specified Amazon SNS topic.</p><p><h3>See
32    * Also:</h3>   <a
33    * href="http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigExportDeliveryInfo">AWS
34    * API Reference</a></p>
35    */
36   class AWS_CONFIGSERVICE_API ConfigExportDeliveryInfo
37   {
38   public:
39     ConfigExportDeliveryInfo();
40     ConfigExportDeliveryInfo(Aws::Utils::Json::JsonView jsonValue);
41     ConfigExportDeliveryInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
42     Aws::Utils::Json::JsonValue Jsonize() const;
43 
44 
45     /**
46      * <p>Status of the last attempted delivery.</p>
47      */
GetLastStatus()48     inline const DeliveryStatus& GetLastStatus() const{ return m_lastStatus; }
49 
50     /**
51      * <p>Status of the last attempted delivery.</p>
52      */
LastStatusHasBeenSet()53     inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
54 
55     /**
56      * <p>Status of the last attempted delivery.</p>
57      */
SetLastStatus(const DeliveryStatus & value)58     inline void SetLastStatus(const DeliveryStatus& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
59 
60     /**
61      * <p>Status of the last attempted delivery.</p>
62      */
SetLastStatus(DeliveryStatus && value)63     inline void SetLastStatus(DeliveryStatus&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::move(value); }
64 
65     /**
66      * <p>Status of the last attempted delivery.</p>
67      */
WithLastStatus(const DeliveryStatus & value)68     inline ConfigExportDeliveryInfo& WithLastStatus(const DeliveryStatus& value) { SetLastStatus(value); return *this;}
69 
70     /**
71      * <p>Status of the last attempted delivery.</p>
72      */
WithLastStatus(DeliveryStatus && value)73     inline ConfigExportDeliveryInfo& WithLastStatus(DeliveryStatus&& value) { SetLastStatus(std::move(value)); return *this;}
74 
75 
76     /**
77      * <p>The error code from the last attempted delivery.</p>
78      */
GetLastErrorCode()79     inline const Aws::String& GetLastErrorCode() const{ return m_lastErrorCode; }
80 
81     /**
82      * <p>The error code from the last attempted delivery.</p>
83      */
LastErrorCodeHasBeenSet()84     inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; }
85 
86     /**
87      * <p>The error code from the last attempted delivery.</p>
88      */
SetLastErrorCode(const Aws::String & value)89     inline void SetLastErrorCode(const Aws::String& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = value; }
90 
91     /**
92      * <p>The error code from the last attempted delivery.</p>
93      */
SetLastErrorCode(Aws::String && value)94     inline void SetLastErrorCode(Aws::String&& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = std::move(value); }
95 
96     /**
97      * <p>The error code from the last attempted delivery.</p>
98      */
SetLastErrorCode(const char * value)99     inline void SetLastErrorCode(const char* value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode.assign(value); }
100 
101     /**
102      * <p>The error code from the last attempted delivery.</p>
103      */
WithLastErrorCode(const Aws::String & value)104     inline ConfigExportDeliveryInfo& WithLastErrorCode(const Aws::String& value) { SetLastErrorCode(value); return *this;}
105 
106     /**
107      * <p>The error code from the last attempted delivery.</p>
108      */
WithLastErrorCode(Aws::String && value)109     inline ConfigExportDeliveryInfo& WithLastErrorCode(Aws::String&& value) { SetLastErrorCode(std::move(value)); return *this;}
110 
111     /**
112      * <p>The error code from the last attempted delivery.</p>
113      */
WithLastErrorCode(const char * value)114     inline ConfigExportDeliveryInfo& WithLastErrorCode(const char* value) { SetLastErrorCode(value); return *this;}
115 
116 
117     /**
118      * <p>The error message from the last attempted delivery.</p>
119      */
GetLastErrorMessage()120     inline const Aws::String& GetLastErrorMessage() const{ return m_lastErrorMessage; }
121 
122     /**
123      * <p>The error message from the last attempted delivery.</p>
124      */
LastErrorMessageHasBeenSet()125     inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; }
126 
127     /**
128      * <p>The error message from the last attempted delivery.</p>
129      */
SetLastErrorMessage(const Aws::String & value)130     inline void SetLastErrorMessage(const Aws::String& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = value; }
131 
132     /**
133      * <p>The error message from the last attempted delivery.</p>
134      */
SetLastErrorMessage(Aws::String && value)135     inline void SetLastErrorMessage(Aws::String&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = std::move(value); }
136 
137     /**
138      * <p>The error message from the last attempted delivery.</p>
139      */
SetLastErrorMessage(const char * value)140     inline void SetLastErrorMessage(const char* value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage.assign(value); }
141 
142     /**
143      * <p>The error message from the last attempted delivery.</p>
144      */
WithLastErrorMessage(const Aws::String & value)145     inline ConfigExportDeliveryInfo& WithLastErrorMessage(const Aws::String& value) { SetLastErrorMessage(value); return *this;}
146 
147     /**
148      * <p>The error message from the last attempted delivery.</p>
149      */
WithLastErrorMessage(Aws::String && value)150     inline ConfigExportDeliveryInfo& WithLastErrorMessage(Aws::String&& value) { SetLastErrorMessage(std::move(value)); return *this;}
151 
152     /**
153      * <p>The error message from the last attempted delivery.</p>
154      */
WithLastErrorMessage(const char * value)155     inline ConfigExportDeliveryInfo& WithLastErrorMessage(const char* value) { SetLastErrorMessage(value); return *this;}
156 
157 
158     /**
159      * <p>The time of the last attempted delivery.</p>
160      */
GetLastAttemptTime()161     inline const Aws::Utils::DateTime& GetLastAttemptTime() const{ return m_lastAttemptTime; }
162 
163     /**
164      * <p>The time of the last attempted delivery.</p>
165      */
LastAttemptTimeHasBeenSet()166     inline bool LastAttemptTimeHasBeenSet() const { return m_lastAttemptTimeHasBeenSet; }
167 
168     /**
169      * <p>The time of the last attempted delivery.</p>
170      */
SetLastAttemptTime(const Aws::Utils::DateTime & value)171     inline void SetLastAttemptTime(const Aws::Utils::DateTime& value) { m_lastAttemptTimeHasBeenSet = true; m_lastAttemptTime = value; }
172 
173     /**
174      * <p>The time of the last attempted delivery.</p>
175      */
SetLastAttemptTime(Aws::Utils::DateTime && value)176     inline void SetLastAttemptTime(Aws::Utils::DateTime&& value) { m_lastAttemptTimeHasBeenSet = true; m_lastAttemptTime = std::move(value); }
177 
178     /**
179      * <p>The time of the last attempted delivery.</p>
180      */
WithLastAttemptTime(const Aws::Utils::DateTime & value)181     inline ConfigExportDeliveryInfo& WithLastAttemptTime(const Aws::Utils::DateTime& value) { SetLastAttemptTime(value); return *this;}
182 
183     /**
184      * <p>The time of the last attempted delivery.</p>
185      */
WithLastAttemptTime(Aws::Utils::DateTime && value)186     inline ConfigExportDeliveryInfo& WithLastAttemptTime(Aws::Utils::DateTime&& value) { SetLastAttemptTime(std::move(value)); return *this;}
187 
188 
189     /**
190      * <p>The time of the last successful delivery.</p>
191      */
GetLastSuccessfulTime()192     inline const Aws::Utils::DateTime& GetLastSuccessfulTime() const{ return m_lastSuccessfulTime; }
193 
194     /**
195      * <p>The time of the last successful delivery.</p>
196      */
LastSuccessfulTimeHasBeenSet()197     inline bool LastSuccessfulTimeHasBeenSet() const { return m_lastSuccessfulTimeHasBeenSet; }
198 
199     /**
200      * <p>The time of the last successful delivery.</p>
201      */
SetLastSuccessfulTime(const Aws::Utils::DateTime & value)202     inline void SetLastSuccessfulTime(const Aws::Utils::DateTime& value) { m_lastSuccessfulTimeHasBeenSet = true; m_lastSuccessfulTime = value; }
203 
204     /**
205      * <p>The time of the last successful delivery.</p>
206      */
SetLastSuccessfulTime(Aws::Utils::DateTime && value)207     inline void SetLastSuccessfulTime(Aws::Utils::DateTime&& value) { m_lastSuccessfulTimeHasBeenSet = true; m_lastSuccessfulTime = std::move(value); }
208 
209     /**
210      * <p>The time of the last successful delivery.</p>
211      */
WithLastSuccessfulTime(const Aws::Utils::DateTime & value)212     inline ConfigExportDeliveryInfo& WithLastSuccessfulTime(const Aws::Utils::DateTime& value) { SetLastSuccessfulTime(value); return *this;}
213 
214     /**
215      * <p>The time of the last successful delivery.</p>
216      */
WithLastSuccessfulTime(Aws::Utils::DateTime && value)217     inline ConfigExportDeliveryInfo& WithLastSuccessfulTime(Aws::Utils::DateTime&& value) { SetLastSuccessfulTime(std::move(value)); return *this;}
218 
219 
220     /**
221      * <p>The time that the next delivery occurs.</p>
222      */
GetNextDeliveryTime()223     inline const Aws::Utils::DateTime& GetNextDeliveryTime() const{ return m_nextDeliveryTime; }
224 
225     /**
226      * <p>The time that the next delivery occurs.</p>
227      */
NextDeliveryTimeHasBeenSet()228     inline bool NextDeliveryTimeHasBeenSet() const { return m_nextDeliveryTimeHasBeenSet; }
229 
230     /**
231      * <p>The time that the next delivery occurs.</p>
232      */
SetNextDeliveryTime(const Aws::Utils::DateTime & value)233     inline void SetNextDeliveryTime(const Aws::Utils::DateTime& value) { m_nextDeliveryTimeHasBeenSet = true; m_nextDeliveryTime = value; }
234 
235     /**
236      * <p>The time that the next delivery occurs.</p>
237      */
SetNextDeliveryTime(Aws::Utils::DateTime && value)238     inline void SetNextDeliveryTime(Aws::Utils::DateTime&& value) { m_nextDeliveryTimeHasBeenSet = true; m_nextDeliveryTime = std::move(value); }
239 
240     /**
241      * <p>The time that the next delivery occurs.</p>
242      */
WithNextDeliveryTime(const Aws::Utils::DateTime & value)243     inline ConfigExportDeliveryInfo& WithNextDeliveryTime(const Aws::Utils::DateTime& value) { SetNextDeliveryTime(value); return *this;}
244 
245     /**
246      * <p>The time that the next delivery occurs.</p>
247      */
WithNextDeliveryTime(Aws::Utils::DateTime && value)248     inline ConfigExportDeliveryInfo& WithNextDeliveryTime(Aws::Utils::DateTime&& value) { SetNextDeliveryTime(std::move(value)); return *this;}
249 
250   private:
251 
252     DeliveryStatus m_lastStatus;
253     bool m_lastStatusHasBeenSet;
254 
255     Aws::String m_lastErrorCode;
256     bool m_lastErrorCodeHasBeenSet;
257 
258     Aws::String m_lastErrorMessage;
259     bool m_lastErrorMessageHasBeenSet;
260 
261     Aws::Utils::DateTime m_lastAttemptTime;
262     bool m_lastAttemptTimeHasBeenSet;
263 
264     Aws::Utils::DateTime m_lastSuccessfulTime;
265     bool m_lastSuccessfulTimeHasBeenSet;
266 
267     Aws::Utils::DateTime m_nextDeliveryTime;
268     bool m_nextDeliveryTimeHasBeenSet;
269   };
270 
271 } // namespace Model
272 } // namespace ConfigService
273 } // namespace Aws
274