| /** |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * <p> |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * <p> |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package org.apache.hadoop.ozone.om.helpers; |
| |
| /** |
| * This class holds information about the response of complete Multipart |
| * upload request. |
| */ |
| public class OmMultipartUploadCompleteInfo { |
| |
| private String volume; |
| private String bucket; |
| private String key; |
| private String hash; // this is used as ETag for S3. |
| |
| public OmMultipartUploadCompleteInfo(String volumeName, String bucketName, |
| String keyName, String md5) { |
| this.volume = volumeName; |
| this.bucket = bucketName; |
| this.key = keyName; |
| this.hash = md5; |
| } |
| |
| public String getVolume() { |
| return volume; |
| } |
| |
| public void setVolume(String volume) { |
| this.volume = volume; |
| } |
| |
| public String getBucket() { |
| return bucket; |
| } |
| |
| public void setBucket(String bucket) { |
| this.bucket = bucket; |
| } |
| |
| public String getKey() { |
| return key; |
| } |
| |
| public void setKey(String key) { |
| this.key = key; |
| } |
| |
| public String getHash() { |
| return hash; |
| } |
| |
| public void setHash(String hash) { |
| this.hash = hash; |
| } |
| } |