AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PartListElement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/Glacier_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Glacier {
20namespace Model {
21
29 public:
30 AWS_GLACIER_API PartListElement() = default;
31 AWS_GLACIER_API PartListElement(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetRangeInBytes() const { return m_rangeInBytes; }
40 inline bool RangeInBytesHasBeenSet() const { return m_rangeInBytesHasBeenSet; }
41 template <typename RangeInBytesT = Aws::String>
42 void SetRangeInBytes(RangeInBytesT&& value) {
43 m_rangeInBytesHasBeenSet = true;
44 m_rangeInBytes = std::forward<RangeInBytesT>(value);
45 }
46 template <typename RangeInBytesT = Aws::String>
47 PartListElement& WithRangeInBytes(RangeInBytesT&& value) {
48 SetRangeInBytes(std::forward<RangeInBytesT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSHA256TreeHash() const { return m_sHA256TreeHash; }
59 inline bool SHA256TreeHashHasBeenSet() const { return m_sHA256TreeHashHasBeenSet; }
60 template <typename SHA256TreeHashT = Aws::String>
61 void SetSHA256TreeHash(SHA256TreeHashT&& value) {
62 m_sHA256TreeHashHasBeenSet = true;
63 m_sHA256TreeHash = std::forward<SHA256TreeHashT>(value);
64 }
65 template <typename SHA256TreeHashT = Aws::String>
66 PartListElement& WithSHA256TreeHash(SHA256TreeHashT&& value) {
67 SetSHA256TreeHash(std::forward<SHA256TreeHashT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_rangeInBytes;
73
74 Aws::String m_sHA256TreeHash;
75 bool m_rangeInBytesHasBeenSet = false;
76 bool m_sHA256TreeHashHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Glacier
81} // namespace Aws
PartListElement & WithRangeInBytes(RangeInBytesT &&value)
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRangeInBytes(RangeInBytesT &&value)
AWS_GLACIER_API PartListElement()=default
const Aws::String & GetSHA256TreeHash() const
PartListElement & WithSHA256TreeHash(SHA256TreeHashT &&value)
const Aws::String & GetRangeInBytes() const
void SetSHA256TreeHash(SHA256TreeHashT &&value)
AWS_GLACIER_API PartListElement(Aws::Utils::Json::JsonView jsonValue)
AWS_GLACIER_API PartListElement & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue