AWS SDK for C++  0.14.3
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 
39  {
40  public:
43  RefreshSchemasStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
51 
56  inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
57 
62  inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
63 
68  inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
69 
74  inline RefreshSchemasStatus& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
75 
80  inline RefreshSchemasStatus& WithEndpointArn(Aws::String&& value) { SetEndpointArn(value); return *this;}
81 
86  inline RefreshSchemasStatus& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
87 
91  inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; }
92 
96  inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; }
97 
101  inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; }
102 
106  inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); }
107 
111  inline RefreshSchemasStatus& WithReplicationInstanceArn(const Aws::String& value) { SetReplicationInstanceArn(value); return *this;}
112 
116  inline RefreshSchemasStatus& WithReplicationInstanceArn(Aws::String&& value) { SetReplicationInstanceArn(value); return *this;}
117 
121  inline RefreshSchemasStatus& WithReplicationInstanceArn(const char* value) { SetReplicationInstanceArn(value); return *this;}
122 
126  inline const RefreshSchemasStatusTypeValue& GetStatus() const{ return m_status; }
127 
131  inline void SetStatus(const RefreshSchemasStatusTypeValue& value) { m_statusHasBeenSet = true; m_status = value; }
132 
136  inline void SetStatus(RefreshSchemasStatusTypeValue&& value) { m_statusHasBeenSet = true; m_status = value; }
137 
141  inline RefreshSchemasStatus& WithStatus(const RefreshSchemasStatusTypeValue& value) { SetStatus(value); return *this;}
142 
146  inline RefreshSchemasStatus& WithStatus(RefreshSchemasStatusTypeValue&& value) { SetStatus(value); return *this;}
147 
151  inline const Aws::Utils::DateTime& GetLastRefreshDate() const{ return m_lastRefreshDate; }
152 
156  inline void SetLastRefreshDate(const Aws::Utils::DateTime& value) { m_lastRefreshDateHasBeenSet = true; m_lastRefreshDate = value; }
157 
161  inline void SetLastRefreshDate(Aws::Utils::DateTime&& value) { m_lastRefreshDateHasBeenSet = true; m_lastRefreshDate = value; }
162 
166  inline RefreshSchemasStatus& WithLastRefreshDate(const Aws::Utils::DateTime& value) { SetLastRefreshDate(value); return *this;}
167 
171  inline RefreshSchemasStatus& WithLastRefreshDate(Aws::Utils::DateTime&& value) { SetLastRefreshDate(value); return *this;}
172 
176  inline const Aws::String& GetLastFailureMessage() const{ return m_lastFailureMessage; }
177 
181  inline void SetLastFailureMessage(const Aws::String& value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage = value; }
182 
186  inline void SetLastFailureMessage(Aws::String&& value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage = value; }
187 
191  inline void SetLastFailureMessage(const char* value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage.assign(value); }
192 
196  inline RefreshSchemasStatus& WithLastFailureMessage(const Aws::String& value) { SetLastFailureMessage(value); return *this;}
197 
201  inline RefreshSchemasStatus& WithLastFailureMessage(Aws::String&& value) { SetLastFailureMessage(value); return *this;}
202 
206  inline RefreshSchemasStatus& WithLastFailureMessage(const char* value) { SetLastFailureMessage(value); return *this;}
207 
208  private:
209  Aws::String m_endpointArn;
210  bool m_endpointArnHasBeenSet;
211  Aws::String m_replicationInstanceArn;
212  bool m_replicationInstanceArnHasBeenSet;
214  bool m_statusHasBeenSet;
215  Aws::Utils::DateTime m_lastRefreshDate;
216  bool m_lastRefreshDateHasBeenSet;
217  Aws::String m_lastFailureMessage;
218  bool m_lastFailureMessageHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace DatabaseMigrationService
223 } // 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).