AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataSourceConfig.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace RoboMaker
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ROBOMAKER_API DataSourceConfig() = default;
37 AWS_ROBOMAKER_API DataSourceConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 DataSourceConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
59 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
60 template<typename S3BucketT = Aws::String>
61 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
62 template<typename S3BucketT = Aws::String>
63 DataSourceConfig& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetS3Keys() const { return m_s3Keys; }
71 inline bool S3KeysHasBeenSet() const { return m_s3KeysHasBeenSet; }
72 template<typename S3KeysT = Aws::Vector<Aws::String>>
73 void SetS3Keys(S3KeysT&& value) { m_s3KeysHasBeenSet = true; m_s3Keys = std::forward<S3KeysT>(value); }
74 template<typename S3KeysT = Aws::Vector<Aws::String>>
75 DataSourceConfig& WithS3Keys(S3KeysT&& value) { SetS3Keys(std::forward<S3KeysT>(value)); return *this;}
76 template<typename S3KeysT = Aws::String>
77 DataSourceConfig& AddS3Keys(S3KeysT&& value) { m_s3KeysHasBeenSet = true; m_s3Keys.emplace_back(std::forward<S3KeysT>(value)); return *this; }
79
81
87 inline DataSourceType GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(DataSourceType value) { m_typeHasBeenSet = true; m_type = value; }
90 inline DataSourceConfig& WithType(DataSourceType value) { SetType(value); return *this;}
92
94
105 inline const Aws::String& GetDestination() const { return m_destination; }
106 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
107 template<typename DestinationT = Aws::String>
108 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
109 template<typename DestinationT = Aws::String>
110 DataSourceConfig& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
112 private:
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_s3Bucket;
118 bool m_s3BucketHasBeenSet = false;
119
121 bool m_s3KeysHasBeenSet = false;
122
124 bool m_typeHasBeenSet = false;
125
126 Aws::String m_destination;
127 bool m_destinationHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace RoboMaker
132} // namespace Aws
AWS_ROBOMAKER_API DataSourceConfig()=default
DataSourceConfig & WithS3Bucket(S3BucketT &&value)
AWS_ROBOMAKER_API DataSourceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
DataSourceConfig & WithS3Keys(S3KeysT &&value)
void SetDestination(DestinationT &&value)
const Aws::Vector< Aws::String > & GetS3Keys() const
DataSourceConfig & WithDestination(DestinationT &&value)
AWS_ROBOMAKER_API DataSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDestination() const
DataSourceConfig & WithType(DataSourceType value)
const Aws::String & GetS3Bucket() const
DataSourceConfig & WithName(NameT &&value)
DataSourceConfig & AddS3Keys(S3KeysT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue