com.jdcloud.sdk.service.vm.model.DescribeKeypairsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vm Show documentation
Show all versions of vm Show documentation
JDCLOUD Open API SDK for Java
/*
* Copyright 2018 JDCLOUD.COM
*
* 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.
*
* SSH密钥对
* 关于SSH密钥对的相关接口
*
* OpenAPI spec version: v1
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.vm.model;
import java.util.List;
import java.util.ArrayList;
import com.jdcloud.sdk.service.vm.model.Keypair;
import com.jdcloud.sdk.service.JdcloudResult;
/**
* 批量查询密钥对。<br>
此接口支持分页查询,默认每页20条。
*/
public class DescribeKeypairsResult extends JdcloudResult implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* keypairs
*/
private List keypairs;
/**
* 总的数据条数
*/
private Number totalCount;
/**
* get keypairs
*
* @return
*/
public List getKeypairs() {
return keypairs;
}
/**
* set keypairs
*
* @param keypairs
*/
public void setKeypairs(List keypairs) {
this.keypairs = keypairs;
}
/**
* get 总的数据条数
*
* @return
*/
public Number getTotalCount() {
return totalCount;
}
/**
* set 总的数据条数
*
* @param totalCount
*/
public void setTotalCount(Number totalCount) {
this.totalCount = totalCount;
}
/**
* set keypairs
*
* @param keypairs
*/
public DescribeKeypairsResult keypairs(List keypairs) {
this.keypairs = keypairs;
return this;
}
/**
* set 总的数据条数
*
* @param totalCount
*/
public DescribeKeypairsResult totalCount(Number totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* add item to keypairs
*
* @param keypair
*/
public void addKeypair(Keypair keypair) {
if (this.keypairs == null) {
this.keypairs = new ArrayList<>();
}
this.keypairs.add(keypair);
}
}