S2S VPN: Add state for vpn connection response

This commit is contained in:
Sheng Yang 2012-07-09 16:53:44 -07:00
parent ae7ec39bff
commit a87a0619c2
2 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,9 @@ public class Site2SiteVpnConnectionResponse extends BaseResponse {
@SerializedName(ApiConstants.LIFETIME) @Param(description="Lifetime of vpn connection to the customer gateway, in seconds") //from CustomerGateway
private Long lifetime;
@SerializedName(ApiConstants.STATE) @Param(description="State of vpn connection")
private String state;
@SerializedName(ApiConstants.CREATED) @Param(description="the date and time the host was created")
private Date created;
@ -97,6 +100,10 @@ public class Site2SiteVpnConnectionResponse extends BaseResponse {
this.lifetime = lifetime;
}
public void setState(String state) {
this.state = state;
}
public void setCreated(Date created) {
this.created = created;
}

View File

@ -3848,6 +3848,7 @@ public class ApiResponseHelper implements ResponseGenerator {
response.setLifetime(customerGateway.getLifetime());
}
response.setState(result.getState().toString());
response.setCreated(result.getCreated());
response.setRemoved(result.getRemoved());
response.setObjectName("vpnconnection");