public static final class AddAddressBookRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddAddressBookRequest.Builder |
addressList(String addressList)
The addresses that you want to add to the address book.
|
AddAddressBookRequest.Builder |
autoAddTagEcs(String autoAddTagEcs)
Specifies whether to automatically add public IP addresses of ECS instances to the address book if the instances match the specified tags.
|
AddAddressBookRequest |
build() |
AddAddressBookRequest.Builder |
description(String description)
The description of the address book.
|
AddAddressBookRequest.Builder |
groupName(String groupName)
The name of the address book.
|
AddAddressBookRequest.Builder |
groupType(String groupType)
The type of the address book.
|
AddAddressBookRequest.Builder |
lang(String lang)
The language of the content within the response.
|
AddAddressBookRequest.Builder |
sourceIp(String sourceIp)
The source IP address of the request.
|
AddAddressBookRequest.Builder |
tagList(List<AddAddressBookRequest.TagList> tagList)
The ECS tags that you want to match.
|
AddAddressBookRequest.Builder |
tagRelation(String tagRelation)
The logical relation among the ECS tags that you want to match.
|
public AddAddressBookRequest.Builder addressList(String addressList)
> If you set GroupType to `ip`, `port` or `domain`, you must specify the AddressList parameter. > > * If you set GroupType to `ip`, you must add IP addresses to the address book. Example: 192.0.XX.XX/32, 192.0.XX.XX/24. > * If you set GroupType to `port`, you must add port numbers or port ranges to the address book. Example: 80, 100/200. > * If you set GroupType to `domain`, you must add domain names to the address book. Example: example.com, aliyundoc.com.
public AddAddressBookRequest.Builder autoAddTagEcs(String autoAddTagEcs)
* **1**: yes * **0**: no (default)
public AddAddressBookRequest.Builder description(String description)
public AddAddressBookRequest.Builder groupName(String groupName)
public AddAddressBookRequest.Builder groupType(String groupType)
* **ip**: IP address book * **domain**: domain address book * **port**: port address book * **tag**: ECS tag-based address book
public AddAddressBookRequest.Builder lang(String lang)
* **zh**: Chinese (default) * **en**: English
public AddAddressBookRequest.Builder sourceIp(String sourceIp)
public AddAddressBookRequest.Builder tagList(List<AddAddressBookRequest.TagList> tagList)
public AddAddressBookRequest.Builder tagRelation(String tagRelation)
* **and**: Only the public IP addresses of ECS instances that match all the specified tags can be added to the address book. This is the default value. * **or**: The public IP addresses of ECS instances that match one of the specified tags can be added to the address book.
public AddAddressBookRequest build()
Copyright © 2023. All rights reserved.