com.aliyun.sdk.service.bpstudio20210931.models.GetTemplateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-bpstudio20210931 Show documentation
Show all versions of alibabacloud-bpstudio20210931 Show documentation
Alibaba Cloud BPStudio (20210931) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.bpstudio20210931.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link GetTemplateRequest} extends {@link RequestModel}
*
* GetTemplateRequest
*/
public class GetTemplateRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Region")
private String region;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private String templateId;
private GetTemplateRequest(Builder builder) {
super(builder);
this.region = builder.region;
this.resourceGroupId = builder.resourceGroupId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static GetTemplateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return region
*/
public String getRegion() {
return this.region;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder {
private String region;
private String resourceGroupId;
private String templateId;
private Builder() {
super();
}
private Builder(GetTemplateRequest request) {
super(request);
this.region = request.region;
this.resourceGroupId = request.resourceGroupId;
this.templateId = request.templateId;
}
/**
* Template Area
*/
public Builder region(String region) {
this.putBodyParameter("Region", region);
this.region = region;
return this;
}
/**
* ResourceGroup ID
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putBodyParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* Template ID
*/
public Builder templateId(String templateId) {
this.putBodyParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public GetTemplateRequest build() {
return new GetTemplateRequest(this);
}
}
}