AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/b2bi/B2BI_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 B2BI {
20namespace Model {
21
30 public:
31 AWS_B2BI_API S3Location() = default;
32 AWS_B2BI_API S3Location(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetBucketName() const { return m_bucketName; }
41 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
42 template <typename BucketNameT = Aws::String>
43 void SetBucketName(BucketNameT&& value) {
44 m_bucketNameHasBeenSet = true;
45 m_bucketName = std::forward<BucketNameT>(value);
46 }
47 template <typename BucketNameT = Aws::String>
48 S3Location& WithBucketName(BucketNameT&& value) {
49 SetBucketName(std::forward<BucketNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetKey() const { return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 template <typename KeyT = Aws::String>
61 void SetKey(KeyT&& value) {
62 m_keyHasBeenSet = true;
63 m_key = std::forward<KeyT>(value);
64 }
65 template <typename KeyT = Aws::String>
66 S3Location& WithKey(KeyT&& value) {
67 SetKey(std::forward<KeyT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_bucketName;
73
74 Aws::String m_key;
75 bool m_bucketNameHasBeenSet = false;
76 bool m_keyHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace B2BI
81} // namespace Aws
S3Location & WithBucketName(BucketNameT &&value)
Definition S3Location.h:48
S3Location & WithKey(KeyT &&value)
Definition S3Location.h:66
AWS_B2BI_API S3Location()=default
AWS_B2BI_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_B2BI_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBucketName(BucketNameT &&value)
Definition S3Location.h:43
bool BucketNameHasBeenSet() const
Definition S3Location.h:41
void SetKey(KeyT &&value)
Definition S3Location.h:61
const Aws::String & GetKey() const
Definition S3Location.h:58
const Aws::String & GetBucketName() const
Definition S3Location.h:40
AWS_B2BI_API S3Location(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue