AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutObjectRequest.h
1
6#pragma once
7#include <aws/mediastore-data/MediaStoreData_EXPORTS.h>
8#include <aws/mediastore-data/MediaStoreDataRequest.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mediastore-data/model/StorageClass.h>
12#include <aws/mediastore-data/model/UploadAvailability.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MediaStoreData
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MEDIASTOREDATA_API PutObjectRequest() = default;
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_MEDIASTOREDATA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37 AWS_MEDIASTOREDATA_API bool SignBody() const override { return false; }
38
39 AWS_MEDIASTOREDATA_API bool IsChunked() const override { return true; }
40
41
43
64 inline const Aws::String& GetPath() const { return m_path; }
65 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
66 template<typename PathT = Aws::String>
67 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
68 template<typename PathT = Aws::String>
69 PutObjectRequest& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
71
73
80 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
81 inline bool CacheControlHasBeenSet() const { return m_cacheControlHasBeenSet; }
82 template<typename CacheControlT = Aws::String>
83 void SetCacheControl(CacheControlT&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::forward<CacheControlT>(value); }
84 template<typename CacheControlT = Aws::String>
85 PutObjectRequest& WithCacheControl(CacheControlT&& value) { SetCacheControl(std::forward<CacheControlT>(value)); return *this;}
87
89
94 inline StorageClass GetStorageClass() const { return m_storageClass; }
95 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
96 inline void SetStorageClass(StorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
97 inline PutObjectRequest& WithStorageClass(StorageClass value) { SetStorageClass(value); return *this;}
99
101
110 inline UploadAvailability GetUploadAvailability() const { return m_uploadAvailability; }
111 inline bool UploadAvailabilityHasBeenSet() const { return m_uploadAvailabilityHasBeenSet; }
112 inline void SetUploadAvailability(UploadAvailability value) { m_uploadAvailabilityHasBeenSet = true; m_uploadAvailability = value; }
115 private:
116
117
118 Aws::String m_path;
119 bool m_pathHasBeenSet = false;
120
121 Aws::String m_cacheControl;
122 bool m_cacheControlHasBeenSet = false;
123
124 StorageClass m_storageClass{StorageClass::NOT_SET};
125 bool m_storageClassHasBeenSet = false;
126
128 bool m_uploadAvailabilityHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace MediaStoreData
133} // namespace Aws
PutObjectRequest & WithStorageClass(StorageClass value)
void SetUploadAvailability(UploadAvailability value)
virtual const char * GetServiceRequestName() const override
PutObjectRequest & WithCacheControl(CacheControlT &&value)
AWS_MEDIASTOREDATA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MEDIASTOREDATA_API bool SignBody() const override
AWS_MEDIASTOREDATA_API PutObjectRequest()=default
PutObjectRequest & WithUploadAvailability(UploadAvailability value)
PutObjectRequest & WithPath(PathT &&value)
AWS_MEDIASTOREDATA_API bool IsChunked() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String