com.spotinst.sdkjava.model.requests.elastigroup.aws.ElastigroupGetDeploymentActionRequest Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.requests.elastigroup.aws;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.spotinst.sdkjava.client.rest.JsonMapper;
import com.spotinst.sdkjava.model.ElastigroupConverter;
import com.spotinst.sdkjava.model.api.elastigroup.aws.ApiElastigroupDeploymentStrategyOnFailure;
import com.spotinst.sdkjava.model.bl.elastigroup.aws.ElastigroupDeploymentStrategyOnFailure;
public class ElastigroupGetDeploymentActionRequest {
@JsonIgnore
private ElastigroupDeploymentStrategyOnFailure elastigroupDeploymentAction;
private ElastigroupGetDeploymentActionRequest() {
}
public ElastigroupDeploymentStrategyOnFailure getElastigroupDeploymentAction() {
return elastigroupDeploymentAction;
}
public void setElastigroupDeploymentAction(ElastigroupDeploymentStrategyOnFailure elastigroupDeploymentAction) {
this.elastigroupDeploymentAction = elastigroupDeploymentAction;
}
public static class Builder {
private ElastigroupGetDeploymentActionRequest elastigroupDeploymentRequest;
private Builder() {
this.elastigroupDeploymentRequest = new ElastigroupGetDeploymentActionRequest();
}
public static Builder get() {
return new Builder();
}
public Builder setElastigroupDeploymentAction(final ElastigroupDeploymentStrategyOnFailure elastigroupDeploymentAction) {
elastigroupDeploymentRequest.setElastigroupDeploymentAction(elastigroupDeploymentAction);
return this;
}
public ElastigroupGetDeploymentActionRequest build() {
return elastigroupDeploymentRequest;
}
}
//region Json methods
public String toJson() {
ApiElastigroupDeploymentStrategyOnFailure elastigroupDeploymentActionRequest = ElastigroupConverter
.toDal(elastigroupDeploymentAction);
return JsonMapper.toJson(elastigroupDeploymentActionRequest);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy