AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
29 public:
30 AWS_GAMELIFT_API S3Location() = default;
31 AWS_GAMELIFT_API S3Location(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GAMELIFT_API S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetBucket() const { return m_bucket; }
42 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
43 template <typename BucketT = Aws::String>
44 void SetBucket(BucketT&& value) {
45 m_bucketHasBeenSet = true;
46 m_bucket = std::forward<BucketT>(value);
47 }
48 template <typename BucketT = Aws::String>
49 S3Location& WithBucket(BucketT&& value) {
50 SetBucket(std::forward<BucketT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetKey() const { return m_key; }
60 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
61 template <typename KeyT = Aws::String>
62 void SetKey(KeyT&& value) {
63 m_keyHasBeenSet = true;
64 m_key = std::forward<KeyT>(value);
65 }
66 template <typename KeyT = Aws::String>
67 S3Location& WithKey(KeyT&& value) {
68 SetKey(std::forward<KeyT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
80 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
81 template <typename RoleArnT = Aws::String>
82 void SetRoleArn(RoleArnT&& value) {
83 m_roleArnHasBeenSet = true;
84 m_roleArn = std::forward<RoleArnT>(value);
85 }
86 template <typename RoleArnT = Aws::String>
87 S3Location& WithRoleArn(RoleArnT&& value) {
88 SetRoleArn(std::forward<RoleArnT>(value));
89 return *this;
90 }
92
94
100 inline const Aws::String& GetObjectVersion() const { return m_objectVersion; }
101 inline bool ObjectVersionHasBeenSet() const { return m_objectVersionHasBeenSet; }
102 template <typename ObjectVersionT = Aws::String>
103 void SetObjectVersion(ObjectVersionT&& value) {
104 m_objectVersionHasBeenSet = true;
105 m_objectVersion = std::forward<ObjectVersionT>(value);
106 }
107 template <typename ObjectVersionT = Aws::String>
108 S3Location& WithObjectVersion(ObjectVersionT&& value) {
109 SetObjectVersion(std::forward<ObjectVersionT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_bucket;
115
116 Aws::String m_key;
117
118 Aws::String m_roleArn;
119
120 Aws::String m_objectVersion;
121 bool m_bucketHasBeenSet = false;
122 bool m_keyHasBeenSet = false;
123 bool m_roleArnHasBeenSet = false;
124 bool m_objectVersionHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace GameLift
129} // namespace Aws
AWS_GAMELIFT_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
Definition S3Location.h:59
const Aws::String & GetObjectVersion() const
Definition S3Location.h:100
AWS_GAMELIFT_API S3Location(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetBucket() const
Definition S3Location.h:41
S3Location & WithRoleArn(RoleArnT &&value)
Definition S3Location.h:87
S3Location & WithObjectVersion(ObjectVersionT &&value)
Definition S3Location.h:108
void SetRoleArn(RoleArnT &&value)
Definition S3Location.h:82
S3Location & WithBucket(BucketT &&value)
Definition S3Location.h:49
void SetObjectVersion(ObjectVersionT &&value)
Definition S3Location.h:103
AWS_GAMELIFT_API S3Location()=default
S3Location & WithKey(KeyT &&value)
Definition S3Location.h:67
const Aws::String & GetRoleArn() const
Definition S3Location.h:79
void SetBucket(BucketT &&value)
Definition S3Location.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue