AWS SDK for C++  1.9.21
AWS SDK for C++
DataSourceConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace RoboMaker
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline DataSourceConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline DataSourceConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline DataSourceConfig& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
86 
90  inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
91 
95  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
96 
100  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
101 
105  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
106 
110  inline DataSourceConfig& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
111 
115  inline DataSourceConfig& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
116 
120  inline DataSourceConfig& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
121 
122 
126  inline const Aws::Vector<Aws::String>& GetS3Keys() const{ return m_s3Keys; }
127 
131  inline bool S3KeysHasBeenSet() const { return m_s3KeysHasBeenSet; }
132 
136  inline void SetS3Keys(const Aws::Vector<Aws::String>& value) { m_s3KeysHasBeenSet = true; m_s3Keys = value; }
137 
141  inline void SetS3Keys(Aws::Vector<Aws::String>&& value) { m_s3KeysHasBeenSet = true; m_s3Keys = std::move(value); }
142 
146  inline DataSourceConfig& WithS3Keys(const Aws::Vector<Aws::String>& value) { SetS3Keys(value); return *this;}
147 
151  inline DataSourceConfig& WithS3Keys(Aws::Vector<Aws::String>&& value) { SetS3Keys(std::move(value)); return *this;}
152 
156  inline DataSourceConfig& AddS3Keys(const Aws::String& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(value); return *this; }
157 
161  inline DataSourceConfig& AddS3Keys(Aws::String&& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(std::move(value)); return *this; }
162 
166  inline DataSourceConfig& AddS3Keys(const char* value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(value); return *this; }
167 
168  private:
169 
170  Aws::String m_name;
171  bool m_nameHasBeenSet;
172 
173  Aws::String m_s3Bucket;
174  bool m_s3BucketHasBeenSet;
175 
176  Aws::Vector<Aws::String> m_s3Keys;
177  bool m_s3KeysHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace RoboMaker
182 } // namespace Aws
Aws::RoboMaker::Model::DataSourceConfig::DataSourceConfig
DataSourceConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::DataSourceConfig::DataSourceConfig
DataSourceConfig()
Aws::RoboMaker::Model::DataSourceConfig::SetS3Keys
void SetS3Keys(Aws::Vector< Aws::String > &&value)
Definition: DataSourceConfig.h:141
Aws::RoboMaker::Model::DataSourceConfig::SetS3Bucket
void SetS3Bucket(const Aws::String &value)
Definition: DataSourceConfig.h:95
Aws::RoboMaker::Model::DataSourceConfig::SetName
void SetName(Aws::String &&value)
Definition: DataSourceConfig.h:59
Aws::RoboMaker::Model::DataSourceConfig::SetS3Bucket
void SetS3Bucket(const char *value)
Definition: DataSourceConfig.h:105
Aws::RoboMaker::Model::DataSourceConfig::SetS3Keys
void SetS3Keys(const Aws::Vector< Aws::String > &value)
Definition: DataSourceConfig.h:136
Aws::RoboMaker::Model::DataSourceConfig::S3KeysHasBeenSet
bool S3KeysHasBeenSet() const
Definition: DataSourceConfig.h:131
Aws::RoboMaker::Model::DataSourceConfig::GetS3Bucket
const Aws::String & GetS3Bucket() const
Definition: DataSourceConfig.h:85
Aws::RoboMaker::Model::DataSourceConfig::AddS3Keys
DataSourceConfig & AddS3Keys(const char *value)
Definition: DataSourceConfig.h:166
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RoboMaker::Model::DataSourceConfig::S3BucketHasBeenSet
bool S3BucketHasBeenSet() const
Definition: DataSourceConfig.h:90
Aws::RoboMaker::Model::DataSourceConfig::AddS3Keys
DataSourceConfig & AddS3Keys(const Aws::String &value)
Definition: DataSourceConfig.h:156
AWSVector.h
Aws::RoboMaker::Model::DataSourceConfig
Definition: DataSourceConfig.h:33
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::DataSourceConfig::WithS3Bucket
DataSourceConfig & WithS3Bucket(Aws::String &&value)
Definition: DataSourceConfig.h:115
Aws::RoboMaker::Model::DataSourceConfig::GetName
const Aws::String & GetName() const
Definition: DataSourceConfig.h:44
Aws::RoboMaker::Model::DataSourceConfig::operator=
DataSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::DataSourceConfig::GetS3Keys
const Aws::Vector< Aws::String > & GetS3Keys() const
Definition: DataSourceConfig.h:126
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::DataSourceConfig::WithName
DataSourceConfig & WithName(const char *value)
Definition: DataSourceConfig.h:79
Aws::RoboMaker::Model::DataSourceConfig::WithS3Keys
DataSourceConfig & WithS3Keys(const Aws::Vector< Aws::String > &value)
Definition: DataSourceConfig.h:146
Aws::RoboMaker::Model::DataSourceConfig::SetName
void SetName(const Aws::String &value)
Definition: DataSourceConfig.h:54
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::DataSourceConfig::WithS3Bucket
DataSourceConfig & WithS3Bucket(const char *value)
Definition: DataSourceConfig.h:120
Aws::RoboMaker::Model::DataSourceConfig::SetName
void SetName(const char *value)
Definition: DataSourceConfig.h:64
Aws::RoboMaker::Model::DataSourceConfig::SetS3Bucket
void SetS3Bucket(Aws::String &&value)
Definition: DataSourceConfig.h:100
Aws::RoboMaker::Model::DataSourceConfig::WithName
DataSourceConfig & WithName(const Aws::String &value)
Definition: DataSourceConfig.h:69
Aws::RoboMaker::Model::DataSourceConfig::WithS3Keys
DataSourceConfig & WithS3Keys(Aws::Vector< Aws::String > &&value)
Definition: DataSourceConfig.h:151
Aws::RoboMaker::Model::DataSourceConfig::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DataSourceConfig.h:49
Aws::RoboMaker::Model::DataSourceConfig::WithName
DataSourceConfig & WithName(Aws::String &&value)
Definition: DataSourceConfig.h:74
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::DataSourceConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::DataSourceConfig::WithS3Bucket
DataSourceConfig & WithS3Bucket(const Aws::String &value)
Definition: DataSourceConfig.h:110
Aws::RoboMaker::Model::DataSourceConfig::AddS3Keys
DataSourceConfig & AddS3Keys(Aws::String &&value)
Definition: DataSourceConfig.h:161