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

com.aliyun.sdk.service.polardb20170801.models.CreateParameterGroupRequest Maven / Gradle / Ivy

There is a newer version: 4.0.28
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.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 CreateParameterGroupRequest} extends {@link RequestModel}
 *
 * 

CreateParameterGroupRequest

*/ public class CreateParameterGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBType") @com.aliyun.core.annotation.Validation(required = true) private String DBType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBVersion") @com.aliyun.core.annotation.Validation(required = true) private String DBVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ParameterGroupDesc") private String parameterGroupDesc; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ParameterGroupName") @com.aliyun.core.annotation.Validation(required = true) private String parameterGroupName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Parameters") @com.aliyun.core.annotation.Validation(required = true) private String parameters; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private CreateParameterGroupRequest(Builder builder) { super(builder); this.DBType = builder.DBType; this.DBVersion = builder.DBVersion; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.parameterGroupDesc = builder.parameterGroupDesc; this.parameterGroupName = builder.parameterGroupName; this.parameters = builder.parameters; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static CreateParameterGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return DBType */ public String getDBType() { return this.DBType; } /** * @return DBVersion */ public String getDBVersion() { return this.DBVersion; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return parameterGroupDesc */ public String getParameterGroupDesc() { return this.parameterGroupDesc; } /** * @return parameterGroupName */ public String getParameterGroupName() { return this.parameterGroupName; } /** * @return parameters */ public String getParameters() { return this.parameters; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder { private String DBType; private String DBVersion; private String ownerAccount; private Long ownerId; private String parameterGroupDesc; private String parameterGroupName; private String parameters; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CreateParameterGroupRequest request) { super(request); this.DBType = request.DBType; this.DBVersion = request.DBVersion; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.parameterGroupDesc = request.parameterGroupDesc; this.parameterGroupName = request.parameterGroupName; this.parameters = request.parameters; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** *

The type of the database engine. Only MySQL is supported.

*

This parameter is required.

* * example: *

MySQL

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

The version of the database engine. Valid values:

*
    *
  • 5.6
  • *
  • 5.7
  • *
  • 8.0
  • *
*

This parameter is required.

* * example: *

8.0

*/ public Builder DBVersion(String DBVersion) { this.putQueryParameter("DBVersion", DBVersion); this.DBVersion = DBVersion; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** *

The description of the parameter template. It must be 0 to 199 characters in length.

* * example: *

test_group

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

The name of the parameter template. The name must meet the following requirements:

*
    *
  • It can contain letters, digits, and underscores (_). It must start with a letter and cannot end with an underscore.**
  • *
  • It must be 8 to 64 characters in length.
  • *
*

This parameter is required.

* * example: *

test_group

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

The JSON string that consists of parameters and values. The parameter values are strings. Example: {"wait_timeout":"86400","innodb_old_blocks_time":"1000"}.

*
*

You can call the DescribeParameterTemplates operation to query the details of all parameters in the cluster of a specified engine version, such as the parameter name and valid values.

*
*

This parameter is required.

* * example: *

{"wait_timeout":"86400","innodb_old_blocks_time":"1000"}

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

The region ID.

*
*

You can call the DescribeRegions operation to query available regions.

*
*

This parameter is required.

* * example: *

cn-hangzhou

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

The ID of the resource group.

* * example: *

rg-**********

*/ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public CreateParameterGroupRequest build() { return new CreateParameterGroupRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy