All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ens20171110.models.ModifyNetworkInterfaceAttributeRequest Maven / Gradle / Ivy

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 ModifyNetworkInterfaceAttributeRequest} extends {@link RequestModel}
 *
 * 

ModifyNetworkInterfaceAttributeRequest

*/ public class ModifyNetworkInterfaceAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") @com.aliyun.core.annotation.Validation(maxLength = 256, minLength = 1) private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkInterfaceId") @com.aliyun.core.annotation.Validation(required = true) private String networkInterfaceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkInterfaceName") @com.aliyun.core.annotation.Validation(maxLength = 128, minLength = 1) private String networkInterfaceName; private ModifyNetworkInterfaceAttributeRequest(Builder builder) { super(builder); this.description = builder.description; this.networkInterfaceId = builder.networkInterfaceId; this.networkInterfaceName = builder.networkInterfaceName; } public static Builder builder() { return new Builder(); } public static ModifyNetworkInterfaceAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return networkInterfaceId */ public String getNetworkInterfaceId() { return this.networkInterfaceId; } /** * @return networkInterfaceName */ public String getNetworkInterfaceName() { return this.networkInterfaceName; } public static final class Builder extends Request.Builder { private String description; private String networkInterfaceId; private String networkInterfaceName; private Builder() { super(); } private Builder(ModifyNetworkInterfaceAttributeRequest request) { super(request); this.description = request.description; this.networkInterfaceId = request.networkInterfaceId; this.networkInterfaceName = request.networkInterfaceName; } /** *

The description. The description must be 1 to 256 characters in length and cannot start with http:// or https://.

* * example: *

testDescription

*/ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** *

The ID of the ENI.

*

This parameter is required.

* * example: *

eni-5f6533jbifugr5fo***

*/ public Builder networkInterfaceId(String networkInterfaceId) { this.putQueryParameter("NetworkInterfaceId", networkInterfaceId); this.networkInterfaceId = networkInterfaceId; return this; } /** *

The name of the ENI. The name must be 1 to 128 characters in length, The name cannot start with http:// or https://.

* * example: *

test-01

*/ public Builder networkInterfaceName(String networkInterfaceName) { this.putQueryParameter("NetworkInterfaceName", networkInterfaceName); this.networkInterfaceName = networkInterfaceName; return this; } @Override public ModifyNetworkInterfaceAttributeRequest build() { return new ModifyNetworkInterfaceAttributeRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy