org.aoju.bus.gitlab.models.ReleaseParams Maven / Gradle / Ivy
/*********************************************************************************
* *
* The MIT License (MIT) *
* *
* Copyright (c) 2015-2022 aoju.org Greg Messner and other contributors. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to deal *
* in the Software without restriction, including without limitation the rights *
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
* copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *
* The above copyright notice and this permission notice shall be included in *
* all copies or substantial portions of the Software. *
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
* THE SOFTWARE. *
* *
********************************************************************************/
package org.aoju.bus.gitlab.models;
import org.aoju.bus.gitlab.support.JacksonJson;
import java.util.Date;
import java.util.List;
public class ReleaseParams {
private String name;
private String tagName;
private String description;
private String ref;
private List milestones;
private Assets assets;
private Date releasedAt;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ReleaseParams withName(String name) {
this.name = name;
return (this);
}
public String getTagName() {
return tagName;
}
public void setTagName(String tagName) {
this.tagName = tagName;
}
public ReleaseParams withTagName(String tagName) {
this.tagName = tagName;
return (this);
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ReleaseParams withDescription(String description) {
this.description = description;
return (this);
}
public List getMilestones() {
return milestones;
}
public void setMilestones(List milestones) {
this.milestones = milestones;
}
public ReleaseParams withMilestones(List milestones) {
this.milestones = milestones;
return (this);
}
public String getRef() {
return ref;
}
public void setRef(String ref) {
this.ref = ref;
}
public ReleaseParams withRef(String ref) {
this.ref = ref;
return (this);
}
public Assets getAssets() {
return assets;
}
public void setAssets(Assets assets) {
this.assets = assets;
}
public ReleaseParams withAssets(Assets assets) {
this.assets = assets;
return (this);
}
public Date getReleasedAt() {
return releasedAt;
}
public void setReleasedAt(Date releasedAt) {
this.releasedAt = releasedAt;
}
public ReleaseParams withReleasedAt(Date releasedAt) {
this.releasedAt = releasedAt;
return (this);
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}