AWS SDK for C++  1.9.16
AWS SDK for C++
PutObjectResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace MediaStoreData
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::String& GetContentSHA256() const{ return m_contentSHA256; }
40 
44  inline void SetContentSHA256(const Aws::String& value) { m_contentSHA256 = value; }
45 
49  inline void SetContentSHA256(Aws::String&& value) { m_contentSHA256 = std::move(value); }
50 
54  inline void SetContentSHA256(const char* value) { m_contentSHA256.assign(value); }
55 
59  inline PutObjectResult& WithContentSHA256(const Aws::String& value) { SetContentSHA256(value); return *this;}
60 
64  inline PutObjectResult& WithContentSHA256(Aws::String&& value) { SetContentSHA256(std::move(value)); return *this;}
65 
69  inline PutObjectResult& WithContentSHA256(const char* value) { SetContentSHA256(value); return *this;}
70 
71 
75  inline const Aws::String& GetETag() const{ return m_eTag; }
76 
80  inline void SetETag(const Aws::String& value) { m_eTag = value; }
81 
85  inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); }
86 
90  inline void SetETag(const char* value) { m_eTag.assign(value); }
91 
95  inline PutObjectResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
96 
100  inline PutObjectResult& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
101 
105  inline PutObjectResult& WithETag(const char* value) { SetETag(value); return *this;}
106 
107 
112  inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
113 
118  inline void SetStorageClass(const StorageClass& value) { m_storageClass = value; }
119 
124  inline void SetStorageClass(StorageClass&& value) { m_storageClass = std::move(value); }
125 
130  inline PutObjectResult& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
131 
136  inline PutObjectResult& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
137 
138  private:
139 
140  Aws::String m_contentSHA256;
141 
142  Aws::String m_eTag;
143 
144  StorageClass m_storageClass;
145  };
146 
147 } // namespace Model
148 } // namespace MediaStoreData
149 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MediaStoreData::Model::StorageClass
StorageClass
Definition: StorageClass.h:17
MediaStoreData_EXPORTS.h
Aws::MediaStoreData::Model::PutObjectResult
Definition: PutObjectResult.h:29
Aws::MediaStoreData::Model::PutObjectResult::WithContentSHA256
PutObjectResult & WithContentSHA256(const Aws::String &value)
Definition: PutObjectResult.h:59
Aws::MediaStoreData::Model::PutObjectResult::WithStorageClass
PutObjectResult & WithStorageClass(StorageClass &&value)
Definition: PutObjectResult.h:136
AWS_MEDIASTOREDATA_API
#define AWS_MEDIASTOREDATA_API
Definition: MediaStoreData_EXPORTS.h:28
Aws::MediaStoreData::Model::PutObjectResult::GetETag
const Aws::String & GetETag() const
Definition: PutObjectResult.h:75
Aws::MediaStoreData::Model::PutObjectResult::WithContentSHA256
PutObjectResult & WithContentSHA256(Aws::String &&value)
Definition: PutObjectResult.h:64
Aws::MediaStoreData::Model::PutObjectResult::PutObjectResult
PutObjectResult()
Aws::MediaStoreData::Model::PutObjectResult::SetContentSHA256
void SetContentSHA256(const Aws::String &value)
Definition: PutObjectResult.h:44
Aws::MediaStoreData::Model::PutObjectResult::SetStorageClass
void SetStorageClass(StorageClass &&value)
Definition: PutObjectResult.h:124
Aws::MediaStoreData::Model::PutObjectResult::SetETag
void SetETag(Aws::String &&value)
Definition: PutObjectResult.h:85
AWSString.h
Aws::MediaStoreData::Model::PutObjectResult::SetETag
void SetETag(const char *value)
Definition: PutObjectResult.h:90
Aws::MediaStoreData::Model::PutObjectResult::GetContentSHA256
const Aws::String & GetContentSHA256() const
Definition: PutObjectResult.h:39
Aws::MediaStoreData::Model::PutObjectResult::WithETag
PutObjectResult & WithETag(Aws::String &&value)
Definition: PutObjectResult.h:100
Aws::MediaStoreData::Model::PutObjectResult::WithETag
PutObjectResult & WithETag(const char *value)
Definition: PutObjectResult.h:105
Aws::MediaStoreData::Model::PutObjectResult::PutObjectResult
PutObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::MediaStoreData::Model::PutObjectResult::SetETag
void SetETag(const Aws::String &value)
Definition: PutObjectResult.h:80
Aws::MediaStoreData::Model::PutObjectResult::GetStorageClass
const StorageClass & GetStorageClass() const
Definition: PutObjectResult.h:112
StorageClass.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaStoreData::Model::PutObjectResult::WithStorageClass
PutObjectResult & WithStorageClass(const StorageClass &value)
Definition: PutObjectResult.h:130
Aws::MediaStoreData::Model::PutObjectResult::WithContentSHA256
PutObjectResult & WithContentSHA256(const char *value)
Definition: PutObjectResult.h:69
Aws::MediaStoreData::Model::PutObjectResult::SetContentSHA256
void SetContentSHA256(Aws::String &&value)
Definition: PutObjectResult.h:49
Aws::MediaStoreData::Model::PutObjectResult::WithETag
PutObjectResult & WithETag(const Aws::String &value)
Definition: PutObjectResult.h:95
Aws::MediaStoreData::Model::PutObjectResult::operator=
PutObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MediaStoreData::Model::PutObjectResult::SetContentSHA256
void SetContentSHA256(const char *value)
Definition: PutObjectResult.h:54
Aws::MediaStoreData::Model::PutObjectResult::SetStorageClass
void SetStorageClass(const StorageClass &value)
Definition: PutObjectResult.h:118