dpc-api/src/main/java/gov/cms/dpc/api/models/CreateIpAddressRequest.java
package gov.cms.dpc.api.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotEmpty;
public class CreateIpAddressRequest {
private String label;
@NotEmpty
private String ipAddress;
public String getLabel() {return this.label;}
public CreateIpAddressRequest setLabel(String label) {this.label = label; return this;}
@JsonProperty("ip_address")
public String getIpAddress() {return this.ipAddress;}
@JsonProperty("ip_address")
public CreateIpAddressRequest setIpAddress(String ipAddress) {this.ipAddress = ipAddress; return this;}
public CreateIpAddressRequest(@JsonProperty("ip_address") String ipAddress, @JsonProperty("label") String label) {
this.setIpAddress(ipAddress);
this.setLabel(label);
}
public CreateIpAddressRequest(String ipAddress) {
this.setIpAddress(ipAddress);
this.setLabel(null);
}
}