
com.tencentcloudapi.tke.v20180525.models.DescribeResourceUsageResponse Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 com.tencentcloudapi.tke.v20180525.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeResourceUsageResponse extends AbstractModel {
/**
* CRD usage
*/
@SerializedName("CRDUsage")
@Expose
private ResourceUsage CRDUsage;
/**
* Pod usage
*/
@SerializedName("PodUsage")
@Expose
private Long PodUsage;
/**
* ReplicaSet usage
*/
@SerializedName("RSUsage")
@Expose
private Long RSUsage;
/**
* ConfigMap usage
*/
@SerializedName("ConfigMapUsage")
@Expose
private Long ConfigMapUsage;
/**
* Other resource usage
*/
@SerializedName("OtherUsage")
@Expose
private ResourceUsage OtherUsage;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
*/
@SerializedName("RequestId")
@Expose
private String RequestId;
/**
* Get CRD usage
* @return CRDUsage CRD usage
*/
public ResourceUsage getCRDUsage() {
return this.CRDUsage;
}
/**
* Set CRD usage
* @param CRDUsage CRD usage
*/
public void setCRDUsage(ResourceUsage CRDUsage) {
this.CRDUsage = CRDUsage;
}
/**
* Get Pod usage
* @return PodUsage Pod usage
*/
public Long getPodUsage() {
return this.PodUsage;
}
/**
* Set Pod usage
* @param PodUsage Pod usage
*/
public void setPodUsage(Long PodUsage) {
this.PodUsage = PodUsage;
}
/**
* Get ReplicaSet usage
* @return RSUsage ReplicaSet usage
*/
public Long getRSUsage() {
return this.RSUsage;
}
/**
* Set ReplicaSet usage
* @param RSUsage ReplicaSet usage
*/
public void setRSUsage(Long RSUsage) {
this.RSUsage = RSUsage;
}
/**
* Get ConfigMap usage
* @return ConfigMapUsage ConfigMap usage
*/
public Long getConfigMapUsage() {
return this.ConfigMapUsage;
}
/**
* Set ConfigMap usage
* @param ConfigMapUsage ConfigMap usage
*/
public void setConfigMapUsage(Long ConfigMapUsage) {
this.ConfigMapUsage = ConfigMapUsage;
}
/**
* Get Other resource usage
* @return OtherUsage Other resource usage
*/
public ResourceUsage getOtherUsage() {
return this.OtherUsage;
}
/**
* Set Other resource usage
* @param OtherUsage Other resource usage
*/
public void setOtherUsage(ResourceUsage OtherUsage) {
this.OtherUsage = OtherUsage;
}
/**
* Get The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @return RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
*/
public String getRequestId() {
return this.RequestId;
}
/**
* Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @param RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
*/
public void setRequestId(String RequestId) {
this.RequestId = RequestId;
}
public DescribeResourceUsageResponse() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeResourceUsageResponse(DescribeResourceUsageResponse source) {
if (source.CRDUsage != null) {
this.CRDUsage = new ResourceUsage(source.CRDUsage);
}
if (source.PodUsage != null) {
this.PodUsage = new Long(source.PodUsage);
}
if (source.RSUsage != null) {
this.RSUsage = new Long(source.RSUsage);
}
if (source.ConfigMapUsage != null) {
this.ConfigMapUsage = new Long(source.ConfigMapUsage);
}
if (source.OtherUsage != null) {
this.OtherUsage = new ResourceUsage(source.OtherUsage);
}
if (source.RequestId != null) {
this.RequestId = new String(source.RequestId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamObj(map, prefix + "CRDUsage.", this.CRDUsage);
this.setParamSimple(map, prefix + "PodUsage", this.PodUsage);
this.setParamSimple(map, prefix + "RSUsage", this.RSUsage);
this.setParamSimple(map, prefix + "ConfigMapUsage", this.ConfigMapUsage);
this.setParamObj(map, prefix + "OtherUsage.", this.OtherUsage);
this.setParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy