AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/qbusiness/model/DataSourceStatus.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 QBusiness
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QBUSINESS_API DataSource();
38 AWS_QBUSINESS_API DataSource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QBUSINESS_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
48 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
49 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
50 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
51 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
52 inline DataSource& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
53 inline DataSource& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
54 inline DataSource& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
56
58
61 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
62 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
63 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
64 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
65 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
66 inline DataSource& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
67 inline DataSource& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
68 inline DataSource& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
70
72
75 inline const Aws::String& GetType() const{ return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
78 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
79 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
80 inline DataSource& WithType(const Aws::String& value) { SetType(value); return *this;}
81 inline DataSource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
82 inline DataSource& WithType(const char* value) { SetType(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
90 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
91 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
92 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
93 inline DataSource& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
94 inline DataSource& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
103 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
104 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
105 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
106 inline DataSource& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
107 inline DataSource& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
109
111
114 inline const DataSourceStatus& GetStatus() const{ return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(const DataSourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
117 inline void SetStatus(DataSourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
118 inline DataSource& WithStatus(const DataSourceStatus& value) { SetStatus(value); return *this;}
119 inline DataSource& WithStatus(DataSourceStatus&& value) { SetStatus(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_displayName;
124 bool m_displayNameHasBeenSet = false;
125
126 Aws::String m_dataSourceId;
127 bool m_dataSourceIdHasBeenSet = false;
128
129 Aws::String m_type;
130 bool m_typeHasBeenSet = false;
131
132 Aws::Utils::DateTime m_createdAt;
133 bool m_createdAtHasBeenSet = false;
134
135 Aws::Utils::DateTime m_updatedAt;
136 bool m_updatedAtHasBeenSet = false;
137
138 DataSourceStatus m_status;
139 bool m_statusHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace QBusiness
144} // namespace Aws
void SetDataSourceId(const char *value)
Definition DataSource.h:65
DataSource & WithDisplayName(Aws::String &&value)
Definition DataSource.h:53
AWS_QBUSINESS_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDataSourceId() const
Definition DataSource.h:61
DataSource & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:106
const Aws::String & GetDisplayName() const
Definition DataSource.h:47
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition DataSource.h:102
DataSource & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:94
DataSource & WithDataSourceId(const Aws::String &value)
Definition DataSource.h:66
DataSource & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:107
void SetType(const char *value)
Definition DataSource.h:79
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:104
DataSource & WithStatus(DataSourceStatus &&value)
Definition DataSource.h:119
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:91
const Aws::Utils::DateTime & GetCreatedAt() const
Definition DataSource.h:89
DataSource & WithDataSourceId(const char *value)
Definition DataSource.h:68
void SetDisplayName(const Aws::String &value)
Definition DataSource.h:49
void SetDataSourceId(const Aws::String &value)
Definition DataSource.h:63
AWS_QBUSINESS_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const DataSourceStatus & GetStatus() const
Definition DataSource.h:114
void SetType(Aws::String &&value)
Definition DataSource.h:78
void SetDataSourceId(Aws::String &&value)
Definition DataSource.h:64
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:92
void SetStatus(DataSourceStatus &&value)
Definition DataSource.h:117
DataSource & WithType(const Aws::String &value)
Definition DataSource.h:80
void SetStatus(const DataSourceStatus &value)
Definition DataSource.h:116
DataSource & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:93
DataSource & WithType(Aws::String &&value)
Definition DataSource.h:81
const Aws::String & GetType() const
Definition DataSource.h:75
void SetType(const Aws::String &value)
Definition DataSource.h:77
DataSource & WithDisplayName(const char *value)
Definition DataSource.h:54
DataSource & WithStatus(const DataSourceStatus &value)
Definition DataSource.h:118
DataSource & WithType(const char *value)
Definition DataSource.h:82
void SetDisplayName(const char *value)
Definition DataSource.h:51
DataSource & WithDisplayName(const Aws::String &value)
Definition DataSource.h:52
void SetDisplayName(Aws::String &&value)
Definition DataSource.h:50
DataSource & WithDataSourceId(Aws::String &&value)
Definition DataSource.h:67
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:105
AWS_QBUSINESS_API DataSource()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue