
com.aliyun.sdk.service.waf_openapi20211001.models.CreateHybridCloudGroupRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.waf_openapi20211001.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateHybridCloudGroupRequest} extends {@link RequestModel}
*
* CreateHybridCloudGroupRequest
*/
public class CreateHybridCloudGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackSourceMark")
private String backSourceMark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private Long clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupName")
@com.aliyun.core.annotation.Validation(required = true)
private String groupName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupType")
@com.aliyun.core.annotation.Validation(required = true)
private String groupType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalanceIp")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalanceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LocationCode")
private String locationCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId")
private String resourceManagerResourceGroupId;
private CreateHybridCloudGroupRequest(Builder builder) {
super(builder);
this.backSourceMark = builder.backSourceMark;
this.clusterId = builder.clusterId;
this.groupName = builder.groupName;
this.groupType = builder.groupType;
this.instanceId = builder.instanceId;
this.loadBalanceIp = builder.loadBalanceIp;
this.locationCode = builder.locationCode;
this.regionId = builder.regionId;
this.remark = builder.remark;
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static CreateHybridCloudGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backSourceMark
*/
public String getBackSourceMark() {
return this.backSourceMark;
}
/**
* @return clusterId
*/
public Long getClusterId() {
return this.clusterId;
}
/**
* @return groupName
*/
public String getGroupName() {
return this.groupName;
}
/**
* @return groupType
*/
public String getGroupType() {
return this.groupType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return loadBalanceIp
*/
public String getLoadBalanceIp() {
return this.loadBalanceIp;
}
/**
* @return locationCode
*/
public String getLocationCode() {
return this.locationCode;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return resourceManagerResourceGroupId
*/
public String getResourceManagerResourceGroupId() {
return this.resourceManagerResourceGroupId;
}
public static final class Builder extends Request.Builder {
private String backSourceMark;
private Long clusterId;
private String groupName;
private String groupType;
private String instanceId;
private String loadBalanceIp;
private String locationCode;
private String regionId;
private String remark;
private String resourceManagerResourceGroupId;
private Builder() {
super();
}
private Builder(CreateHybridCloudGroupRequest request) {
super(request);
this.backSourceMark = request.backSourceMark;
this.clusterId = request.clusterId;
this.groupName = request.groupName;
this.groupType = request.groupType;
this.instanceId = request.instanceId;
this.loadBalanceIp = request.loadBalanceIp;
this.locationCode = request.locationCode;
this.regionId = request.regionId;
this.remark = request.remark;
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
}
/**
* The region in which the node resides. Specify the parameter in the Carrier code-Continent code-City code format.
*
* example:
* aliyun-asiapacific-beijing
*/
public Builder backSourceMark(String backSourceMark) {
this.putQueryParameter("BackSourceMark", backSourceMark);
this.backSourceMark = backSourceMark;
return this;
}
/**
* The ID of the hybrid cloud cluster.
* This parameter is required.
*
* example:
* 1
*/
public Builder clusterId(Long clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* The name of the node group.
* This parameter is required.
*/
public Builder groupName(String groupName) {
this.putQueryParameter("GroupName", groupName);
this.groupName = groupName;
return this;
}
/**
* The type of the node group. Valid values:
*
* - protect
* - control
* - storage
* - controlStorage
*
* This parameter is required.
*
* example:
* protect
*/
public Builder groupType(String groupType) {
this.putQueryParameter("GroupType", groupType);
this.groupType = groupType;
return this;
}
/**
* The ID of the WAF instance.
*
* You can call the DescribeInstance operation to query the ID of the WAF instance.
*
* This parameter is required.
*
* example:
* waf-cn-n6w***x52m
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The IP address of the server used for load balancing.
* This parameter is required.
*
* example:
* 3.3.3.3
*/
public Builder loadBalanceIp(String loadBalanceIp) {
this.putQueryParameter("LoadBalanceIp", loadBalanceIp);
this.loadBalanceIp = loadBalanceIp;
return this;
}
/**
* The region in which the node resides. Specify the parameter in the Carrier code-Continent code-City code format.
*
* example:
* 0-410-0
*/
public Builder locationCode(String locationCode) {
this.putQueryParameter("LocationCode", locationCode);
this.locationCode = locationCode;
return this;
}
/**
* The region in which the WAF instance is deployed. Valid values:
*
* - cn-hangzhou: Chinese mainland.
* - ap-southeast-1: outside the Chinese mainland.
*
*
* example:
* cn-hangzhou
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* The remarks.
*/
public Builder remark(String remark) {
this.putQueryParameter("Remark", remark);
this.remark = remark;
return this;
}
/**
* The ID of the Alibaba Cloud resource group.
*
* example:
* rg-acfm***q
*/
public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) {
this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId);
this.resourceManagerResourceGroupId = resourceManagerResourceGroupId;
return this;
}
@Override
public CreateHybridCloudGroupRequest build() {
return new CreateHybridCloudGroupRequest(this);
}
}
}