
io.hyscale.deployer.services.model.CustomListObject Maven / Gradle / Ivy
The newest version!
/**
* Copyright 2019 Pramati Prism, Inc.
*
* 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 io.hyscale.deployer.services.model;
import io.kubernetes.client.common.KubernetesListObject;
import io.kubernetes.client.openapi.models.V1ListMeta;
import java.util.List;
public class CustomListObject implements KubernetesListObject {
private String kind;
private String apiVersion;
private V1ListMeta metadata;
private List items;
public CustomListObject(String kind,String apiVersion){
this.kind = kind;
this.apiVersion = apiVersion;
}
@Override
public V1ListMeta getMetadata() {
return metadata;
}
@Override
public List getItems() {
return items;
}
@Override
public String getApiVersion() {
return apiVersion;
}
@Override
public String getKind() {
return kind;
}
public void setCustomObjectList(List items) {
this.items = items;
}
public void addItem(CustomObject customObject){
this.items.add(customObject);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy