AWS SDK for C++  1.9.106
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 Rekognition
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetBucket() const{ return m_bucket; }
49 
53  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
54 
58  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
59 
63  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
64 
68  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
69 
73  inline S3Object& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
74 
78  inline S3Object& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
79 
83  inline S3Object& WithBucket(const char* value) { SetBucket(value); return *this;}
84 
85 
89  inline const Aws::String& GetName() const{ return m_name; }
90 
94  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 
99  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 
104  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 
109  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
110 
114  inline S3Object& WithName(const Aws::String& value) { SetName(value); return *this;}
115 
119  inline S3Object& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
120 
124  inline S3Object& WithName(const char* value) { SetName(value); return *this;}
125 
126 
130  inline const Aws::String& GetVersion() const{ return m_version; }
131 
135  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
136 
140  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
141 
145  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
146 
150  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
151 
155  inline S3Object& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
156 
160  inline S3Object& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
161 
165  inline S3Object& WithVersion(const char* value) { SetVersion(value); return *this;}
166 
167  private:
168 
169  Aws::String m_bucket;
170  bool m_bucketHasBeenSet;
171 
172  Aws::String m_name;
173  bool m_nameHasBeenSet;
174 
175  Aws::String m_version;
176  bool m_versionHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace Rekognition
181 } // namespace Aws
Aws::Rekognition::Model::S3Object::WithBucket
S3Object & WithBucket(const Aws::String &value)
Definition: S3Object.h:73
Aws::Rekognition::Model::S3Object::GetVersion
const Aws::String & GetVersion() const
Definition: S3Object.h:130
Aws::Rekognition::Model::S3Object::SetName
void SetName(const char *value)
Definition: S3Object.h:109
Aws::Rekognition::Model::S3Object::WithBucket
S3Object & WithBucket(Aws::String &&value)
Definition: S3Object.h:78
Aws::Rekognition::Model::S3Object::SetBucket
void SetBucket(const char *value)
Definition: S3Object.h:68
Aws::Rekognition::Model::S3Object::WithName
S3Object & WithName(const Aws::String &value)
Definition: S3Object.h:114
Aws::Rekognition::Model::S3Object::WithVersion
S3Object & WithVersion(Aws::String &&value)
Definition: S3Object.h:160
Aws::Rekognition::Model::S3Object::WithBucket
S3Object & WithBucket(const char *value)
Definition: S3Object.h:83
Aws::Rekognition::Model::S3Object::SetVersion
void SetVersion(Aws::String &&value)
Definition: S3Object.h:145
Aws::Rekognition::Model::S3Object
Definition: S3Object.h:37
Aws::Rekognition::Model::S3Object::WithName
S3Object & WithName(Aws::String &&value)
Definition: S3Object.h:119
Aws::Rekognition::Model::S3Object::SetBucket
void SetBucket(const Aws::String &value)
Definition: S3Object.h:58
Aws::Rekognition::Model::S3Object::SetName
void SetName(const Aws::String &value)
Definition: S3Object.h:99
Aws::Rekognition::Model::S3Object::WithVersion
S3Object & WithVersion(const Aws::String &value)
Definition: S3Object.h:155
Aws::Rekognition::Model::S3Object::GetName
const Aws::String & GetName() const
Definition: S3Object.h:89
Aws::Rekognition::Model::S3Object::SetName
void SetName(Aws::String &&value)
Definition: S3Object.h:104
Aws::Rekognition::Model::S3Object::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Rekognition::Model::S3Object::S3Object
S3Object()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Rekognition::Model::S3Object::SetVersion
void SetVersion(const char *value)
Definition: S3Object.h:150
AWS_REKOGNITION_API
#define AWS_REKOGNITION_API
Definition: Rekognition_EXPORTS.h:28
Aws::Rekognition::Model::S3Object::SetBucket
void SetBucket(Aws::String &&value)
Definition: S3Object.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::Rekognition::Model::S3Object::S3Object
S3Object(Aws::Utils::Json::JsonView jsonValue)
Aws::Rekognition::Model::S3Object::operator=
S3Object & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Rekognition::Model::S3Object::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: S3Object.h:135
Rekognition_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Rekognition::Model::S3Object::GetBucket
const Aws::String & GetBucket() const
Definition: S3Object.h:48
Aws::Rekognition::Model::S3Object::SetVersion
void SetVersion(const Aws::String &value)
Definition: S3Object.h:140
Aws::Rekognition::Model::S3Object::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: S3Object.h:53
Aws::Rekognition::Model::S3Object::NameHasBeenSet
bool NameHasBeenSet() const
Definition: S3Object.h:94
Aws::Rekognition::Model::S3Object::WithName
S3Object & WithName(const char *value)
Definition: S3Object.h:124
Aws::Rekognition::Model::S3Object::WithVersion
S3Object & WithVersion(const char *value)
Definition: S3Object.h:165