16 #ifndef ACSDKASSETSINTERFACES_VENDABLEARTIFACT_H_ 17 #define ACSDKASSETSINTERFACES_VENDABLEARTIFACT_H_ 24 namespace acsdkAssets {
25 namespace commonInterfaces {
29 using TimeEpoch = std::chrono::system_clock::time_point;
44 static std::unique_ptr<VendableArtifact>
create(
45 std::shared_ptr<DavsRequest> request,
47 size_t artifactSizeBytes,
51 size_t currentSizeBytes,
62 static std::unique_ptr<VendableArtifact>
create(
63 std::shared_ptr<DavsRequest> request,
67 inline const std::shared_ptr<DavsRequest>&
getRequest()
const {
80 return m_artifactSizeBytes;
84 return m_artifactExpiry;
92 return m_currentSizeBytes;
105 std::shared_ptr<DavsRequest> request,
107 size_t artifactSizeBytes,
111 size_t currentSizeBytes,
116 const std::shared_ptr<DavsRequest> m_request;
118 const size_t m_artifactSizeBytes;
122 const size_t m_currentSizeBytes;
124 const bool m_multipart;
131 #endif // ACSDKASSETSINTERFACES_VENDABLEARTIFACT_H_ size_t getArtifactSizeBytes() const
Definition: VendableArtifact.h:79
const std::shared_ptr< DavsRequest > & getRequest() const
Definition: VendableArtifact.h:67
const std::string & getS3Url() const
Definition: VendableArtifact.h:75
const std::string & getUniqueIdentifier() const
Definition: VendableArtifact.h:95
::std::string string
Definition: gtest-port.h:1097
size_t getCurrentSizeBytes() const
Definition: VendableArtifact.h:91
std::chrono::system_clock::time_point TimeEpoch
Definition: VendableArtifact.h:29
bool isMultipart() const
Definition: VendableArtifact.h:99
const std::string & getId() const
Definition: VendableArtifact.h:71
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
const TimeEpoch & getArtifactExpiry() const
Definition: VendableArtifact.h:83
static std::unique_ptr< VendableArtifact > create(std::shared_ptr< DavsRequest > request, std::string id, size_t artifactSizeBytes, TimeEpoch artifactExpiry, std::string s3Url, TimeEpoch urlExpiry, size_t currentSizeBytes, bool multipart)
Definition: VendableArtifact.h:27
const TimeEpoch & getUrlExpiry() const
Definition: VendableArtifact.h:87