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

com.aliyun.sdk.service.dm20170622.models.DescTemplateRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dm20170622.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link DescTemplateRequest} extends {@link RequestModel}
 *
 * 

DescTemplateRequest

*/ public class DescTemplateRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FromType") @com.aliyun.core.annotation.Validation(maximum = 2, minimum = 1) private Integer fromType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateId") @com.aliyun.core.annotation.Validation(required = true) private Integer templateId; private DescTemplateRequest(Builder builder) { super(builder); this.fromType = builder.fromType; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.templateId = builder.templateId; } public static Builder builder() { return new Builder(); } public static DescTemplateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return fromType */ public Integer getFromType() { return this.fromType; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return templateId */ public Integer getTemplateId() { return this.templateId; } public static final class Builder extends Request.Builder { private Integer fromType; private Long ownerId; private String resourceOwnerAccount; private Long resourceOwnerId; private Integer templateId; private Builder() { super(); } private Builder(DescTemplateRequest request) { super(request); this.fromType = request.fromType; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.templateId = request.templateId; } /** * FromType. */ public Builder fromType(Integer fromType) { this.putQueryParameter("FromType", fromType); this.fromType = fromType; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; 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; } /** * TemplateId. */ public Builder templateId(Integer templateId) { this.putQueryParameter("TemplateId", templateId); this.templateId = templateId; return this; } @Override public DescTemplateRequest build() { return new DescTemplateRequest(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy