io.fabric8.gateway.ServiceDTO Maven / Gradle / Ivy
The newest version!
/**
* Copyright 2005-2015 Red Hat, Inc.
*
* Red Hat licenses this file to you 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 io.fabric8.gateway;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.gateway.api.ServiceDetails;
import java.util.Collections;
import java.util.List;
/**
*/
public class ServiceDTO implements ServiceDetails {
@JsonProperty
private String id;
@JsonProperty
private String container;
@JsonProperty
private String version;
@JsonProperty
private String bundleName;
@JsonProperty
private String bundleVersion;
@JsonProperty
private List services = Collections.EMPTY_LIST;
@Override
public String toString() {
return "ServiceDTO{" +
"id='" + id + '\'' +
", container='" + container + '\'' +
", version='" + version + '\'' +
", bundleName='" + bundleName + '\'' +
", bundleVersion='" + bundleVersion + '\'' +
", services=" + services +
'}';
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String getContainer() {
return container;
}
public void setContainer(String container) {
this.container = container;
}
@Override
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public List getServices() {
return services;
}
public void setServices(List services) {
this.services = services;
}
@Override
public String getBundleName() {
return bundleName;
}
public void setBundleName(String bundleName) {
this.bundleName = bundleName;
}
@Override
public String getBundleVersion() {
return bundleVersion;
}
public void setBundleVersion(String bundleVersion) {
this.bundleVersion = bundleVersion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy