com.aliyun.sdk.service.ens20171110.models.CreateKeyPairRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ens20171110 Show documentation
Show all versions of alibabacloud-ens20171110 Show documentation
Alibaba Cloud Ens (20171110) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateKeyPairRequest} extends {@link RequestModel}
*
* CreateKeyPairRequest
*/
public class CreateKeyPairRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("KeyPairName")
@com.aliyun.core.annotation.Validation(required = true)
private String keyPairName;
private CreateKeyPairRequest(Builder builder) {
super(builder);
this.keyPairName = builder.keyPairName;
}
public static Builder builder() {
return new Builder();
}
public static CreateKeyPairRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return keyPairName
*/
public String getKeyPairName() {
return this.keyPairName;
}
public static final class Builder extends Request.Builder {
private String keyPairName;
private Builder() {
super();
}
private Builder(CreateKeyPairRequest request) {
super(request);
this.keyPairName = request.keyPairName;
}
/**
* The name of the key pair. The name must conform to the following naming conventions:
*
* - The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-).
* - It must start with a letter but cannot start with
http://
or https://
.
*
* This parameter is required.
*
* example:
* TestKeyPairName
*/
public Builder keyPairName(String keyPairName) {
this.putQueryParameter("KeyPairName", keyPairName);
this.keyPairName = keyPairName;
return this;
}
@Override
public CreateKeyPairRequest build() {
return new CreateKeyPairRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy