AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 DataSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
60 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
61 template<typename S3BucketT = Aws::String>
62 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
63 template<typename S3BucketT = Aws::String>
64 DataSource& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
66
68
71 inline const Aws::Vector<S3KeyOutput>& GetS3Keys() const { return m_s3Keys; }
72 inline bool S3KeysHasBeenSet() const { return m_s3KeysHasBeenSet; }
73 template<typename S3KeysT = Aws::Vector<S3KeyOutput>>
74 void SetS3Keys(S3KeysT&& value) { m_s3KeysHasBeenSet = true; m_s3Keys = std::forward<S3KeysT>(value); }
75 template<typename S3KeysT = Aws::Vector<S3KeyOutput>>
76 DataSource& WithS3Keys(S3KeysT&& value) { SetS3Keys(std::forward<S3KeysT>(value)); return *this;}
77 template<typename S3KeysT = S3KeyOutput>
78 DataSource& AddS3Keys(S3KeysT&& value) { m_s3KeysHasBeenSet = true; m_s3Keys.emplace_back(std::forward<S3KeysT>(value)); return *this; }
80
82
88 inline DataSourceType GetType() const { return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(DataSourceType value) { m_typeHasBeenSet = true; m_type = value; }
91 inline DataSource& WithType(DataSourceType value) { SetType(value); return *this;}
93
95
106 inline const Aws::String& GetDestination() const { return m_destination; }
107 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
108 template<typename DestinationT = Aws::String>
109 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
110 template<typename DestinationT = Aws::String>
111 DataSource& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
113 private:
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 Aws::String m_s3Bucket;
119 bool m_s3BucketHasBeenSet = false;
120
122 bool m_s3KeysHasBeenSet = false;
123
125 bool m_typeHasBeenSet = false;
126
127 Aws::String m_destination;
128 bool m_destinationHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace RoboMaker
133} // namespace Aws
AWS_ROBOMAKER_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithS3Keys(S3KeysT &&value)
Definition DataSource.h:76
void SetType(DataSourceType value)
Definition DataSource.h:90
DataSource & AddS3Keys(S3KeysT &&value)
Definition DataSource.h:78
void SetS3Keys(S3KeysT &&value)
Definition DataSource.h:74
AWS_ROBOMAKER_API DataSource(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithDestination(DestinationT &&value)
Definition DataSource.h:111
void SetS3Bucket(S3BucketT &&value)
Definition DataSource.h:62
const Aws::Vector< S3KeyOutput > & GetS3Keys() const
Definition DataSource.h:71
void SetName(NameT &&value)
Definition DataSource.h:50
DataSource & WithS3Bucket(S3BucketT &&value)
Definition DataSource.h:64
DataSource & WithType(DataSourceType value)
Definition DataSource.h:91
const Aws::String & GetDestination() const
Definition DataSource.h:106
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROBOMAKER_API DataSource()=default
DataSource & WithName(NameT &&value)
Definition DataSource.h:52
DataSourceType GetType() const
Definition DataSource.h:88
const Aws::String & GetName() const
Definition DataSource.h:47
const Aws::String & GetS3Bucket() const
Definition DataSource.h:59
void SetDestination(DestinationT &&value)
Definition DataSource.h:109
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue