AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
28 public:
29 AWS_IOT_API S3Location() = default;
30 AWS_IOT_API S3Location(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline const Aws::String& GetBucket() const { return m_bucket; }
39 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
40 template <typename BucketT = Aws::String>
41 void SetBucket(BucketT&& value) {
42 m_bucketHasBeenSet = true;
43 m_bucket = std::forward<BucketT>(value);
44 }
45 template <typename BucketT = Aws::String>
46 S3Location& WithBucket(BucketT&& value) {
47 SetBucket(std::forward<BucketT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetKey() const { return m_key; }
57 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
58 template <typename KeyT = Aws::String>
59 void SetKey(KeyT&& value) {
60 m_keyHasBeenSet = true;
61 m_key = std::forward<KeyT>(value);
62 }
63 template <typename KeyT = Aws::String>
64 S3Location& WithKey(KeyT&& value) {
65 SetKey(std::forward<KeyT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetVersion() const { return m_version; }
75 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
76 template <typename VersionT = Aws::String>
77 void SetVersion(VersionT&& value) {
78 m_versionHasBeenSet = true;
79 m_version = std::forward<VersionT>(value);
80 }
81 template <typename VersionT = Aws::String>
82 S3Location& WithVersion(VersionT&& value) {
83 SetVersion(std::forward<VersionT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_bucket;
89
90 Aws::String m_key;
91
92 Aws::String m_version;
93 bool m_bucketHasBeenSet = false;
94 bool m_keyHasBeenSet = false;
95 bool m_versionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace IoT
100} // namespace Aws
AWS_IOT_API S3Location(Aws::Utils::Json::JsonView jsonValue)
S3Location & WithBucket(BucketT &&value)
Definition S3Location.h:46
S3Location & WithVersion(VersionT &&value)
Definition S3Location.h:82
const Aws::String & GetKey() const
Definition S3Location.h:56
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
S3Location & WithKey(KeyT &&value)
Definition S3Location.h:64
bool BucketHasBeenSet() const
Definition S3Location.h:39
void SetVersion(VersionT &&value)
Definition S3Location.h:77
void SetBucket(BucketT &&value)
Definition S3Location.h:41
AWS_IOT_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
bool VersionHasBeenSet() const
Definition S3Location.h:75
void SetKey(KeyT &&value)
Definition S3Location.h:59
AWS_IOT_API S3Location()=default
const Aws::String & GetBucket() const
Definition S3Location.h:38
const Aws::String & GetVersion() const
Definition S3Location.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue