public class AddShortUrlRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
effectiveDays
The validity period of the short URL.
|
Long |
ownerId |
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
shortUrlName
The service name of the short URL.
|
String |
sourceUrl
The source URL.
|
| 构造器和说明 |
|---|
AddShortUrlRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AddShortUrlRequest |
build(Map<String,?> map) |
String |
getEffectiveDays() |
Long |
getOwnerId() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
String |
getShortUrlName() |
String |
getSourceUrl() |
AddShortUrlRequest |
setEffectiveDays(String effectiveDays) |
AddShortUrlRequest |
setOwnerId(Long ownerId) |
AddShortUrlRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
AddShortUrlRequest |
setResourceOwnerId(Long resourceOwnerId) |
AddShortUrlRequest |
setShortUrlName(String shortUrlName) |
AddShortUrlRequest |
setSourceUrl(String sourceUrl) |
@NameInMap(value="EffectiveDays") public String effectiveDays
The validity period of the short URL. Unit: days. The maximum validity period is 90 days.
This parameter is required.
example:7
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="ShortUrlName") public 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.
@NameInMap(value="SourceUrl") public String sourceUrl
The source URL. The URL cannot exceed 1,000 characters in length.
This parameter is required.
example:public static AddShortUrlRequest build(Map<String,?> map) throws Exception
Exceptionpublic AddShortUrlRequest setEffectiveDays(String effectiveDays)
public String getEffectiveDays()
public AddShortUrlRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public AddShortUrlRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public AddShortUrlRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public AddShortUrlRequest setShortUrlName(String shortUrlName)
public String getShortUrlName()
public AddShortUrlRequest setSourceUrl(String sourceUrl)
public String getSourceUrl()
Copyright © 2024. All rights reserved.