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

com.aliyun.sdk.service.dysmsapi20170525.models.QuerySmsTemplateRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dysmsapi20170525.models;

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

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

QuerySmsTemplateRequest

*/ public class QuerySmsTemplateRequest extends Request { @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @Query @NameInMap("ResourceOwnerId") private Long resourceOwnerId; @Query @NameInMap("TemplateCode") @Validation(required = true) private String templateCode; private QuerySmsTemplateRequest(Builder builder) { super(builder); this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.templateCode = builder.templateCode; } public static Builder builder() { return new Builder(); } public static QuerySmsTemplateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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 templateCode */ public String getTemplateCode() { return this.templateCode; } public static final class Builder extends Request.Builder { private Long ownerId; private String resourceOwnerAccount; private Long resourceOwnerId; private String templateCode; private Builder() { super(); } private Builder(QuerySmsTemplateRequest response) { super(response); this.ownerId = response.ownerId; this.resourceOwnerAccount = response.resourceOwnerAccount; this.resourceOwnerId = response.resourceOwnerId; this.templateCode = response.templateCode; } /** * 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; } /** * TemplateCode. */ public Builder templateCode(String templateCode) { this.putQueryParameter("TemplateCode", templateCode); this.templateCode = templateCode; return this; } @Override public QuerySmsTemplateRequest build() { return new QuerySmsTemplateRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy