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/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpsWorks
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_OPSWORKS_API DataSource();
35 AWS_OPSWORKS_API DataSource(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPSWORKS_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
46 inline const Aws::String& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
51 inline DataSource& WithType(const Aws::String& value) { SetType(value); return *this;}
52 inline DataSource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
53 inline DataSource& WithType(const char* value) { SetType(value); return *this;}
55
57
60 inline const Aws::String& GetArn() const{ return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
63 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
64 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 inline DataSource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
66 inline DataSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
67 inline DataSource& WithArn(const char* value) { SetArn(value); return *this;}
69
71
74 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
75 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
76 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
77 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
78 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
79 inline DataSource& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
80 inline DataSource& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
81 inline DataSource& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
83 private:
84
85 Aws::String m_type;
86 bool m_typeHasBeenSet = false;
87
88 Aws::String m_arn;
89 bool m_arnHasBeenSet = false;
90
91 Aws::String m_databaseName;
92 bool m_databaseNameHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace OpsWorks
97} // namespace Aws
const Aws::String & GetType() const
Definition DataSource.h:46
DataSource & WithType(const char *value)
Definition DataSource.h:53
DataSource & WithDatabaseName(const Aws::String &value)
Definition DataSource.h:79
AWS_OPSWORKS_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDatabaseName(const char *value)
Definition DataSource.h:78
void SetType(Aws::String &&value)
Definition DataSource.h:49
DataSource & WithType(Aws::String &&value)
Definition DataSource.h:52
void SetType(const Aws::String &value)
Definition DataSource.h:48
const Aws::String & GetDatabaseName() const
Definition DataSource.h:74
DataSource & WithArn(const char *value)
Definition DataSource.h:67
void SetArn(const char *value)
Definition DataSource.h:64
void SetType(const char *value)
Definition DataSource.h:50
AWS_OPSWORKS_API DataSource(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithType(const Aws::String &value)
Definition DataSource.h:51
DataSource & WithArn(Aws::String &&value)
Definition DataSource.h:66
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArn(Aws::String &&value)
Definition DataSource.h:63
const Aws::String & GetArn() const
Definition DataSource.h:60
void SetDatabaseName(Aws::String &&value)
Definition DataSource.h:77
DataSource & WithDatabaseName(Aws::String &&value)
Definition DataSource.h:80
DataSource & WithArn(const Aws::String &value)
Definition DataSource.h:65
DataSource & WithDatabaseName(const char *value)
Definition DataSource.h:81
void SetArn(const Aws::String &value)
Definition DataSource.h:62
void SetDatabaseName(const Aws::String &value)
Definition DataSource.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue