/*
 * Copyright 2013-2015 the original author or authors.
 *
 * 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 org.springframework.cloud.cloudfoundry.discovery;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author <A href="mailto:josh@joshlong.com">Josh Long</A>
 */
@ConfigurationProperties(prefix = "spring.cloud.cloudfoundry.discovery")
public class CloudFoundryDiscoveryProperties {

	private String url = "https://api.run.pivotal.io";

	private String email;

	private String password;

	private boolean enabled = true;

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String cloudControllerUrl) {
		this.url = cloudControllerUrl;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
@@ -945,110 +945,346 @@
 %7B%0A%0A%09
-private String url = %22https://api.run.pivotal.io%22;%0A%0A%09private String email;%0A%0A%09private String password;%0A
+/**%0A%09 * URL of Cloud Foundry API (Cloud Controller).%0A%09 */%0A%09private String url = %22https://api.run.pivotal.io%22;%0A%0A%09/**%0A%09 * Email address of user to authenticate.%0A%09 */%0A%09private String email;%0A%0A%09/**%0A%09 * Password for user to authenticate and obtain token.%0A%09 */%0A%09private String password;%0A%0A%09/**%0A%09 * Flag to indicate that discovery is enabled.%0A%09 */
 %0A%09pr
@@ -1353,16 +1353,21 @@
 %09return 
+this.
 enabled;
@@ -1479,16 +1479,21 @@
 %09return 
+this.
 url;%0A%09%7D%0A
@@ -1616,16 +1616,21 @@
 %09return 
+this.
 email;%0A%09
@@ -1736,16 +1736,21 @@
 %09return 
+this.
 password

Add some docs for config properties