AWS SDK for C++

AWS SDK for C++ Version 1.11.907

Loading...
Searching...
No Matches
SubObjectStatistics.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/SubObjectSourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
34 public:
35 AWS_GLUE_API SubObjectStatistics() = default;
39
41
45 inline SubObjectSourceType GetSourceType() const { return m_sourceType; }
46 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
48 m_sourceTypeHasBeenSet = true;
49 m_sourceType = value;
50 }
52 SetSourceType(value);
53 return *this;
54 }
56
58
62 inline const Aws::String& GetGlueVersionId() const { return m_glueVersionId; }
63 inline bool GlueVersionIdHasBeenSet() const { return m_glueVersionIdHasBeenSet; }
64 template <typename GlueVersionIdT = Aws::String>
65 void SetGlueVersionId(GlueVersionIdT&& value) {
66 m_glueVersionIdHasBeenSet = true;
67 m_glueVersionId = std::forward<GlueVersionIdT>(value);
68 }
69 template <typename GlueVersionIdT = Aws::String>
70 SubObjectStatistics& WithGlueVersionId(GlueVersionIdT&& value) {
71 SetGlueVersionId(std::forward<GlueVersionIdT>(value));
72 return *this;
73 }
75
77
81 inline long long GetPartitionCount() const { return m_partitionCount; }
82 inline bool PartitionCountHasBeenSet() const { return m_partitionCountHasBeenSet; }
83 inline void SetPartitionCount(long long value) {
84 m_partitionCountHasBeenSet = true;
85 m_partitionCount = value;
86 }
87 inline SubObjectStatistics& WithPartitionCount(long long value) {
88 SetPartitionCount(value);
89 return *this;
90 }
92
94
97 inline long long GetFileCount() const { return m_fileCount; }
98 inline bool FileCountHasBeenSet() const { return m_fileCountHasBeenSet; }
99 inline void SetFileCount(long long value) {
100 m_fileCountHasBeenSet = true;
101 m_fileCount = value;
102 }
103 inline SubObjectStatistics& WithFileCount(long long value) {
104 SetFileCount(value);
105 return *this;
106 }
108
110
114 inline long long GetTotalFileBytes() const { return m_totalFileBytes; }
115 inline bool TotalFileBytesHasBeenSet() const { return m_totalFileBytesHasBeenSet; }
116 inline void SetTotalFileBytes(long long value) {
117 m_totalFileBytesHasBeenSet = true;
118 m_totalFileBytes = value;
119 }
120 inline SubObjectStatistics& WithTotalFileBytes(long long value) {
121 SetTotalFileBytes(value);
122 return *this;
123 }
125 private:
127
128 Aws::String m_glueVersionId;
129
130 long long m_partitionCount{0};
131
132 long long m_fileCount{0};
133
134 long long m_totalFileBytes{0};
135 bool m_sourceTypeHasBeenSet = false;
136 bool m_glueVersionIdHasBeenSet = false;
137 bool m_partitionCountHasBeenSet = false;
138 bool m_fileCountHasBeenSet = false;
139 bool m_totalFileBytesHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Glue
144} // namespace Aws
SubObjectStatistics & WithGlueVersionId(GlueVersionIdT &&value)
const Aws::String & GetGlueVersionId() const
void SetGlueVersionId(GlueVersionIdT &&value)
SubObjectStatistics & WithTotalFileBytes(long long value)
AWS_GLUE_API SubObjectStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API SubObjectStatistics()=default
AWS_GLUE_API SubObjectStatistics(Aws::Utils::Json::JsonView jsonValue)
SubObjectSourceType GetSourceType() const
void SetSourceType(SubObjectSourceType value)
SubObjectStatistics & WithPartitionCount(long long value)
SubObjectStatistics & WithFileCount(long long value)
SubObjectStatistics & WithSourceType(SubObjectSourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue