AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/simspaceweaver/SimSpaceWeaver_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SimSpaceWeaver {
20namespace Model {
21
33 public:
34 AWS_SIMSPACEWEAVER_API S3Location() = default;
35 AWS_SIMSPACEWEAVER_API S3Location(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SIMSPACEWEAVER_API S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SIMSPACEWEAVER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline const Aws::String& GetBucketName() const { return m_bucketName; }
47 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
48 template <typename BucketNameT = Aws::String>
49 void SetBucketName(BucketNameT&& value) {
50 m_bucketNameHasBeenSet = true;
51 m_bucketName = std::forward<BucketNameT>(value);
52 }
53 template <typename BucketNameT = Aws::String>
54 S3Location& WithBucketName(BucketNameT&& value) {
55 SetBucketName(std::forward<BucketNameT>(value));
56 return *this;
57 }
59
61
68 inline const Aws::String& GetObjectKey() const { return m_objectKey; }
69 inline bool ObjectKeyHasBeenSet() const { return m_objectKeyHasBeenSet; }
70 template <typename ObjectKeyT = Aws::String>
71 void SetObjectKey(ObjectKeyT&& value) {
72 m_objectKeyHasBeenSet = true;
73 m_objectKey = std::forward<ObjectKeyT>(value);
74 }
75 template <typename ObjectKeyT = Aws::String>
76 S3Location& WithObjectKey(ObjectKeyT&& value) {
77 SetObjectKey(std::forward<ObjectKeyT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_bucketName;
83
84 Aws::String m_objectKey;
85 bool m_bucketNameHasBeenSet = false;
86 bool m_objectKeyHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace SimSpaceWeaver
91} // namespace Aws
AWS_SIMSPACEWEAVER_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SIMSPACEWEAVER_API S3Location()=default
S3Location & WithBucketName(BucketNameT &&value)
Definition S3Location.h:54
void SetBucketName(BucketNameT &&value)
Definition S3Location.h:49
void SetObjectKey(ObjectKeyT &&value)
Definition S3Location.h:71
AWS_SIMSPACEWEAVER_API S3Location(Aws::Utils::Json::JsonView jsonValue)
AWS_SIMSPACEWEAVER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetBucketName() const
Definition S3Location.h:46
const Aws::String & GetObjectKey() const
Definition S3Location.h:68
S3Location & WithObjectKey(ObjectKeyT &&value)
Definition S3Location.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue