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/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/robomaker/model/DataSourceType.h>
11#include <aws/robomaker/model/S3KeyOutput.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace RoboMaker
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_ROBOMAKER_API DataSource();
38 AWS_ROBOMAKER_API DataSource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROBOMAKER_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline DataSource& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline DataSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline DataSource& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
62 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
63 inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
64 inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
65 inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
66 inline DataSource& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
67 inline DataSource& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
68 inline DataSource& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
70
72
75 inline const Aws::Vector<S3KeyOutput>& GetS3Keys() const{ return m_s3Keys; }
76 inline bool S3KeysHasBeenSet() const { return m_s3KeysHasBeenSet; }
77 inline void SetS3Keys(const Aws::Vector<S3KeyOutput>& value) { m_s3KeysHasBeenSet = true; m_s3Keys = value; }
78 inline void SetS3Keys(Aws::Vector<S3KeyOutput>&& value) { m_s3KeysHasBeenSet = true; m_s3Keys = std::move(value); }
79 inline DataSource& WithS3Keys(const Aws::Vector<S3KeyOutput>& value) { SetS3Keys(value); return *this;}
80 inline DataSource& WithS3Keys(Aws::Vector<S3KeyOutput>&& value) { SetS3Keys(std::move(value)); return *this;}
81 inline DataSource& AddS3Keys(const S3KeyOutput& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(value); return *this; }
82 inline DataSource& AddS3Keys(S3KeyOutput&& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(std::move(value)); return *this; }
84
86
92 inline const DataSourceType& GetType() const{ return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
95 inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
96 inline DataSource& WithType(const DataSourceType& value) { SetType(value); return *this;}
97 inline DataSource& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;}
99
101
112 inline const Aws::String& GetDestination() const{ return m_destination; }
113 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
114 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
115 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
116 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
117 inline DataSource& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
118 inline DataSource& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
119 inline DataSource& WithDestination(const char* value) { SetDestination(value); return *this;}
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::String m_s3Bucket;
127 bool m_s3BucketHasBeenSet = false;
128
130 bool m_s3KeysHasBeenSet = false;
131
132 DataSourceType m_type;
133 bool m_typeHasBeenSet = false;
134
135 Aws::String m_destination;
136 bool m_destinationHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace RoboMaker
141} // namespace Aws
void SetName(Aws::String &&value)
Definition DataSource.h:50
AWS_ROBOMAKER_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(DataSourceType &&value)
Definition DataSource.h:95
DataSource & WithDestination(const Aws::String &value)
Definition DataSource.h:117
void SetName(const char *value)
Definition DataSource.h:51
DataSource & WithName(const char *value)
Definition DataSource.h:54
DataSource & WithName(const Aws::String &value)
Definition DataSource.h:52
void SetDestination(const char *value)
Definition DataSource.h:116
void SetS3Bucket(const char *value)
Definition DataSource.h:65
AWS_ROBOMAKER_API DataSource(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithS3Keys(const Aws::Vector< S3KeyOutput > &value)
Definition DataSource.h:79
DataSource & WithDestination(const char *value)
Definition DataSource.h:119
const Aws::Vector< S3KeyOutput > & GetS3Keys() const
Definition DataSource.h:75
DataSource & WithS3Keys(Aws::Vector< S3KeyOutput > &&value)
Definition DataSource.h:80
AWS_ROBOMAKER_API DataSource()
DataSource & WithS3Bucket(const Aws::String &value)
Definition DataSource.h:66
const Aws::String & GetDestination() const
Definition DataSource.h:112
DataSource & WithDestination(Aws::String &&value)
Definition DataSource.h:118
void SetName(const Aws::String &value)
Definition DataSource.h:49
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
DataSource & WithType(const DataSourceType &value)
Definition DataSource.h:96
void SetS3Bucket(const Aws::String &value)
Definition DataSource.h:63
DataSource & AddS3Keys(S3KeyOutput &&value)
Definition DataSource.h:82
void SetS3Keys(const Aws::Vector< S3KeyOutput > &value)
Definition DataSource.h:77
void SetDestination(const Aws::String &value)
Definition DataSource.h:114
DataSource & AddS3Keys(const S3KeyOutput &value)
Definition DataSource.h:81
DataSource & WithS3Bucket(const char *value)
Definition DataSource.h:68
void SetS3Keys(Aws::Vector< S3KeyOutput > &&value)
Definition DataSource.h:78
void SetS3Bucket(Aws::String &&value)
Definition DataSource.h:64
DataSource & WithName(Aws::String &&value)
Definition DataSource.h:53
DataSource & WithType(DataSourceType &&value)
Definition DataSource.h:97
const Aws::String & GetName() const
Definition DataSource.h:47
DataSource & WithS3Bucket(Aws::String &&value)
Definition DataSource.h:67
const Aws::String & GetS3Bucket() const
Definition DataSource.h:61
void SetType(const DataSourceType &value)
Definition DataSource.h:94
void SetDestination(Aws::String &&value)
Definition DataSource.h:115
const DataSourceType & GetType() const
Definition DataSource.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue