AWS SDK for C++  0.12.9
AWS SDK for C++
ConfigExportDeliveryInfo.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace ConfigService
31 {
32 namespace Model
33 {
34 
40  {
41  public:
44  ConfigExportDeliveryInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const DeliveryStatus& GetLastStatus() const{ return m_lastStatus; }
51 
55  inline void SetLastStatus(const DeliveryStatus& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
56 
60  inline void SetLastStatus(DeliveryStatus&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
61 
65  inline ConfigExportDeliveryInfo& WithLastStatus(const DeliveryStatus& value) { SetLastStatus(value); return *this;}
66 
70  inline ConfigExportDeliveryInfo& WithLastStatus(DeliveryStatus&& value) { SetLastStatus(value); return *this;}
71 
75  inline const Aws::String& GetLastErrorCode() const{ return m_lastErrorCode; }
76 
80  inline void SetLastErrorCode(const Aws::String& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = value; }
81 
85  inline void SetLastErrorCode(Aws::String&& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = value; }
86 
90  inline void SetLastErrorCode(const char* value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode.assign(value); }
91 
95  inline ConfigExportDeliveryInfo& WithLastErrorCode(const Aws::String& value) { SetLastErrorCode(value); return *this;}
96 
100  inline ConfigExportDeliveryInfo& WithLastErrorCode(Aws::String&& value) { SetLastErrorCode(value); return *this;}
101 
105  inline ConfigExportDeliveryInfo& WithLastErrorCode(const char* value) { SetLastErrorCode(value); return *this;}
106 
110  inline const Aws::String& GetLastErrorMessage() const{ return m_lastErrorMessage; }
111 
115  inline void SetLastErrorMessage(const Aws::String& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = value; }
116 
120  inline void SetLastErrorMessage(Aws::String&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = value; }
121 
125  inline void SetLastErrorMessage(const char* value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage.assign(value); }
126 
130  inline ConfigExportDeliveryInfo& WithLastErrorMessage(const Aws::String& value) { SetLastErrorMessage(value); return *this;}
131 
135  inline ConfigExportDeliveryInfo& WithLastErrorMessage(Aws::String&& value) { SetLastErrorMessage(value); return *this;}
136 
140  inline ConfigExportDeliveryInfo& WithLastErrorMessage(const char* value) { SetLastErrorMessage(value); return *this;}
141 
145  inline const Aws::Utils::DateTime& GetLastAttemptTime() const{ return m_lastAttemptTime; }
146 
150  inline void SetLastAttemptTime(const Aws::Utils::DateTime& value) { m_lastAttemptTimeHasBeenSet = true; m_lastAttemptTime = value; }
151 
155  inline void SetLastAttemptTime(Aws::Utils::DateTime&& value) { m_lastAttemptTimeHasBeenSet = true; m_lastAttemptTime = value; }
156 
160  inline ConfigExportDeliveryInfo& WithLastAttemptTime(const Aws::Utils::DateTime& value) { SetLastAttemptTime(value); return *this;}
161 
165  inline ConfigExportDeliveryInfo& WithLastAttemptTime(Aws::Utils::DateTime&& value) { SetLastAttemptTime(value); return *this;}
166 
170  inline const Aws::Utils::DateTime& GetLastSuccessfulTime() const{ return m_lastSuccessfulTime; }
171 
175  inline void SetLastSuccessfulTime(const Aws::Utils::DateTime& value) { m_lastSuccessfulTimeHasBeenSet = true; m_lastSuccessfulTime = value; }
176 
180  inline void SetLastSuccessfulTime(Aws::Utils::DateTime&& value) { m_lastSuccessfulTimeHasBeenSet = true; m_lastSuccessfulTime = value; }
181 
185  inline ConfigExportDeliveryInfo& WithLastSuccessfulTime(const Aws::Utils::DateTime& value) { SetLastSuccessfulTime(value); return *this;}
186 
190  inline ConfigExportDeliveryInfo& WithLastSuccessfulTime(Aws::Utils::DateTime&& value) { SetLastSuccessfulTime(value); return *this;}
191 
195  inline const Aws::Utils::DateTime& GetNextDeliveryTime() const{ return m_nextDeliveryTime; }
196 
200  inline void SetNextDeliveryTime(const Aws::Utils::DateTime& value) { m_nextDeliveryTimeHasBeenSet = true; m_nextDeliveryTime = value; }
201 
205  inline void SetNextDeliveryTime(Aws::Utils::DateTime&& value) { m_nextDeliveryTimeHasBeenSet = true; m_nextDeliveryTime = value; }
206 
210  inline ConfigExportDeliveryInfo& WithNextDeliveryTime(const Aws::Utils::DateTime& value) { SetNextDeliveryTime(value); return *this;}
211 
215  inline ConfigExportDeliveryInfo& WithNextDeliveryTime(Aws::Utils::DateTime&& value) { SetNextDeliveryTime(value); return *this;}
216 
217  private:
218  DeliveryStatus m_lastStatus;
219  bool m_lastStatusHasBeenSet;
220  Aws::String m_lastErrorCode;
221  bool m_lastErrorCodeHasBeenSet;
222  Aws::String m_lastErrorMessage;
223  bool m_lastErrorMessageHasBeenSet;
224  Aws::Utils::DateTime m_lastAttemptTime;
225  bool m_lastAttemptTimeHasBeenSet;
226  Aws::Utils::DateTime m_lastSuccessfulTime;
227  bool m_lastSuccessfulTimeHasBeenSet;
228  Aws::Utils::DateTime m_nextDeliveryTime;
229  bool m_nextDeliveryTimeHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace ConfigService
234 } // namespace Aws
ConfigExportDeliveryInfo & WithLastErrorCode(const char *value)
ConfigExportDeliveryInfo & WithLastAttemptTime(Aws::Utils::DateTime &&value)
ConfigExportDeliveryInfo & WithLastStatus(DeliveryStatus &&value)
ConfigExportDeliveryInfo & WithLastSuccessfulTime(const Aws::Utils::DateTime &value)
ConfigExportDeliveryInfo & WithLastAttemptTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastAttemptTime() const
const Aws::Utils::DateTime & GetNextDeliveryTime() const
void SetLastAttemptTime(const Aws::Utils::DateTime &value)
void SetLastSuccessfulTime(const Aws::Utils::DateTime &value)
ConfigExportDeliveryInfo & WithLastErrorCode(const Aws::String &value)
ConfigExportDeliveryInfo & WithLastErrorCode(Aws::String &&value)
void SetNextDeliveryTime(const Aws::Utils::DateTime &value)
ConfigExportDeliveryInfo & WithLastSuccessfulTime(Aws::Utils::DateTime &&value)
ConfigExportDeliveryInfo & WithLastStatus(const DeliveryStatus &value)
const Aws::Utils::DateTime & GetLastSuccessfulTime() const
ConfigExportDeliveryInfo & WithNextDeliveryTime(Aws::Utils::DateTime &&value)
ConfigExportDeliveryInfo & WithLastErrorMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ConfigExportDeliveryInfo & WithNextDeliveryTime(const Aws::Utils::DateTime &value)
#define AWS_CONFIGSERVICE_API
ConfigExportDeliveryInfo & WithLastErrorMessage(Aws::String &&value)
ConfigExportDeliveryInfo & WithLastErrorMessage(const Aws::String &value)
JSON (JavaScript Object Notation).