@@ -87,8 +87,9 @@ const TImportFromS3Response::TMetadata& TImportFromS3Response::Metadata() const
8787 return Metadata_;
8888}
8989
90- TListObjectsInS3ExportResult::TListObjectsInS3ExportResult (TStatus&& status, const :: Ydb::Import::ListObjectsInS3ExportResult& proto)
90+ TListObjectsInS3ExportResult::TListObjectsInS3ExportResult (TStatus&& status, const Ydb::Import::ListObjectsInS3ExportResult& proto)
9191 : TStatus(std::move(status))
92+ , Proto_(std::make_unique<Ydb::Import::ListObjectsInS3ExportResult>(proto))
9293{
9394 Items_.reserve (proto.items_size ());
9495 for (const auto & item : proto.items ()) {
@@ -100,10 +101,36 @@ TListObjectsInS3ExportResult::TListObjectsInS3ExportResult(TStatus&& status, con
100101 NextPageToken_ = proto.next_page_token ();
101102}
102103
104+ TListObjectsInS3ExportResult::TListObjectsInS3ExportResult (const TListObjectsInS3ExportResult& result)
105+ : TStatus(result)
106+ , Items_(result.Items_)
107+ , NextPageToken_(result.NextPageToken_)
108+ , Proto_(std::make_unique<Ydb::Import::ListObjectsInS3ExportResult>(*result.Proto_))
109+ {
110+ }
111+
112+ TListObjectsInS3ExportResult::TListObjectsInS3ExportResult (TListObjectsInS3ExportResult&&) = default ;
113+
114+ TListObjectsInS3ExportResult::~TListObjectsInS3ExportResult () = default ;
115+
116+ TListObjectsInS3ExportResult& TListObjectsInS3ExportResult::operator =(TListObjectsInS3ExportResult&&) = default ;
117+
118+ TListObjectsInS3ExportResult& TListObjectsInS3ExportResult::operator =(const TListObjectsInS3ExportResult& result) {
119+ TStatus::operator =(result);
120+ Items_ = result.Items_ ;
121+ NextPageToken_ = result.NextPageToken_ ;
122+ Proto_ = std::make_unique<Ydb::Import::ListObjectsInS3ExportResult>(*result.Proto_ );
123+ return *this ;
124+ }
125+
103126const std::vector<TListObjectsInS3ExportResult::TItem>& TListObjectsInS3ExportResult::GetItems () const {
104127 return Items_;
105128}
106129
130+ const Ydb::Import::ListObjectsInS3ExportResult& TListObjectsInS3ExportResult::GetProto () const {
131+ return *Proto_;
132+ }
133+
107134void TListObjectsInS3ExportResult::Out (IOutputStream& out) const {
108135 if (IsSuccess ()) {
109136 out << " { items: [" << JoinSeq (" , " , Items_) << " ], next_page_token: \" " << NextPageToken_ << " \" }" ;
0 commit comments