AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
S3FilesLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/S3File.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataZone {
22namespace Model {
23
32 public:
33 AWS_DATAZONE_API S3FilesLocation() = default;
34 AWS_DATAZONE_API S3FilesLocation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetBucket() const { return m_bucket; }
44 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
45 template <typename BucketT = Aws::String>
46 void SetBucket(BucketT&& value) {
47 m_bucketHasBeenSet = true;
48 m_bucket = std::forward<BucketT>(value);
49 }
50 template <typename BucketT = Aws::String>
51 S3FilesLocation& WithBucket(BucketT&& value) {
52 SetBucket(std::forward<BucketT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<S3File>& GetFileList() const { return m_fileList; }
63 inline bool FileListHasBeenSet() const { return m_fileListHasBeenSet; }
64 template <typename FileListT = Aws::Vector<S3File>>
65 void SetFileList(FileListT&& value) {
66 m_fileListHasBeenSet = true;
67 m_fileList = std::forward<FileListT>(value);
68 }
69 template <typename FileListT = Aws::Vector<S3File>>
70 S3FilesLocation& WithFileList(FileListT&& value) {
71 SetFileList(std::forward<FileListT>(value));
72 return *this;
73 }
74 template <typename FileListT = S3File>
75 S3FilesLocation& AddFileList(FileListT&& value) {
76 m_fileListHasBeenSet = true;
77 m_fileList.emplace_back(std::forward<FileListT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_bucket;
83
84 Aws::Vector<S3File> m_fileList;
85 bool m_bucketHasBeenSet = false;
86 bool m_fileListHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace DataZone
91} // namespace Aws
S3FilesLocation & WithFileList(FileListT &&value)
AWS_DATAZONE_API S3FilesLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
S3FilesLocation & WithBucket(BucketT &&value)
const Aws::Vector< S3File > & GetFileList() const
AWS_DATAZONE_API S3FilesLocation(Aws::Utils::Json::JsonView jsonValue)
S3FilesLocation & AddFileList(FileListT &&value)
AWS_DATAZONE_API S3FilesLocation()=default
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetBucket() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue