AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
S3Bucket.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_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 AppFabric {
20namespace Model {
21
27class S3Bucket {
28 public:
29 AWS_APPFABRIC_API S3Bucket() = default;
30 AWS_APPFABRIC_API S3Bucket(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APPFABRIC_API S3Bucket& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPFABRIC_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>
46 S3Bucket& WithBucketName(BucketNameT&& value) {
47 SetBucketName(std::forward<BucketNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPrefix() const { return m_prefix; }
57 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
58 template <typename PrefixT = Aws::String>
59 void SetPrefix(PrefixT&& value) {
60 m_prefixHasBeenSet = true;
61 m_prefix = std::forward<PrefixT>(value);
62 }
63 template <typename PrefixT = Aws::String>
64 S3Bucket& WithPrefix(PrefixT&& value) {
65 SetPrefix(std::forward<PrefixT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_bucketName;
71
72 Aws::String m_prefix;
73 bool m_bucketNameHasBeenSet = false;
74 bool m_prefixHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace AppFabric
79} // namespace Aws
S3Bucket & WithBucketName(BucketNameT &&value)
Definition S3Bucket.h:46
AWS_APPFABRIC_API S3Bucket()=default
const Aws::String & GetPrefix() const
Definition S3Bucket.h:56
const Aws::String & GetBucketName() const
Definition S3Bucket.h:38
S3Bucket & WithPrefix(PrefixT &&value)
Definition S3Bucket.h:64
void SetBucketName(BucketNameT &&value)
Definition S3Bucket.h:41
void SetPrefix(PrefixT &&value)
Definition S3Bucket.h:59
AWS_APPFABRIC_API S3Bucket & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFABRIC_API S3Bucket(Aws::Utils::Json::JsonView jsonValue)
bool BucketNameHasBeenSet() const
Definition S3Bucket.h:39
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue