/*
 *   Copyright (c) 2013 Intellectual Reserve, Inc.  All rights reserved.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 */
package cf.service;

import cf.common.JsonObject;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author Mike Heath <elcapo@gmail.com>
 */
public class BindRequest extends JsonObject {

	private final String serviceInstanceId;
	private final String label;
	private final String email;
	private final String appId;
	// Ignore bind_options field, it is always empty in v2

	public BindRequest(
			@JsonProperty("service_id") String serviceInstanceId,
			@JsonProperty("label") String label,
			@JsonProperty("email") String email,
			@JsonProperty("app_id") String appId) {
		this.serviceInstanceId = serviceInstanceId;
		this.label = label;
		this.email = email;
		this.appId = appId;
	}

	public String getServiceInstanceId() {
		return serviceInstanceId;
	}

	public String getLabel() {
		return label;
	}

	public String getEmail() {
		return email;
	}
	
	public String getAppId() {
		return appId;
	}
}

@@ -673,16 +673,40 @@
 rvice;%0A%0A
+import java.util.UUID;%0A%0A
 import c
@@ -726,16 +726,17 @@
 Object;%0A
+%0A
 import c
@@ -992,22 +992,20 @@
 e final 
-String
+UUID
  appId;%0A
@@ -1246,22 +1246,20 @@
 pp_id%22) 
-String
+UUID
  appId) 
@@ -1549,30 +1549,28 @@
 %7D%0A%09%0A%09public 
-String
+UUID
  getAppId() 

Use UUID instead of String for appId.