AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Item.h
1
6#pragma once
7#include <aws/mediastore-data/MediaStoreData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediastore-data/model/ItemType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaStoreData
24{
25namespace Model
26{
27
33 class Item
34 {
35 public:
36 AWS_MEDIASTOREDATA_API Item() = default;
37 AWS_MEDIASTOREDATA_API Item(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIASTOREDATA_API Item& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIASTOREDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 Item& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline ItemType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(ItemType value) { m_typeHasBeenSet = true; m_type = value; }
61 inline Item& WithType(ItemType value) { SetType(value); return *this;}
63
65
68 inline const Aws::String& GetETag() const { return m_eTag; }
69 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
70 template<typename ETagT = Aws::String>
71 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
72 template<typename ETagT = Aws::String>
73 Item& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
75
77
80 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
81 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
82 template<typename LastModifiedT = Aws::Utils::DateTime>
83 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
84 template<typename LastModifiedT = Aws::Utils::DateTime>
85 Item& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
87
89
92 inline const Aws::String& GetContentType() const { return m_contentType; }
93 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
94 template<typename ContentTypeT = Aws::String>
95 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
96 template<typename ContentTypeT = Aws::String>
97 Item& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
99
101
104 inline long long GetContentLength() const { return m_contentLength; }
105 inline bool ContentLengthHasBeenSet() const { return m_contentLengthHasBeenSet; }
106 inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
107 inline Item& WithContentLength(long long value) { SetContentLength(value); return *this;}
109 private:
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
115 bool m_typeHasBeenSet = false;
116
117 Aws::String m_eTag;
118 bool m_eTagHasBeenSet = false;
119
120 Aws::Utils::DateTime m_lastModified{};
121 bool m_lastModifiedHasBeenSet = false;
122
123 Aws::String m_contentType;
124 bool m_contentTypeHasBeenSet = false;
125
126 long long m_contentLength{0};
127 bool m_contentLengthHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace MediaStoreData
132} // namespace Aws
AWS_MEDIASTOREDATA_API Item()=default
Item & WithLastModified(LastModifiedT &&value)
Definition Item.h:85
long long GetContentLength() const
Definition Item.h:104
Item & WithName(NameT &&value)
Definition Item.h:51
void SetContentLength(long long value)
Definition Item.h:106
bool ContentTypeHasBeenSet() const
Definition Item.h:93
void SetETag(ETagT &&value)
Definition Item.h:71
void SetLastModified(LastModifiedT &&value)
Definition Item.h:83
void SetContentType(ContentTypeT &&value)
Definition Item.h:95
const Aws::Utils::DateTime & GetLastModified() const
Definition Item.h:80
const Aws::String & GetETag() const
Definition Item.h:68
AWS_MEDIASTOREDATA_API Item & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ContentLengthHasBeenSet() const
Definition Item.h:105
void SetType(ItemType value)
Definition Item.h:60
Item & WithContentType(ContentTypeT &&value)
Definition Item.h:97
bool NameHasBeenSet() const
Definition Item.h:47
ItemType GetType() const
Definition Item.h:58
Item & WithContentLength(long long value)
Definition Item.h:107
AWS_MEDIASTOREDATA_API Item(Aws::Utils::Json::JsonView jsonValue)
bool TypeHasBeenSet() const
Definition Item.h:59
void SetName(NameT &&value)
Definition Item.h:49
Item & WithType(ItemType value)
Definition Item.h:61
const Aws::String & GetName() const
Definition Item.h:46
AWS_MEDIASTOREDATA_API Aws::Utils::Json::JsonValue Jsonize() const
Item & WithETag(ETagT &&value)
Definition Item.h:73
bool LastModifiedHasBeenSet() const
Definition Item.h:81
bool ETagHasBeenSet() const
Definition Item.h:69
const Aws::String & GetContentType() const
Definition Item.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue