AWS SDK for C++  1.9.20
AWS SDK for C++
S3Object.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace RoboMaker
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetBucket() const{ return m_bucket; }
44 
48  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
49 
53  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
54 
58  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
59 
63  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
64 
68  inline S3Object& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
69 
73  inline S3Object& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
74 
78  inline S3Object& WithBucket(const char* value) { SetBucket(value); return *this;}
79 
80 
84  inline const Aws::String& GetKey() const{ return m_key; }
85 
89  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
90 
94  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
95 
99  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
100 
104  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
105 
109  inline S3Object& WithKey(const Aws::String& value) { SetKey(value); return *this;}
110 
114  inline S3Object& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
115 
119  inline S3Object& WithKey(const char* value) { SetKey(value); return *this;}
120 
121 
125  inline const Aws::String& GetEtag() const{ return m_etag; }
126 
130  inline bool EtagHasBeenSet() const { return m_etagHasBeenSet; }
131 
135  inline void SetEtag(const Aws::String& value) { m_etagHasBeenSet = true; m_etag = value; }
136 
140  inline void SetEtag(Aws::String&& value) { m_etagHasBeenSet = true; m_etag = std::move(value); }
141 
145  inline void SetEtag(const char* value) { m_etagHasBeenSet = true; m_etag.assign(value); }
146 
150  inline S3Object& WithEtag(const Aws::String& value) { SetEtag(value); return *this;}
151 
155  inline S3Object& WithEtag(Aws::String&& value) { SetEtag(std::move(value)); return *this;}
156 
160  inline S3Object& WithEtag(const char* value) { SetEtag(value); return *this;}
161 
162  private:
163 
164  Aws::String m_bucket;
165  bool m_bucketHasBeenSet;
166 
167  Aws::String m_key;
168  bool m_keyHasBeenSet;
169 
170  Aws::String m_etag;
171  bool m_etagHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace RoboMaker
176 } // namespace Aws
Aws::RoboMaker::Model::S3Object
Definition: S3Object.h:32
Aws::RoboMaker::Model::S3Object::WithEtag
S3Object & WithEtag(const char *value)
Definition: S3Object.h:160
Aws::RoboMaker::Model::S3Object::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: S3Object.h:89
Aws::RoboMaker::Model::S3Object::WithBucket
S3Object & WithBucket(const char *value)
Definition: S3Object.h:78
Aws::RoboMaker::Model::S3Object::S3Object
S3Object()
Aws::RoboMaker::Model::S3Object::SetEtag
void SetEtag(const char *value)
Definition: S3Object.h:145
Aws::RoboMaker::Model::S3Object::SetKey
void SetKey(const char *value)
Definition: S3Object.h:104
Aws::RoboMaker::Model::S3Object::WithBucket
S3Object & WithBucket(Aws::String &&value)
Definition: S3Object.h:73
Aws::RoboMaker::Model::S3Object::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: S3Object.h:48
Aws::RoboMaker::Model::S3Object::operator=
S3Object & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::S3Object::SetBucket
void SetBucket(const Aws::String &value)
Definition: S3Object.h:53
Aws::RoboMaker::Model::S3Object::SetBucket
void SetBucket(const char *value)
Definition: S3Object.h:63
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::S3Object::SetBucket
void SetBucket(Aws::String &&value)
Definition: S3Object.h:58
Aws::RoboMaker::Model::S3Object::S3Object
S3Object(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::S3Object::GetBucket
const Aws::String & GetBucket() const
Definition: S3Object.h:43
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::S3Object::EtagHasBeenSet
bool EtagHasBeenSet() const
Definition: S3Object.h:130
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::S3Object::SetKey
void SetKey(Aws::String &&value)
Definition: S3Object.h:99
Aws::RoboMaker::Model::S3Object::WithBucket
S3Object & WithBucket(const Aws::String &value)
Definition: S3Object.h:68
Aws::RoboMaker::Model::S3Object::WithKey
S3Object & WithKey(const char *value)
Definition: S3Object.h:119
Aws::RoboMaker::Model::S3Object::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RoboMaker::Model::S3Object::SetEtag
void SetEtag(Aws::String &&value)
Definition: S3Object.h:140
Aws::RoboMaker::Model::S3Object::SetKey
void SetKey(const Aws::String &value)
Definition: S3Object.h:94
Aws::RoboMaker::Model::S3Object::WithKey
S3Object & WithKey(const Aws::String &value)
Definition: S3Object.h:109
Aws::RoboMaker::Model::S3Object::SetEtag
void SetEtag(const Aws::String &value)
Definition: S3Object.h:135
Aws::RoboMaker::Model::S3Object::WithEtag
S3Object & WithEtag(Aws::String &&value)
Definition: S3Object.h:155
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::S3Object::GetKey
const Aws::String & GetKey() const
Definition: S3Object.h:84
Aws::RoboMaker::Model::S3Object::GetEtag
const Aws::String & GetEtag() const
Definition: S3Object.h:125
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::S3Object::WithKey
S3Object & WithKey(Aws::String &&value)
Definition: S3Object.h:114
Aws::RoboMaker::Model::S3Object::WithEtag
S3Object & WithEtag(const Aws::String &value)
Definition: S3Object.h:150