add missing builder methods

This commit is contained in:
danikov 2012-02-29 11:30:08 +00:00
parent ed6cfca0a7
commit cdf2ddb0ac
1 changed files with 18 additions and 0 deletions

View File

@ -90,8 +90,26 @@ public class CloneMediaParams
public CloneMediaParams build() {
return new CloneMediaParams(description, name, source, isSourceDelete);
cloneMediaParams.setDescription(description);
cloneMediaParams.setName(name);
}
/**
* @see ParamsType#getDescription()
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* @see ParamsType#getName()
*/
public Builder name(String name) {
this.name = name;
return this;
}
@Override
public Builder fromParamsType(ParamsType<CloneMediaParams> in) {
return Builder.class.cast(super.fromParamsType(in));