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/appsync/AppSync_EXPORTS.h>
8 #include <aws/appsync/model/SchemaStatus.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21   class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace AppSync
25 {
26 namespace Model
27 {
28   class AWS_APPSYNC_API GetSchemaCreationStatusResult
29   {
30   public:
31     GetSchemaCreationStatusResult();
32     GetSchemaCreationStatusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     GetSchemaCreationStatusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or
38      * NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.</p>
39      */
GetStatus()40     inline const SchemaStatus& GetStatus() const{ return m_status; }
41 
42     /**
43      * <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or
44      * NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.</p>
45      */
SetStatus(const SchemaStatus & value)46     inline void SetStatus(const SchemaStatus& value) { m_status = value; }
47 
48     /**
49      * <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or
50      * NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.</p>
51      */
SetStatus(SchemaStatus && value)52     inline void SetStatus(SchemaStatus&& value) { m_status = std::move(value); }
53 
54     /**
55      * <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or
56      * NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.</p>
57      */
WithStatus(const SchemaStatus & value)58     inline GetSchemaCreationStatusResult& WithStatus(const SchemaStatus& value) { SetStatus(value); return *this;}
59 
60     /**
61      * <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or
62      * NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.</p>
63      */
WithStatus(SchemaStatus && value)64     inline GetSchemaCreationStatusResult& WithStatus(SchemaStatus&& value) { SetStatus(std::move(value)); return *this;}
65 
66 
67     /**
68      * <p>Detailed information about the status of the schema creation operation.</p>
69      */
GetDetails()70     inline const Aws::String& GetDetails() const{ return m_details; }
71 
72     /**
73      * <p>Detailed information about the status of the schema creation operation.</p>
74      */
SetDetails(const Aws::String & value)75     inline void SetDetails(const Aws::String& value) { m_details = value; }
76 
77     /**
78      * <p>Detailed information about the status of the schema creation operation.</p>
79      */
SetDetails(Aws::String && value)80     inline void SetDetails(Aws::String&& value) { m_details = std::move(value); }
81 
82     /**
83      * <p>Detailed information about the status of the schema creation operation.</p>
84      */
SetDetails(const char * value)85     inline void SetDetails(const char* value) { m_details.assign(value); }
86 
87     /**
88      * <p>Detailed information about the status of the schema creation operation.</p>
89      */
WithDetails(const Aws::String & value)90     inline GetSchemaCreationStatusResult& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
91 
92     /**
93      * <p>Detailed information about the status of the schema creation operation.</p>
94      */
WithDetails(Aws::String && value)95     inline GetSchemaCreationStatusResult& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
96 
97     /**
98      * <p>Detailed information about the status of the schema creation operation.</p>
99      */
WithDetails(const char * value)100     inline GetSchemaCreationStatusResult& WithDetails(const char* value) { SetDetails(value); return *this;}
101 
102   private:
103 
104     SchemaStatus m_status;
105 
106     Aws::String m_details;
107   };
108 
109 } // namespace Model
110 } // namespace AppSync
111 } // namespace Aws
112