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

com.aliyun.sdk.service.dytnsapi20200217.models.PhoneNumberStatusForAccountRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dytnsapi20200217.models;

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

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

PhoneNumberStatusForAccountRequest

*/ public class PhoneNumberStatusForAccountRequest 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") @com.aliyun.core.annotation.Validation(required = true) 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 PhoneNumberStatusForAccountRequest(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 PhoneNumberStatusForAccountRequest 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(PhoneNumberStatusForAccountRequest 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, you can obtain the authorization code (also known as authorization ID).

*
*

This parameter is required.

* * example: *

Dd1r***4id

*/ 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, specify an 11-digit phone number in plaintext.
  • *
  • If the value of Mask is MD5, specify a 32-bit string that is encrypted by using MD5.
  • *
  • If the value of Mask is SHA256, specify a 64-bit string that is encrypted by using SHA256.
  • *
*
*

Letters in the encrypted strings are not case-sensitive.

*
*

This parameter is required.

* * example: *

139****1234

*/ 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
  • *
*

This parameter is required.

* * example: *

NORMAL

*/ 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 PhoneNumberStatusForAccountRequest build() { return new PhoneNumberStatusForAccountRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy