AWS SDK for C++  1.9.16
AWS SDK for C++
GetObjectRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MediaStoreData
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetObject"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
58  inline const Aws::String& GetPath() const{ return m_path; }
59 
81  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
82 
104  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
105 
127  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
128 
150  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
151 
173  inline GetObjectRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
174 
196  inline GetObjectRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
197 
219  inline GetObjectRequest& WithPath(const char* value) { SetPath(value); return *this;}
220 
221 
229  inline const Aws::String& GetRange() const{ return m_range; }
230 
238  inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
239 
247  inline void SetRange(const Aws::String& value) { m_rangeHasBeenSet = true; m_range = value; }
248 
256  inline void SetRange(Aws::String&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); }
257 
265  inline void SetRange(const char* value) { m_rangeHasBeenSet = true; m_range.assign(value); }
266 
274  inline GetObjectRequest& WithRange(const Aws::String& value) { SetRange(value); return *this;}
275 
283  inline GetObjectRequest& WithRange(Aws::String&& value) { SetRange(std::move(value)); return *this;}
284 
292  inline GetObjectRequest& WithRange(const char* value) { SetRange(value); return *this;}
293 
294  private:
295 
296  Aws::String m_path;
297  bool m_pathHasBeenSet;
298 
299  Aws::String m_range;
300  bool m_rangeHasBeenSet;
301  };
302 
303 } // namespace Model
304 } // namespace MediaStoreData
305 } // namespace Aws
MediaStoreData_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MediaStoreData::Model::GetObjectRequest::SetPath
void SetPath(Aws::String &&value)
Definition: GetObjectRequest.h:127
Aws::MediaStoreData::Model::GetObjectRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetObjectRequest.h:30
AWS_MEDIASTOREDATA_API
#define AWS_MEDIASTOREDATA_API
Definition: MediaStoreData_EXPORTS.h:28
Aws::MediaStoreData::Model::GetObjectRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaStoreData::Model::GetObjectRequest::WithRange
GetObjectRequest & WithRange(const Aws::String &value)
Definition: GetObjectRequest.h:274
Aws::MediaStoreData::Model::GetObjectRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MediaStoreData::MediaStoreDataRequest
Definition: MediaStoreDataRequest.h:18
Aws::MediaStoreData::Model::GetObjectRequest::WithPath
GetObjectRequest & WithPath(Aws::String &&value)
Definition: GetObjectRequest.h:196
Aws::MediaStoreData::Model::GetObjectRequest
Definition: GetObjectRequest.h:22
Aws::MediaStoreData::Model::GetObjectRequest::GetRange
const Aws::String & GetRange() const
Definition: GetObjectRequest.h:229
MediaStoreDataRequest.h
Aws::MediaStoreData::Model::GetObjectRequest::PathHasBeenSet
bool PathHasBeenSet() const
Definition: GetObjectRequest.h:81
AWSString.h
Aws::MediaStoreData::Model::GetObjectRequest::WithPath
GetObjectRequest & WithPath(const char *value)
Definition: GetObjectRequest.h:219
Aws::MediaStoreData::Model::GetObjectRequest::SetRange
void SetRange(Aws::String &&value)
Definition: GetObjectRequest.h:256
Aws
Definition: AccessManagementClient.h:15
Aws::MediaStoreData::Model::GetObjectRequest::GetObjectRequest
GetObjectRequest()
Aws::MediaStoreData::Model::GetObjectRequest::WithRange
GetObjectRequest & WithRange(Aws::String &&value)
Definition: GetObjectRequest.h:283
Aws::MediaStoreData::Model::GetObjectRequest::SetRange
void SetRange(const char *value)
Definition: GetObjectRequest.h:265
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaStoreData::Model::GetObjectRequest::SetPath
void SetPath(const Aws::String &value)
Definition: GetObjectRequest.h:104
Aws::MediaStoreData::Model::GetObjectRequest::WithRange
GetObjectRequest & WithRange(const char *value)
Definition: GetObjectRequest.h:292
Aws::MediaStoreData::Model::GetObjectRequest::RangeHasBeenSet
bool RangeHasBeenSet() const
Definition: GetObjectRequest.h:238
Aws::MediaStoreData::Model::GetObjectRequest::GetPath
const Aws::String & GetPath() const
Definition: GetObjectRequest.h:58
Aws::MediaStoreData::Model::GetObjectRequest::WithPath
GetObjectRequest & WithPath(const Aws::String &value)
Definition: GetObjectRequest.h:173
Aws::MediaStoreData::Model::GetObjectRequest::SetRange
void SetRange(const Aws::String &value)
Definition: GetObjectRequest.h:247
Aws::MediaStoreData::Model::GetObjectRequest::SetPath
void SetPath(const char *value)
Definition: GetObjectRequest.h:150