AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetImportResult.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex-models/model/ResourceType.h>
10#include <aws/lex-models/model/MergeStrategy.h>
11#include <aws/lex-models/model/ImportStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace LexModelBuildingService
29{
30namespace Model
31{
33 {
34 public:
35 AWS_LEXMODELBUILDINGSERVICE_API GetImportResult();
36 AWS_LEXMODELBUILDINGSERVICE_API GetImportResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline void SetName(const Aws::String& value) { m_name = value; }
46 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
47 inline void SetName(const char* value) { m_name.assign(value); }
48 inline GetImportResult& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline GetImportResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline GetImportResult& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
58 inline void SetResourceType(const ResourceType& value) { m_resourceType = value; }
59 inline void SetResourceType(ResourceType&& value) { m_resourceType = std::move(value); }
60 inline GetImportResult& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
61 inline GetImportResult& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
63
65
69 inline const MergeStrategy& GetMergeStrategy() const{ return m_mergeStrategy; }
70 inline void SetMergeStrategy(const MergeStrategy& value) { m_mergeStrategy = value; }
71 inline void SetMergeStrategy(MergeStrategy&& value) { m_mergeStrategy = std::move(value); }
72 inline GetImportResult& WithMergeStrategy(const MergeStrategy& value) { SetMergeStrategy(value); return *this;}
73 inline GetImportResult& WithMergeStrategy(MergeStrategy&& value) { SetMergeStrategy(std::move(value)); return *this;}
75
77
80 inline const Aws::String& GetImportId() const{ return m_importId; }
81 inline void SetImportId(const Aws::String& value) { m_importId = value; }
82 inline void SetImportId(Aws::String&& value) { m_importId = std::move(value); }
83 inline void SetImportId(const char* value) { m_importId.assign(value); }
84 inline GetImportResult& WithImportId(const Aws::String& value) { SetImportId(value); return *this;}
85 inline GetImportResult& WithImportId(Aws::String&& value) { SetImportId(std::move(value)); return *this;}
86 inline GetImportResult& WithImportId(const char* value) { SetImportId(value); return *this;}
88
90
94 inline const ImportStatus& GetImportStatus() const{ return m_importStatus; }
95 inline void SetImportStatus(const ImportStatus& value) { m_importStatus = value; }
96 inline void SetImportStatus(ImportStatus&& value) { m_importStatus = std::move(value); }
97 inline GetImportResult& WithImportStatus(const ImportStatus& value) { SetImportStatus(value); return *this;}
98 inline GetImportResult& WithImportStatus(ImportStatus&& value) { SetImportStatus(std::move(value)); return *this;}
100
102
105 inline const Aws::Vector<Aws::String>& GetFailureReason() const{ return m_failureReason; }
106 inline void SetFailureReason(const Aws::Vector<Aws::String>& value) { m_failureReason = value; }
107 inline void SetFailureReason(Aws::Vector<Aws::String>&& value) { m_failureReason = std::move(value); }
108 inline GetImportResult& WithFailureReason(const Aws::Vector<Aws::String>& value) { SetFailureReason(value); return *this;}
109 inline GetImportResult& WithFailureReason(Aws::Vector<Aws::String>&& value) { SetFailureReason(std::move(value)); return *this;}
110 inline GetImportResult& AddFailureReason(const Aws::String& value) { m_failureReason.push_back(value); return *this; }
111 inline GetImportResult& AddFailureReason(Aws::String&& value) { m_failureReason.push_back(std::move(value)); return *this; }
112 inline GetImportResult& AddFailureReason(const char* value) { m_failureReason.push_back(value); return *this; }
114
116
119 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
120 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
121 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
122 inline GetImportResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
123 inline GetImportResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
125
127
128 inline const Aws::String& GetRequestId() const{ return m_requestId; }
129 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
130 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
131 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
132 inline GetImportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
133 inline GetImportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
134 inline GetImportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
136 private:
137
138 Aws::String m_name;
139
140 ResourceType m_resourceType;
141
142 MergeStrategy m_mergeStrategy;
143
144 Aws::String m_importId;
145
146 ImportStatus m_importStatus;
147
148 Aws::Vector<Aws::String> m_failureReason;
149
150 Aws::Utils::DateTime m_createdDate;
151
152 Aws::String m_requestId;
153 };
154
155} // namespace Model
156} // namespace LexModelBuildingService
157} // namespace Aws
GetImportResult & WithFailureReason(const Aws::Vector< Aws::String > &value)
GetImportResult & WithName(const char *value)
AWS_LEXMODELBUILDINGSERVICE_API GetImportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetImportResult & WithCreatedDate(Aws::Utils::DateTime &&value)
GetImportResult & WithResourceType(const ResourceType &value)
GetImportResult & WithMergeStrategy(const MergeStrategy &value)
const Aws::Vector< Aws::String > & GetFailureReason() const
GetImportResult & WithMergeStrategy(MergeStrategy &&value)
void SetMergeStrategy(const MergeStrategy &value)
void SetFailureReason(const Aws::Vector< Aws::String > &value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
GetImportResult & WithName(Aws::String &&value)
AWS_LEXMODELBUILDINGSERVICE_API GetImportResult()
GetImportResult & AddFailureReason(const Aws::String &value)
GetImportResult & WithImportId(const char *value)
GetImportResult & AddFailureReason(const char *value)
GetImportResult & WithImportStatus(ImportStatus &&value)
GetImportResult & WithImportStatus(const ImportStatus &value)
GetImportResult & WithFailureReason(Aws::Vector< Aws::String > &&value)
GetImportResult & WithRequestId(const Aws::String &value)
GetImportResult & WithImportId(Aws::String &&value)
GetImportResult & WithImportId(const Aws::String &value)
GetImportResult & WithRequestId(Aws::String &&value)
GetImportResult & AddFailureReason(Aws::String &&value)
GetImportResult & WithCreatedDate(const Aws::Utils::DateTime &value)
void SetFailureReason(Aws::Vector< Aws::String > &&value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
GetImportResult & WithName(const Aws::String &value)
GetImportResult & WithResourceType(ResourceType &&value)
AWS_LEXMODELBUILDINGSERVICE_API GetImportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetImportResult & WithRequestId(const char *value)
const Aws::Utils::DateTime & GetCreatedDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue