AWS SDK for C++  1.8.71
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 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
PutObjectRequest & WithUploadAvailability(UploadAvailability &&value)
PutObjectRequest & WithUploadAvailability(const UploadAvailability &value)
PutObjectRequest & WithStorageClass(const StorageClass &value)
PutObjectRequest & WithPath(const Aws::String &value)
void SetStorageClass(const StorageClass &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
#define AWS_MEDIASTOREDATA_API
const StorageClass & GetStorageClass() const
virtual const char * GetServiceRequestName() const override
PutObjectRequest & WithPath(Aws::String &&value)
PutObjectRequest & WithPath(const char *value)
void SetUploadAvailability(UploadAvailability &&value)
PutObjectRequest & WithCacheControl(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutObjectRequest & WithCacheControl(const Aws::String &value)
const UploadAvailability & GetUploadAvailability() const
void SetPath(const Aws::String &value)
PutObjectRequest & WithStorageClass(StorageClass &&value)
void SetUploadAvailability(const UploadAvailability &value)
PutObjectRequest & WithCacheControl(Aws::String &&value)
void SetCacheControl(const Aws::String &value)