AWS SDK for C++  1.9.44
AWS SDK for C++
DataSource.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace RoboMaker
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline DataSource& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline DataSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline DataSource& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
87 
91  inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
92 
96  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
97 
101  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
102 
106  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
107 
111  inline DataSource& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
112 
116  inline DataSource& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
117 
121  inline DataSource& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
122 
123 
127  inline const Aws::Vector<S3KeyOutput>& GetS3Keys() const{ return m_s3Keys; }
128 
132  inline bool S3KeysHasBeenSet() const { return m_s3KeysHasBeenSet; }
133 
137  inline void SetS3Keys(const Aws::Vector<S3KeyOutput>& value) { m_s3KeysHasBeenSet = true; m_s3Keys = value; }
138 
142  inline void SetS3Keys(Aws::Vector<S3KeyOutput>&& value) { m_s3KeysHasBeenSet = true; m_s3Keys = std::move(value); }
143 
147  inline DataSource& WithS3Keys(const Aws::Vector<S3KeyOutput>& value) { SetS3Keys(value); return *this;}
148 
152  inline DataSource& WithS3Keys(Aws::Vector<S3KeyOutput>&& value) { SetS3Keys(std::move(value)); return *this;}
153 
157  inline DataSource& AddS3Keys(const S3KeyOutput& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(value); return *this; }
158 
162  inline DataSource& AddS3Keys(S3KeyOutput&& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(std::move(value)); return *this; }
163 
164  private:
165 
166  Aws::String m_name;
167  bool m_nameHasBeenSet;
168 
169  Aws::String m_s3Bucket;
170  bool m_s3BucketHasBeenSet;
171 
172  Aws::Vector<S3KeyOutput> m_s3Keys;
173  bool m_s3KeysHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace RoboMaker
178 } // namespace Aws
Aws::RoboMaker::Model::DataSource::SetName
void SetName(const Aws::String &value)
Definition: DataSource.h:55
Aws::RoboMaker::Model::DataSource::S3KeysHasBeenSet
bool S3KeysHasBeenSet() const
Definition: DataSource.h:132
Aws::RoboMaker::Model::DataSource::WithS3Keys
DataSource & WithS3Keys(Aws::Vector< S3KeyOutput > &&value)
Definition: DataSource.h:152
Aws::RoboMaker::Model::DataSource::DataSource
DataSource()
Aws::RoboMaker::Model::DataSource::SetName
void SetName(const char *value)
Definition: DataSource.h:65
Aws::RoboMaker::Model::DataSource::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DataSource.h:50
Aws::RoboMaker::Model::DataSource::WithName
DataSource & WithName(const Aws::String &value)
Definition: DataSource.h:70
Aws::RoboMaker::Model::DataSource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RoboMaker::Model::DataSource::WithS3Bucket
DataSource & WithS3Bucket(const Aws::String &value)
Definition: DataSource.h:111
Aws::RoboMaker::Model::DataSource::WithS3Bucket
DataSource & WithS3Bucket(Aws::String &&value)
Definition: DataSource.h:116
Aws::RoboMaker::Model::DataSource::WithName
DataSource & WithName(const char *value)
Definition: DataSource.h:80
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RoboMaker::Model::DataSource::GetName
const Aws::String & GetName() const
Definition: DataSource.h:45
Aws::RoboMaker::Model::DataSource::SetS3Bucket
void SetS3Bucket(const Aws::String &value)
Definition: DataSource.h:96
Aws::RoboMaker::Model::DataSource::AddS3Keys
DataSource & AddS3Keys(S3KeyOutput &&value)
Definition: DataSource.h:162
Aws::RoboMaker::Model::DataSource
Definition: DataSource.h:34
AWSVector.h
Aws::RoboMaker::Model::DataSource::S3BucketHasBeenSet
bool S3BucketHasBeenSet() const
Definition: DataSource.h:91
Aws::RoboMaker::Model::DataSource::SetName
void SetName(Aws::String &&value)
Definition: DataSource.h:60
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::DataSource::WithName
DataSource & WithName(Aws::String &&value)
Definition: DataSource.h:75
Aws::RoboMaker::Model::DataSource::SetS3Bucket
void SetS3Bucket(const char *value)
Definition: DataSource.h:106
Aws::RoboMaker::Model::DataSource::DataSource
DataSource(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::DataSource::AddS3Keys
DataSource & AddS3Keys(const S3KeyOutput &value)
Definition: DataSource.h:157
RoboMaker_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::DataSource::WithS3Bucket
DataSource & WithS3Bucket(const char *value)
Definition: DataSource.h:121
Aws::RoboMaker::Model::DataSource::SetS3Keys
void SetS3Keys(const Aws::Vector< S3KeyOutput > &value)
Definition: DataSource.h:137
Aws::RoboMaker::Model::DataSource::GetS3Bucket
const Aws::String & GetS3Bucket() const
Definition: DataSource.h:86
Aws::RoboMaker::Model::DataSource::WithS3Keys
DataSource & WithS3Keys(const Aws::Vector< S3KeyOutput > &value)
Definition: DataSource.h:147
Aws::RoboMaker::Model::DataSource::SetS3Keys
void SetS3Keys(Aws::Vector< S3KeyOutput > &&value)
Definition: DataSource.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::DataSource::SetS3Bucket
void SetS3Bucket(Aws::String &&value)
Definition: DataSource.h:101
Aws::RoboMaker::Model::S3KeyOutput
Definition: S3KeyOutput.h:32
Aws::RoboMaker::Model::DataSource::operator=
DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
S3KeyOutput.h
Aws::RoboMaker::Model::DataSource::GetS3Keys
const Aws::Vector< S3KeyOutput > & GetS3Keys() const
Definition: DataSource.h:127