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

com.aliyun.sdk.service.ens20171110.models.ModifySecurityGroupAttributeRequest 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 ModifySecurityGroupAttributeRequest} extends {@link RequestModel}
 *
 * 

ModifySecurityGroupAttributeRequest

*/ public class ModifySecurityGroupAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") @com.aliyun.core.annotation.Validation(maxLength = 256, minLength = 2) private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityGroupId") @com.aliyun.core.annotation.Validation(required = true) private String securityGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityGroupName") @com.aliyun.core.annotation.Validation(maxLength = 128, minLength = 2) private String securityGroupName; private ModifySecurityGroupAttributeRequest(Builder builder) { super(builder); this.description = builder.description; this.securityGroupId = builder.securityGroupId; this.securityGroupName = builder.securityGroupName; } public static Builder builder() { return new Builder(); } public static ModifySecurityGroupAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return securityGroupId */ public String getSecurityGroupId() { return this.securityGroupId; } /** * @return securityGroupName */ public String getSecurityGroupName() { return this.securityGroupName; } public static final class Builder extends Request.Builder { private String description; private String securityGroupId; private String securityGroupName; private Builder() { super(); } private Builder(ModifySecurityGroupAttributeRequest request) { super(request); this.description = request.description; this.securityGroupId = request.securityGroupId; this.securityGroupName = request.securityGroupName; } /** *

The description of the security group.

* * example: *

testDescription

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

The ID of the security group.

*

This parameter is required.

* * example: *

sg-bp67acfmxazb4p****

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

The name of the security group. The name of a bucket must meet the following requirements:

*
    *
  • The name must be 2 to 128 characters in length.
  • *
  • The name must start with a letter but cannot start with http:// or https://.
  • *
  • The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
  • *
* * example: *

example

*/ public Builder securityGroupName(String securityGroupName) { this.putQueryParameter("SecurityGroupName", securityGroupName); this.securityGroupName = securityGroupName; return this; } @Override public ModifySecurityGroupAttributeRequest build() { return new ModifySecurityGroupAttributeRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy