AWS SDK for C++  0.12.9
AWS SDK for C++
RefreshSchemasStatus.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 DatabaseMigrationService
31 {
32 namespace Model
33 {
34 
36  {
37  public:
40  RefreshSchemasStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
42 
47  inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
48 
53  inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
54 
59  inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
60 
65  inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
66 
71  inline RefreshSchemasStatus& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
72 
77  inline RefreshSchemasStatus& WithEndpointArn(Aws::String&& value) { SetEndpointArn(value); return *this;}
78 
83  inline RefreshSchemasStatus& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
84 
88  inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; }
89 
93  inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; }
94 
98  inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; }
99 
103  inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); }
104 
108  inline RefreshSchemasStatus& WithReplicationInstanceArn(const Aws::String& value) { SetReplicationInstanceArn(value); return *this;}
109 
113  inline RefreshSchemasStatus& WithReplicationInstanceArn(Aws::String&& value) { SetReplicationInstanceArn(value); return *this;}
114 
118  inline RefreshSchemasStatus& WithReplicationInstanceArn(const char* value) { SetReplicationInstanceArn(value); return *this;}
119 
123  inline const RefreshSchemasStatusTypeValue& GetStatus() const{ return m_status; }
124 
128  inline void SetStatus(const RefreshSchemasStatusTypeValue& value) { m_statusHasBeenSet = true; m_status = value; }
129 
133  inline void SetStatus(RefreshSchemasStatusTypeValue&& value) { m_statusHasBeenSet = true; m_status = value; }
134 
138  inline RefreshSchemasStatus& WithStatus(const RefreshSchemasStatusTypeValue& value) { SetStatus(value); return *this;}
139 
143  inline RefreshSchemasStatus& WithStatus(RefreshSchemasStatusTypeValue&& value) { SetStatus(value); return *this;}
144 
148  inline const Aws::Utils::DateTime& GetLastRefreshDate() const{ return m_lastRefreshDate; }
149 
153  inline void SetLastRefreshDate(const Aws::Utils::DateTime& value) { m_lastRefreshDateHasBeenSet = true; m_lastRefreshDate = value; }
154 
158  inline void SetLastRefreshDate(Aws::Utils::DateTime&& value) { m_lastRefreshDateHasBeenSet = true; m_lastRefreshDate = value; }
159 
163  inline RefreshSchemasStatus& WithLastRefreshDate(const Aws::Utils::DateTime& value) { SetLastRefreshDate(value); return *this;}
164 
168  inline RefreshSchemasStatus& WithLastRefreshDate(Aws::Utils::DateTime&& value) { SetLastRefreshDate(value); return *this;}
169 
173  inline const Aws::String& GetLastFailureMessage() const{ return m_lastFailureMessage; }
174 
178  inline void SetLastFailureMessage(const Aws::String& value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage = value; }
179 
183  inline void SetLastFailureMessage(Aws::String&& value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage = value; }
184 
188  inline void SetLastFailureMessage(const char* value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage.assign(value); }
189 
193  inline RefreshSchemasStatus& WithLastFailureMessage(const Aws::String& value) { SetLastFailureMessage(value); return *this;}
194 
198  inline RefreshSchemasStatus& WithLastFailureMessage(Aws::String&& value) { SetLastFailureMessage(value); return *this;}
199 
203  inline RefreshSchemasStatus& WithLastFailureMessage(const char* value) { SetLastFailureMessage(value); return *this;}
204 
205  private:
206  Aws::String m_endpointArn;
207  bool m_endpointArnHasBeenSet;
208  Aws::String m_replicationInstanceArn;
209  bool m_replicationInstanceArnHasBeenSet;
211  bool m_statusHasBeenSet;
212  Aws::Utils::DateTime m_lastRefreshDate;
213  bool m_lastRefreshDateHasBeenSet;
214  Aws::String m_lastFailureMessage;
215  bool m_lastFailureMessageHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace DatabaseMigrationService
220 } // namespace Aws
RefreshSchemasStatus & WithLastRefreshDate(Aws::Utils::DateTime &&value)
RefreshSchemasStatus & WithEndpointArn(Aws::String &&value)
RefreshSchemasStatus & WithLastRefreshDate(const Aws::Utils::DateTime &value)
RefreshSchemasStatus & WithEndpointArn(const char *value)
#define AWS_DATABASEMIGRATIONSERVICE_API
RefreshSchemasStatus & WithLastFailureMessage(const Aws::String &value)
RefreshSchemasStatus & WithReplicationInstanceArn(const Aws::String &value)
RefreshSchemasStatus & WithEndpointArn(const Aws::String &value)
RefreshSchemasStatus & WithReplicationInstanceArn(Aws::String &&value)
RefreshSchemasStatus & WithStatus(const RefreshSchemasStatusTypeValue &value)
void SetStatus(RefreshSchemasStatusTypeValue &&value)
const RefreshSchemasStatusTypeValue & GetStatus() const
RefreshSchemasStatus & WithStatus(RefreshSchemasStatusTypeValue &&value)
void SetLastRefreshDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RefreshSchemasStatus & WithReplicationInstanceArn(const char *value)
RefreshSchemasStatus & WithLastFailureMessage(Aws::String &&value)
void SetStatus(const RefreshSchemasStatusTypeValue &value)
RefreshSchemasStatus & WithLastFailureMessage(const char *value)
JSON (JavaScript Object Notation).