AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline DataSourceConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline DataSourceConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline DataSourceConfig& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
61 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
62 inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
63 inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
64 inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
65 inline DataSourceConfig& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
66 inline DataSourceConfig& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
67 inline DataSourceConfig& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetS3Keys() const{ return m_s3Keys; }
75 inline bool S3KeysHasBeenSet() const { return m_s3KeysHasBeenSet; }
76 inline void SetS3Keys(const Aws::Vector<Aws::String>& value) { m_s3KeysHasBeenSet = true; m_s3Keys = value; }
77 inline void SetS3Keys(Aws::Vector<Aws::String>&& value) { m_s3KeysHasBeenSet = true; m_s3Keys = std::move(value); }
78 inline DataSourceConfig& WithS3Keys(const Aws::Vector<Aws::String>& value) { SetS3Keys(value); return *this;}
79 inline DataSourceConfig& WithS3Keys(Aws::Vector<Aws::String>&& value) { SetS3Keys(std::move(value)); return *this;}
80 inline DataSourceConfig& AddS3Keys(const Aws::String& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(value); return *this; }
81 inline DataSourceConfig& AddS3Keys(Aws::String&& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(std::move(value)); return *this; }
82 inline DataSourceConfig& AddS3Keys(const char* value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(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 DataSourceConfig& WithType(const DataSourceType& value) { SetType(value); return *this;}
97 inline DataSourceConfig& 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 DataSourceConfig& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
118 inline DataSourceConfig& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
119 inline DataSourceConfig& 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
DataSourceConfig & WithName(const char *value)
DataSourceConfig & WithName(const Aws::String &value)
DataSourceConfig & WithS3Bucket(const char *value)
DataSourceConfig & WithS3Keys(const Aws::Vector< Aws::String > &value)
AWS_ROBOMAKER_API DataSourceConfig(Aws::Utils::Json::JsonView jsonValue)
void SetS3Keys(Aws::Vector< Aws::String > &&value)
DataSourceConfig & AddS3Keys(Aws::String &&value)
void SetType(const DataSourceType &value)
void SetType(DataSourceType &&value)
DataSourceConfig & WithS3Keys(Aws::Vector< Aws::String > &&value)
const DataSourceType & GetType() const
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
void SetDestination(const Aws::String &value)
DataSourceConfig & WithS3Bucket(Aws::String &&value)
DataSourceConfig & WithDestination(const char *value)
const Aws::Vector< Aws::String > & GetS3Keys() const
void SetS3Keys(const Aws::Vector< Aws::String > &value)
AWS_ROBOMAKER_API DataSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDestination() const
void SetS3Bucket(const Aws::String &value)
DataSourceConfig & WithType(const DataSourceType &value)
DataSourceConfig & WithDestination(const Aws::String &value)
DataSourceConfig & AddS3Keys(const Aws::String &value)
const Aws::String & GetS3Bucket() const
DataSourceConfig & WithS3Bucket(const Aws::String &value)
DataSourceConfig & WithDestination(Aws::String &&value)
DataSourceConfig & AddS3Keys(const char *value)
DataSourceConfig & WithType(DataSourceType &&value)
DataSourceConfig & WithName(Aws::String &&value)
void SetName(const Aws::String &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