AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
S3DataAccessDetails.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/dataexchange/DataExchange_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataExchange {
21namespace Model {
22
30 public:
31 AWS_DATAEXCHANGE_API S3DataAccessDetails() = default;
32 AWS_DATAEXCHANGE_API S3DataAccessDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Aws::String>& GetKeyPrefixes() const { return m_keyPrefixes; }
42 inline bool KeyPrefixesHasBeenSet() const { return m_keyPrefixesHasBeenSet; }
43 template <typename KeyPrefixesT = Aws::Vector<Aws::String>>
44 void SetKeyPrefixes(KeyPrefixesT&& value) {
45 m_keyPrefixesHasBeenSet = true;
46 m_keyPrefixes = std::forward<KeyPrefixesT>(value);
47 }
48 template <typename KeyPrefixesT = Aws::Vector<Aws::String>>
49 S3DataAccessDetails& WithKeyPrefixes(KeyPrefixesT&& value) {
50 SetKeyPrefixes(std::forward<KeyPrefixesT>(value));
51 return *this;
52 }
53 template <typename KeyPrefixesT = Aws::String>
54 S3DataAccessDetails& AddKeyPrefixes(KeyPrefixesT&& value) {
55 m_keyPrefixesHasBeenSet = true;
56 m_keyPrefixes.emplace_back(std::forward<KeyPrefixesT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<Aws::String>& GetKeys() const { return m_keys; }
67 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
68 template <typename KeysT = Aws::Vector<Aws::String>>
69 void SetKeys(KeysT&& value) {
70 m_keysHasBeenSet = true;
71 m_keys = std::forward<KeysT>(value);
72 }
73 template <typename KeysT = Aws::Vector<Aws::String>>
74 S3DataAccessDetails& WithKeys(KeysT&& value) {
75 SetKeys(std::forward<KeysT>(value));
76 return *this;
77 }
78 template <typename KeysT = Aws::String>
79 S3DataAccessDetails& AddKeys(KeysT&& value) {
80 m_keysHasBeenSet = true;
81 m_keys.emplace_back(std::forward<KeysT>(value));
82 return *this;
83 }
85 private:
86 Aws::Vector<Aws::String> m_keyPrefixes;
87
89 bool m_keyPrefixesHasBeenSet = false;
90 bool m_keysHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace DataExchange
95} // namespace Aws
const Aws::Vector< Aws::String > & GetKeys() const
S3DataAccessDetails & WithKeyPrefixes(KeyPrefixesT &&value)
S3DataAccessDetails & AddKeys(KeysT &&value)
AWS_DATAEXCHANGE_API S3DataAccessDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API S3DataAccessDetails()=default
AWS_DATAEXCHANGE_API S3DataAccessDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetKeyPrefixes() const
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
S3DataAccessDetails & AddKeyPrefixes(KeyPrefixesT &&value)
S3DataAccessDetails & WithKeys(KeysT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue