io.proximax.xpx.model.DataHashByteArrayEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xpx-java-sdk Show documentation
Show all versions of xpx-java-sdk Show documentation
Proximax P2P File Storage Java SDK (NIS1 Compatible)
/*
* Copyright 2018 ProximaX Limited
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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 io.proximax.xpx.model;
import java.util.Map;
/**
* The Class DataHashByteArrayEntity.
*/
public class DataHashByteArrayEntity {
/** The file. */
private byte[] file;
/** The name. */
private String name;
/** The content type. */
private String contentType;
/** The keywords. */
private String keywords;
/** The size. */
private long size;
/**
* Gets the size.
*
* @return the size
*/
public long getSize() {
return size;
}
/**
* Sets the size.
*
* @param size the new size
*/
public void setSize(long size) {
this.size = size;
}
/**
* Gets the content type.
*
* @return the content type
*/
public String getContentType() {
return contentType;
}
/**
* Sets the content type.
*
* @param contentType the new content type
*/
public void setContentType(String contentType) {
this.contentType = contentType;
}
/** The metadata. */
private Map metadata;
/**
* Gets the file.
*
* @return the file
*/
public byte[] getFile() {
return file;
}
/**
* Sets the file.
*
* @param file the new file
*/
public void setFile(byte[] file) {
this.file = file;
}
/**
* Gets the keywords.
*
* @return the keywords
*/
public String getKeywords() {
return keywords;
}
/**
* Sets the keywords.
*
* @param keywords the new keywords
*/
public void setKeywords(String keywords) {
this.keywords = keywords;
}
/**
* Gets the metadata.
*
* @return the metadata
*/
public Map getMetadata() {
return metadata;
}
/**
* Sets the metadata.
*
* @param metadata the metadata
*/
public void setMetadata(Map metadata) {
this.metadata = metadata;
}
/**
* Gets the name.
*
* @return the name
*/
public String getName() {
return name;
}
/**
* Sets the name.
*
* @param name the new name
*/
public void setName(String name) {
this.name = name;
}
}