public static final class AddShortUrlRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddShortUrlRequest |
build() |
AddShortUrlRequest.Builder |
effectiveDays(String effectiveDays)
The validity period of the short URL.
|
AddShortUrlRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
AddShortUrlRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
AddShortUrlRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
AddShortUrlRequest.Builder |
shortUrlName(String shortUrlName)
The service name of the short URL.
|
AddShortUrlRequest.Builder |
sourceUrl(String sourceUrl)
The source URL.
|
public AddShortUrlRequest.Builder effectiveDays(String effectiveDays)
The validity period of the short URL. Unit: days. The maximum validity period is 90 days.
This parameter is required.
example:7
public AddShortUrlRequest.Builder ownerId(Long ownerId)
public AddShortUrlRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public AddShortUrlRequest.Builder resourceOwnerId(Long resourceOwnerId)
public AddShortUrlRequest.Builder shortUrlName(String shortUrlName)
The service name of the short URL. The name cannot exceed 13 characters in length.
This parameter is required.
example:The Alibaba Cloud Short Link service.
public AddShortUrlRequest.Builder sourceUrl(String sourceUrl)
The source URL. The URL cannot exceed 1,000 characters in length.
This parameter is required.
example:public AddShortUrlRequest build()
Copyright © 2026. All rights reserved.