AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
S3Config.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Bedrock {
20namespace Model {
21
27class S3Config {
28 public:
29 AWS_BEDROCK_API S3Config() = default;
32 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetBucketName() const { return m_bucketName; }
39 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
40 template <typename BucketNameT = Aws::String>
41 void SetBucketName(BucketNameT&& value) {
42 m_bucketNameHasBeenSet = true;
43 m_bucketName = std::forward<BucketNameT>(value);
44 }
45 template <typename BucketNameT = Aws::String>
47 SetBucketName(std::forward<BucketNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetKeyPrefix() const { return m_keyPrefix; }
57 inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
58 template <typename KeyPrefixT = Aws::String>
59 void SetKeyPrefix(KeyPrefixT&& value) {
60 m_keyPrefixHasBeenSet = true;
61 m_keyPrefix = std::forward<KeyPrefixT>(value);
62 }
63 template <typename KeyPrefixT = Aws::String>
65 SetKeyPrefix(std::forward<KeyPrefixT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_bucketName;
71
72 Aws::String m_keyPrefix;
73 bool m_bucketNameHasBeenSet = false;
74 bool m_keyPrefixHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Bedrock
79} // namespace Aws
AWS_BEDROCK_API S3Config()=default
void SetKeyPrefix(KeyPrefixT &&value)
Definition S3Config.h:59
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetBucketName() const
Definition S3Config.h:38
S3Config & WithKeyPrefix(KeyPrefixT &&value)
Definition S3Config.h:64
bool BucketNameHasBeenSet() const
Definition S3Config.h:39
S3Config & WithBucketName(BucketNameT &&value)
Definition S3Config.h:46
void SetBucketName(BucketNameT &&value)
Definition S3Config.h:41
const Aws::String & GetKeyPrefix() const
Definition S3Config.h:56
AWS_BEDROCK_API S3Config & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API S3Config(Aws::Utils::Json::JsonView jsonValue)
bool KeyPrefixHasBeenSet() const
Definition S3Config.h:57
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue