Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

/*
* SeocGenericRequest.java
* Copyright (c) 2017 Veterans Affairs.
*/
package gov.va.oneconsult.seoc.api.json;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;

/**
* Description: Create Seoc request. Contains attributes to required to find a Seoc object.
* @author AbleVets
*
*/
@JsonDeserialize(builder = SeocGenericRequest.Builder.class)
public class SeocGenericRequest
{

/**
* SeocId value.
*/
private int seocId;

/**
* Private constructor that will be called from the builder class and
* initialize all the attributes as required.
*
* @param builder
*/
private SeocGenericRequest(Builder builder)
{
this.seocId = builder.seocId;
}

/**
* Description:
* @return seocId
*/
public int getSeocId()
{
return seocId;
}

/**
* Builder for SeocGenericRequest. Constructor accepts a mandatory
* parameter seocId to build the SeocGenericRequest.
*/
@JsonPOJOBuilder(buildMethodName = "build", withPrefix = "with")
public static class Builder
{
// Optional Field
private int seocId = 0;


/**
* Description: Invoke private constructor to create Builder instance
* @param seocId
* @return Builder
*/
@JsonCreator
public static Builder create(@JsonProperty("seocId") int seocId)
{
return new Builder(seocId);
}

/**
* @param name
* @param serviceLine
*/
@JsonCreator
private Builder(@JsonProperty("seocId") int seocId)
{
this.seocId = seocId;
}

/**
* Description: Builder method to initialize seocId.
*
* @param seocId
* @return - Builder
*/
public Builder withSeocId(int seocId)
{
this.seocId = seocId;
return this;
}

/**
* Description: Invokes the SeocGenericRequest private constructor.
*
* @return - Instance of SeocGenericRequest
*/
public SeocGenericRequest build()
{
return new SeocGenericRequest(this);
}
}

}