public static final class CreateDhcpOptionsSetRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateDhcpOptionsSetRequest |
build() |
CreateDhcpOptionsSetRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateDhcpOptionsSetRequest.Builder |
dhcpOptionsSetDescription(String dhcpOptionsSetDescription)
The description of the DHCP options set.
|
CreateDhcpOptionsSetRequest.Builder |
dhcpOptionsSetName(String dhcpOptionsSetName)
The name of the DHCP options set.
|
CreateDhcpOptionsSetRequest.Builder |
domainName(String domainName)
The root domain.
|
CreateDhcpOptionsSetRequest.Builder |
domainNameServers(String domainNameServers)
The IP address of the DNS server.
|
CreateDhcpOptionsSetRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run, without performing the actual request.
|
CreateDhcpOptionsSetRequest.Builder |
ipv6LeaseTime(String ipv6LeaseTime)
The lease time of the IPv6 addresses for the DHCP options set.
|
CreateDhcpOptionsSetRequest.Builder |
leaseTime(String leaseTime)
The lease time of the IPv4 addresses for the DHCP options set.
|
CreateDhcpOptionsSetRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateDhcpOptionsSetRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateDhcpOptionsSetRequest.Builder |
regionId(String regionId)
The region to which the DHCP options set belongs.
|
CreateDhcpOptionsSetRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the DHCP options set belongs.
|
CreateDhcpOptionsSetRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateDhcpOptionsSetRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateDhcpOptionsSetRequest.Builder |
tag(List<CreateDhcpOptionsSetRequest.Tag> tag)
The tag of the resource.
|
public CreateDhcpOptionsSetRequest.Builder clientToken(String clientToken)
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters. > If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
public CreateDhcpOptionsSetRequest.Builder dhcpOptionsSetDescription(String dhcpOptionsSetDescription)
The description must be 1 to 256 characters in length. It must start with a letter and cannot start with `http://` or `https://`.
public CreateDhcpOptionsSetRequest.Builder dhcpOptionsSetName(String dhcpOptionsSetName)
The name must be 1 to 128 characters in length and can contain letters, digits, underscores (\_), and hyphens (-). It must start with a letter.
public CreateDhcpOptionsSetRequest.Builder domainName(String domainName)
After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
public CreateDhcpOptionsSetRequest.Builder domainNameServers(String domainNameServers)
> If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
public CreateDhcpOptionsSetRequest.Builder dryRun(Boolean dryRun)
**true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. **false** (default): performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
public CreateDhcpOptionsSetRequest.Builder ipv6LeaseTime(String ipv6LeaseTime)
* If you use hours as the unit, valid values are **24h to 1176h** and **87600h to 175200h**. Default value: **87600h**. * If you use days as the unit, valid values are **1d to 49d** and **3650d to 7300d**. Default value: **3650d**. > When you enter a value, you must also specify the unit.
public CreateDhcpOptionsSetRequest.Builder leaseTime(String leaseTime)
* If you use hours as the unit, valid values are **24h to 1176h** and **87600h to 175200h**. Default value: **87600h**. * If you use days as the unit, valid values are **1d to 49d** and **3650d to 7300d**. Default value: **3650d**. > When you enter a value, you must also specify the unit.
public CreateDhcpOptionsSetRequest.Builder ownerAccount(String ownerAccount)
public CreateDhcpOptionsSetRequest.Builder ownerId(Long ownerId)
public CreateDhcpOptionsSetRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateDhcpOptionsSetRequest.Builder resourceGroupId(String resourceGroupId)
public CreateDhcpOptionsSetRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateDhcpOptionsSetRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateDhcpOptionsSetRequest.Builder tag(List<CreateDhcpOptionsSetRequest.Tag> tag)
public CreateDhcpOptionsSetRequest build()
Copyright © 2024. All rights reserved.