AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
S3DataAccessDetails.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataExchange
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATAEXCHANGE_API S3DataAccessDetails() = default;
37 AWS_DATAEXCHANGE_API S3DataAccessDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetKeyPrefixes() const { return m_keyPrefixes; }
48 inline bool KeyPrefixesHasBeenSet() const { return m_keyPrefixesHasBeenSet; }
49 template<typename KeyPrefixesT = Aws::Vector<Aws::String>>
50 void SetKeyPrefixes(KeyPrefixesT&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes = std::forward<KeyPrefixesT>(value); }
51 template<typename KeyPrefixesT = Aws::Vector<Aws::String>>
52 S3DataAccessDetails& WithKeyPrefixes(KeyPrefixesT&& value) { SetKeyPrefixes(std::forward<KeyPrefixesT>(value)); return *this;}
53 template<typename KeyPrefixesT = Aws::String>
54 S3DataAccessDetails& AddKeyPrefixes(KeyPrefixesT&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.emplace_back(std::forward<KeyPrefixesT>(value)); return *this; }
56
58
62 inline const Aws::Vector<Aws::String>& GetKeys() const { return m_keys; }
63 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
64 template<typename KeysT = Aws::Vector<Aws::String>>
65 void SetKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys = std::forward<KeysT>(value); }
66 template<typename KeysT = Aws::Vector<Aws::String>>
67 S3DataAccessDetails& WithKeys(KeysT&& value) { SetKeys(std::forward<KeysT>(value)); return *this;}
68 template<typename KeysT = Aws::String>
69 S3DataAccessDetails& AddKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys.emplace_back(std::forward<KeysT>(value)); return *this; }
71 private:
72
73 Aws::Vector<Aws::String> m_keyPrefixes;
74 bool m_keyPrefixesHasBeenSet = false;
75
77 bool m_keysHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace DataExchange
82} // 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