/*
* 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.client.model;
import java.net.URI;
import cf.common.JsonObject;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Mike Heath
*/
public class Info extends JsonObject {
private final String name;
private final Integer version;
private final URI authorizationEndpoint;
private final URI tokenEndpoint;
private final URI loggingEndpoint;
private final URI dopplerLoggingEndpoint;
public Info(
@JsonProperty("name") String name,
@JsonProperty("version") Integer version,
@JsonProperty(value="authorization_endpoint", required=true) URI authorizationEndpoint,
@JsonProperty(value="token_endpoint", required=true) URI tokenEndpoint,
@JsonProperty(value="doppler_logging_endpoint", required=true) URI dopplerLoggingEndpoint,
@JsonProperty(value="logging_endpoint", required=true) URI loggingEndpoint) {
this.name = name;
this.version = version;
this.authorizationEndpoint = authorizationEndpoint;
this.tokenEndpoint = tokenEndpoint;
this.dopplerLoggingEndpoint = dopplerLoggingEndpoint;
this.loggingEndpoint = loggingEndpoint;
}
public String getName() {
return name;
}
public Integer getVersion() {
return version;
}
public URI getAuthorizationEndpoint() {
return authorizationEndpoint;
}
public URI getTokenEndpoint() {
return tokenEndpoint;
}
public URI getLoggingEndpoint() {
return loggingEndpoint;
}
public URI getDopplerLoggingEndpoint() {
return dopplerLoggingEndpoint;
}
}