io.qameta.allure.model.Attachment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-model Show documentation
Show all versions of allure-model Show documentation
Module allure-model of Allure Framework.
/*
* Copyright 2019 Qameta Software OÜ
*
* 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.qameta.allure.model;
import java.io.Serializable;
/**
* POJO that stores attachment information.
*/
public class Attachment implements Serializable {
private static final long serialVersionUID = 1L;
protected String name;
protected String source;
protected String type;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Attachment setName(final String value) {
this.name = value;
return this;
}
/**
* Gets the value of the source property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSource() {
return source;
}
/**
* Sets the value of the source property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Attachment setSource(final String value) {
this.source = value;
return this;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Attachment setType(final String value) {
this.type = value;
return this;
}
/**
* @deprecated use set method
*/
@Deprecated
public Attachment withName(final String value) {
return setName(value);
}
/**
* @deprecated use set method
*/
@Deprecated
public Attachment withSource(final String value) {
return setSource(value);
}
/**
* @deprecated use set method
*/
@Deprecated
public Attachment withType(final String value) {
return setType(value);
}
}