
com.aliyun.sdk.service.dytnsapi20200217.models.PhoneNumberStatusForPublicRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dytnsapi20200217.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link PhoneNumberStatusForPublicRequest} extends {@link RequestModel}
*
* PhoneNumberStatusForPublicRequest
*/
public class PhoneNumberStatusForPublicRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuthCode")
@com.aliyun.core.annotation.Validation(required = true)
private String authCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InputNumber")
private String inputNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Mask")
@com.aliyun.core.annotation.Validation(required = true)
private String mask;
@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;
private PhoneNumberStatusForPublicRequest(Builder builder) {
super(builder);
this.authCode = builder.authCode;
this.inputNumber = builder.inputNumber;
this.mask = builder.mask;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static PhoneNumberStatusForPublicRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return authCode
*/
public String getAuthCode() {
return this.authCode;
}
/**
* @return inputNumber
*/
public String getInputNumber() {
return this.inputNumber;
}
/**
* @return mask
*/
public String getMask() {
return this.mask;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @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 authCode;
private String inputNumber;
private String mask;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(PhoneNumberStatusForPublicRequest request) {
super(request);
this.authCode = request.authCode;
this.inputNumber = request.inputNumber;
this.mask = request.mask;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* The authorization code.
*
*
* > On the **My Applications** page in the [Cell Phone Number Service console](https://dytns.console.aliyun.com/analysis/apply), you can obtain the authorization ID.
*/
public Builder authCode(String authCode) {
this.putQueryParameter("AuthCode", authCode);
this.authCode = authCode;
return this;
}
/**
* The phone number to be queried.
*
*
* * If the value of Mask is NORMAL, the value of this field is an 11-digit phone number.
* * If the value of Mask is MD5, the value of this field is a 32-bit encrypted string.
* * If the value of Mask is SHA256, the value of this field is a 64-bit encrypted string.
*
* > Letters in the encrypted strings are not case-sensitive.
*/
public Builder inputNumber(String inputNumber) {
this.putQueryParameter("InputNumber", inputNumber);
this.inputNumber = inputNumber;
return this;
}
/**
* The encryption method of the phone number. Valid values:
*
*
* * **NORMAL**: The phone number is not encrypted.
* * **MD5**
* * **SHA256**
*/
public Builder mask(String mask) {
this.putQueryParameter("Mask", mask);
this.mask = mask;
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;
}
@Override
public PhoneNumberStatusForPublicRequest build() {
return new PhoneNumberStatusForPublicRequest(this);
}
}
}