AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
FileInformation.h
1
6#pragma once
7#include <aws/omics/Omics_EXPORTS.h>
8#include <aws/omics/model/ReadSetS3Access.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Omics {
20namespace Model {
21
28 public:
29 AWS_OMICS_API FileInformation() = default;
32 AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetTotalParts() const { return m_totalParts; }
39 inline bool TotalPartsHasBeenSet() const { return m_totalPartsHasBeenSet; }
40 inline void SetTotalParts(int value) {
41 m_totalPartsHasBeenSet = true;
42 m_totalParts = value;
43 }
44 inline FileInformation& WithTotalParts(int value) {
45 SetTotalParts(value);
46 return *this;
47 }
49
51
54 inline long long GetPartSize() const { return m_partSize; }
55 inline bool PartSizeHasBeenSet() const { return m_partSizeHasBeenSet; }
56 inline void SetPartSize(long long value) {
57 m_partSizeHasBeenSet = true;
58 m_partSize = value;
59 }
60 inline FileInformation& WithPartSize(long long value) {
61 SetPartSize(value);
62 return *this;
63 }
65
67
70 inline long long GetContentLength() const { return m_contentLength; }
71 inline bool ContentLengthHasBeenSet() const { return m_contentLengthHasBeenSet; }
72 inline void SetContentLength(long long value) {
73 m_contentLengthHasBeenSet = true;
74 m_contentLength = value;
75 }
76 inline FileInformation& WithContentLength(long long value) {
77 SetContentLength(value);
78 return *this;
79 }
81
83
86 inline const ReadSetS3Access& GetS3Access() const { return m_s3Access; }
87 inline bool S3AccessHasBeenSet() const { return m_s3AccessHasBeenSet; }
88 template <typename S3AccessT = ReadSetS3Access>
89 void SetS3Access(S3AccessT&& value) {
90 m_s3AccessHasBeenSet = true;
91 m_s3Access = std::forward<S3AccessT>(value);
92 }
93 template <typename S3AccessT = ReadSetS3Access>
94 FileInformation& WithS3Access(S3AccessT&& value) {
95 SetS3Access(std::forward<S3AccessT>(value));
96 return *this;
97 }
99 private:
100 int m_totalParts{0};
101
102 long long m_partSize{0};
103
104 long long m_contentLength{0};
105
106 ReadSetS3Access m_s3Access;
107 bool m_totalPartsHasBeenSet = false;
108 bool m_partSizeHasBeenSet = false;
109 bool m_contentLengthHasBeenSet = false;
110 bool m_s3AccessHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Omics
115} // namespace Aws
void SetContentLength(long long value)
AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const
const ReadSetS3Access & GetS3Access() const
AWS_OMICS_API FileInformation(Aws::Utils::Json::JsonView jsonValue)
AWS_OMICS_API FileInformation()=default
FileInformation & WithS3Access(S3AccessT &&value)
FileInformation & WithTotalParts(int value)
AWS_OMICS_API FileInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetS3Access(S3AccessT &&value)
FileInformation & WithPartSize(long long value)
FileInformation & WithContentLength(long long value)
Aws::Utils::Json::JsonValue JsonValue