AWS SDK for C++  1.9.108
AWS SDK for C++
DataSource.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace OpsWorks
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
45  inline const Aws::String& GetType() const{ return m_type; }
46 
52  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 
59  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
60 
66  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67 
73  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
74 
80  inline DataSource& WithType(const Aws::String& value) { SetType(value); return *this;}
81 
87  inline DataSource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
88 
94  inline DataSource& WithType(const char* value) { SetType(value); return *this;}
95 
96 
100  inline const Aws::String& GetArn() const{ return m_arn; }
101 
105  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
106 
110  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
111 
115  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
116 
120  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
121 
125  inline DataSource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
126 
130  inline DataSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
131 
135  inline DataSource& WithArn(const char* value) { SetArn(value); return *this;}
136 
137 
141  inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
142 
146  inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
147 
151  inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
152 
156  inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
157 
161  inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
162 
166  inline DataSource& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
167 
171  inline DataSource& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
172 
176  inline DataSource& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
177 
178  private:
179 
180  Aws::String m_type;
181  bool m_typeHasBeenSet;
182 
183  Aws::String m_arn;
184  bool m_arnHasBeenSet;
185 
186  Aws::String m_databaseName;
187  bool m_databaseNameHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace OpsWorks
192 } // namespace Aws
Aws::OpsWorks::Model::DataSource::WithArn
DataSource & WithArn(Aws::String &&value)
Definition: DataSource.h:130
Aws::OpsWorks::Model::DataSource::SetArn
void SetArn(Aws::String &&value)
Definition: DataSource.h:115
Aws::OpsWorks::Model::DataSource::SetDatabaseName
void SetDatabaseName(Aws::String &&value)
Definition: DataSource.h:156
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DataSource
Definition: DataSource.h:32
Aws::OpsWorks::Model::DataSource::GetDatabaseName
const Aws::String & GetDatabaseName() const
Definition: DataSource.h:141
Aws::OpsWorks::Model::DataSource::WithType
DataSource & WithType(const char *value)
Definition: DataSource.h:94
Aws::OpsWorks::Model::DataSource::WithArn
DataSource & WithArn(const char *value)
Definition: DataSource.h:135
Aws::OpsWorks::Model::DataSource::WithDatabaseName
DataSource & WithDatabaseName(Aws::String &&value)
Definition: DataSource.h:171
Aws::OpsWorks::Model::DataSource::SetType
void SetType(Aws::String &&value)
Definition: DataSource.h:66
Aws::OpsWorks::Model::DataSource::GetArn
const Aws::String & GetArn() const
Definition: DataSource.h:100
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DataSource::GetType
const Aws::String & GetType() const
Definition: DataSource.h:45
Aws::OpsWorks::Model::DataSource::SetType
void SetType(const char *value)
Definition: DataSource.h:73
Aws::OpsWorks::Model::DataSource::SetType
void SetType(const Aws::String &value)
Definition: DataSource.h:59
Aws::OpsWorks::Model::DataSource::DataSource
DataSource()
Aws::OpsWorks::Model::DataSource::DataSource
DataSource(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::DataSource::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: DataSource.h:52
Aws::OpsWorks::Model::DataSource::SetDatabaseName
void SetDatabaseName(const char *value)
Definition: DataSource.h:161
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::OpsWorks::Model::DataSource::SetDatabaseName
void SetDatabaseName(const Aws::String &value)
Definition: DataSource.h:151
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::DataSource::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: DataSource.h:105
Aws::OpsWorks::Model::DataSource::WithDatabaseName
DataSource & WithDatabaseName(const char *value)
Definition: DataSource.h:176
Aws::OpsWorks::Model::DataSource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::DataSource::SetArn
void SetArn(const char *value)
Definition: DataSource.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DataSource::WithArn
DataSource & WithArn(const Aws::String &value)
Definition: DataSource.h:125
Aws::OpsWorks::Model::DataSource::DatabaseNameHasBeenSet
bool DatabaseNameHasBeenSet() const
Definition: DataSource.h:146
Aws::OpsWorks::Model::DataSource::WithType
DataSource & WithType(const Aws::String &value)
Definition: DataSource.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DataSource::WithDatabaseName
DataSource & WithDatabaseName(const Aws::String &value)
Definition: DataSource.h:166
Aws::OpsWorks::Model::DataSource::SetArn
void SetArn(const Aws::String &value)
Definition: DataSource.h:110
Aws::OpsWorks::Model::DataSource::operator=
DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::DataSource::WithType
DataSource & WithType(Aws::String &&value)
Definition: DataSource.h:87