AWS SDK for C++  1.9.20
AWS SDK for C++
PutObjectRequest.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/core/utils/Array.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace MediaStoreData
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "PutObject"; }
34 
36 
37  bool SignBody() const override { return false; }
38 
39  bool IsChunked() const override { return true; }
40 
41 
63  inline const Aws::String& GetPath() const{ return m_path; }
64 
86  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
87 
109  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
110 
132  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
133 
155  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
156 
178  inline PutObjectRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
179 
201  inline PutObjectRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
202 
224  inline PutObjectRequest& WithPath(const char* value) { SetPath(value); return *this;}
225 
226 
234  inline const Aws::String& GetCacheControl() const{ return m_cacheControl; }
235 
243  inline bool CacheControlHasBeenSet() const { return m_cacheControlHasBeenSet; }
244 
252  inline void SetCacheControl(const Aws::String& value) { m_cacheControlHasBeenSet = true; m_cacheControl = value; }
253 
261  inline void SetCacheControl(Aws::String&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::move(value); }
262 
270  inline void SetCacheControl(const char* value) { m_cacheControlHasBeenSet = true; m_cacheControl.assign(value); }
271 
279  inline PutObjectRequest& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
280 
288  inline PutObjectRequest& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;}
289 
297  inline PutObjectRequest& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
298 
299 
305  inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
306 
312  inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
313 
319  inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
320 
326  inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
327 
333  inline PutObjectRequest& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
334 
340  inline PutObjectRequest& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
341 
342 
352  inline const UploadAvailability& GetUploadAvailability() const{ return m_uploadAvailability; }
353 
363  inline bool UploadAvailabilityHasBeenSet() const { return m_uploadAvailabilityHasBeenSet; }
364 
374  inline void SetUploadAvailability(const UploadAvailability& value) { m_uploadAvailabilityHasBeenSet = true; m_uploadAvailability = value; }
375 
385  inline void SetUploadAvailability(UploadAvailability&& value) { m_uploadAvailabilityHasBeenSet = true; m_uploadAvailability = std::move(value); }
386 
396  inline PutObjectRequest& WithUploadAvailability(const UploadAvailability& value) { SetUploadAvailability(value); return *this;}
397 
407  inline PutObjectRequest& WithUploadAvailability(UploadAvailability&& value) { SetUploadAvailability(std::move(value)); return *this;}
408 
409  private:
410 
411 
412  Aws::String m_path;
413  bool m_pathHasBeenSet;
414 
415  Aws::String m_cacheControl;
416  bool m_cacheControlHasBeenSet;
417 
418  StorageClass m_storageClass;
419  bool m_storageClassHasBeenSet;
420 
421  UploadAvailability m_uploadAvailability;
422  bool m_uploadAvailabilityHasBeenSet;
423  };
424 
425 } // namespace Model
426 } // namespace MediaStoreData
427 } // namespace Aws
Aws::MediaStoreData::Model::StorageClass
StorageClass
Definition: StorageClass.h:17
MediaStoreData_EXPORTS.h
Aws::MediaStoreData::Model::PutObjectRequest
Definition: PutObjectRequest.h:25
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
UploadAvailability.h
Aws::MediaStoreData::Model::PutObjectRequest::CacheControlHasBeenSet
bool CacheControlHasBeenSet() const
Definition: PutObjectRequest.h:243
Aws::MediaStoreData::Model::PutObjectRequest::GetPath
const Aws::String & GetPath() const
Definition: PutObjectRequest.h:63
Aws::MediaStoreData::Model::PutObjectRequest::WithUploadAvailability
PutObjectRequest & WithUploadAvailability(UploadAvailability &&value)
Definition: PutObjectRequest.h:407
Aws::MediaStoreData::Model::PutObjectRequest::WithStorageClass
PutObjectRequest & WithStorageClass(const StorageClass &value)
Definition: PutObjectRequest.h:333
Aws::MediaStoreData::Model::PutObjectRequest::WithUploadAvailability
PutObjectRequest & WithUploadAvailability(const UploadAvailability &value)
Definition: PutObjectRequest.h:396
Aws::MediaStoreData::Model::PutObjectRequest::UploadAvailabilityHasBeenSet
bool UploadAvailabilityHasBeenSet() const
Definition: PutObjectRequest.h:363
AWS_MEDIASTOREDATA_API
#define AWS_MEDIASTOREDATA_API
Definition: MediaStoreData_EXPORTS.h:28
Aws::MediaStoreData::Model::PutObjectRequest::SetCacheControl
void SetCacheControl(Aws::String &&value)
Definition: PutObjectRequest.h:261
Aws::MediaStoreData::Model::PutObjectRequest::GetCacheControl
const Aws::String & GetCacheControl() const
Definition: PutObjectRequest.h:234
Aws::MediaStoreData::Model::PutObjectRequest::SetPath
void SetPath(const Aws::String &value)
Definition: PutObjectRequest.h:109
Aws::MediaStoreData::Model::PutObjectRequest::SetCacheControl
void SetCacheControl(const char *value)
Definition: PutObjectRequest.h:270
Aws::MediaStoreData::Model::PutObjectRequest::SignBody
bool SignBody() const override
Definition: PutObjectRequest.h:37
Aws::MediaStoreData::Model::PutObjectRequest::WithCacheControl
PutObjectRequest & WithCacheControl(const char *value)
Definition: PutObjectRequest.h:297
Aws::MediaStoreData::Model::PutObjectRequest::WithPath
PutObjectRequest & WithPath(const char *value)
Definition: PutObjectRequest.h:224
MediaStoreDataRequest.h
Aws::MediaStoreData::Model::PutObjectRequest::SetPath
void SetPath(const char *value)
Definition: PutObjectRequest.h:155
Aws::MediaStoreData::Model::PutObjectRequest::WithCacheControl
PutObjectRequest & WithCacheControl(const Aws::String &value)
Definition: PutObjectRequest.h:279
Aws::MediaStoreData::Model::PutObjectRequest::SetStorageClass
void SetStorageClass(const StorageClass &value)
Definition: PutObjectRequest.h:319
Aws::MediaStoreData::Model::PutObjectRequest::GetStorageClass
const StorageClass & GetStorageClass() const
Definition: PutObjectRequest.h:305
Aws::MediaStoreData::Model::PutObjectRequest::WithPath
PutObjectRequest & WithPath(Aws::String &&value)
Definition: PutObjectRequest.h:201
Aws::MediaStoreData::Model::PutObjectRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::MediaStoreData::Model::PutObjectRequest::SetCacheControl
void SetCacheControl(const Aws::String &value)
Definition: PutObjectRequest.h:252
Aws::MediaStoreData::Model::PutObjectRequest::WithCacheControl
PutObjectRequest & WithCacheControl(Aws::String &&value)
Definition: PutObjectRequest.h:288
Aws::MediaStoreData::Model::PutObjectRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutObjectRequest.h:33
Aws::MediaStoreData::Model::UploadAvailability
UploadAvailability
Definition: UploadAvailability.h:17
Aws::MediaStoreData::Model::PutObjectRequest::IsChunked
bool IsChunked() const override
Definition: PutObjectRequest.h:39
Aws::MediaStoreData::Model::PutObjectRequest::WithStorageClass
PutObjectRequest & WithStorageClass(StorageClass &&value)
Definition: PutObjectRequest.h:340
Aws::MediaStoreData::Model::PutObjectRequest::SetUploadAvailability
void SetUploadAvailability(UploadAvailability &&value)
Definition: PutObjectRequest.h:385
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::MediaStoreData::Model::PutObjectRequest::SetPath
void SetPath(Aws::String &&value)
Definition: PutObjectRequest.h:132
Array.h
Aws::MediaStoreData::Model::PutObjectRequest::SetUploadAvailability
void SetUploadAvailability(const UploadAvailability &value)
Definition: PutObjectRequest.h:374
Aws::MediaStoreData::Model::PutObjectRequest::GetUploadAvailability
const UploadAvailability & GetUploadAvailability() const
Definition: PutObjectRequest.h:352
StorageClass.h
Aws::MediaStoreData::Model::PutObjectRequest::PutObjectRequest
PutObjectRequest()
Aws::MediaStoreData::Model::PutObjectRequest::PathHasBeenSet
bool PathHasBeenSet() const
Definition: PutObjectRequest.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaStoreData::Model::PutObjectRequest::SetStorageClass
void SetStorageClass(StorageClass &&value)
Definition: PutObjectRequest.h:326
Aws::MediaStoreData::Model::PutObjectRequest::StorageClassHasBeenSet
bool StorageClassHasBeenSet() const
Definition: PutObjectRequest.h:312
Aws::MediaStoreData::Model::PutObjectRequest::WithPath
PutObjectRequest & WithPath(const Aws::String &value)
Definition: PutObjectRequest.h:178