AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataSourceIntrospectionResult.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appsync/model/DataSourceIntrospectionModel.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppSync
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_APPSYNC_API DataSourceIntrospectionResult() = default;
41 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<DataSourceIntrospectionModel>& GetModels() const { return m_models; }
49 inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; }
50 template<typename ModelsT = Aws::Vector<DataSourceIntrospectionModel>>
51 void SetModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models = std::forward<ModelsT>(value); }
52 template<typename ModelsT = Aws::Vector<DataSourceIntrospectionModel>>
53 DataSourceIntrospectionResult& WithModels(ModelsT&& value) { SetModels(std::forward<ModelsT>(value)); return *this;}
54 template<typename ModelsT = DataSourceIntrospectionModel>
55 DataSourceIntrospectionResult& AddModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models.emplace_back(std::forward<ModelsT>(value)); return *this; }
57
59
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
66 template<typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
68 template<typename NextTokenT = Aws::String>
69 DataSourceIntrospectionResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
71 private:
72
74 bool m_modelsHasBeenSet = false;
75
76 Aws::String m_nextToken;
77 bool m_nextTokenHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace AppSync
82} // namespace Aws
DataSourceIntrospectionResult & WithModels(ModelsT &&value)
const Aws::Vector< DataSourceIntrospectionModel > & GetModels() const
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceIntrospectionResult & WithNextToken(NextTokenT &&value)
AWS_APPSYNC_API DataSourceIntrospectionResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API DataSourceIntrospectionResult(Aws::Utils::Json::JsonView jsonValue)
DataSourceIntrospectionResult & AddModels(ModelsT &&value)
AWS_APPSYNC_API DataSourceIntrospectionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue