com.spotinst.sdkjava.model.requests.elastigroup.aws.ElastigroupStartDeploymentRequest Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.requests.elastigroup.aws;
import com.spotinst.sdkjava.client.rest.JsonMapper;
import com.spotinst.sdkjava.model.ElastigroupConverter;
import com.spotinst.sdkjava.model.api.elastigroup.aws.ApiElastigroupStartDeployment;
import com.spotinst.sdkjava.model.bl.elastigroup.aws.ElastigroupStartDeployment;
public class ElastigroupStartDeploymentRequest {
private ElastigroupStartDeployment elastigroupDeployment;
private String GroupId;
private ElastigroupStartDeploymentRequest() {
}
public ElastigroupStartDeployment getElastigroupDeployment() {
return elastigroupDeployment;
}
public void setElastigroupDeployment(ElastigroupStartDeployment elastigroupDeployment) {
this.elastigroupDeployment = elastigroupDeployment;
}
public String getGroupId() {
return GroupId;
}
public void setGroupId(String groupId) {
GroupId = groupId;
}
public static class Builder {
private ElastigroupStartDeploymentRequest elastigroupDeploymentRequest;
private Builder() {
this.elastigroupDeploymentRequest = new ElastigroupStartDeploymentRequest();
}
public static Builder get() {
return new Builder();
}
public Builder setElastigroupDeployment(final ElastigroupStartDeployment elastigroupDeployment) {
elastigroupDeploymentRequest.setElastigroupDeployment(elastigroupDeployment);
return this;
}
public Builder setGroupId(final String groupId) {
elastigroupDeploymentRequest.setGroupId(groupId);
return this;
}
public ElastigroupStartDeploymentRequest build() {
return elastigroupDeploymentRequest;
}
}
//region Json methods
public String toJson() {
ApiElastigroupStartDeployment elastigroupDeploymentRequest = ElastigroupConverter.toDal(elastigroupDeployment);
return JsonMapper.toJson(elastigroupDeploymentRequest);
}
//endregion
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy