public static final class AddPrivateRegistryRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddPrivateRegistryRequest |
build() |
AddPrivateRegistryRequest.Builder |
domainName(String domainName)
The domain name of the image repository.
|
AddPrivateRegistryRequest.Builder |
extraParam(String extraParam)
The additional parameter of the image repository.
|
AddPrivateRegistryRequest.Builder |
netType(Long netType)
The network type.
|
AddPrivateRegistryRequest.Builder |
password(String password)
The password that is used to log on to the image repository.
|
AddPrivateRegistryRequest.Builder |
port(Integer port)
The port number.
|
AddPrivateRegistryRequest.Builder |
protocolType(Long protocolType)
The type of the protocol.
|
AddPrivateRegistryRequest.Builder |
registryHostIp(String registryHostIp)
The IP address of the image repository.
|
AddPrivateRegistryRequest.Builder |
registryRegionId(String registryRegionId)
The region ID.
|
AddPrivateRegistryRequest.Builder |
registryType(String registryType)
The type of the private image repository.
|
AddPrivateRegistryRequest.Builder |
registryVersion(String registryVersion)
The version of the image repository.
|
AddPrivateRegistryRequest.Builder |
transPerHour(Integer transPerHour)
The number of images that are scanned per hour.
|
AddPrivateRegistryRequest.Builder |
userName(String userName)
The username that is used to log on to the image repository.
|
AddPrivateRegistryRequest.Builder |
vpcId(String vpcId)
The ID of the VPC.
|
public AddPrivateRegistryRequest.Builder domainName(String domainName)
The domain name of the image repository.
This parameter is required.
example:example.com
public AddPrivateRegistryRequest.Builder extraParam(String extraParam)
The additional parameter of the image repository. This parameter is required when you set the RegistryType parameter to quay. Valid values:
[{"namespace":"aa","authToken":"aa"}]
public AddPrivateRegistryRequest.Builder netType(Long netType)
The network type. Valid values:
This parameter is required.
example:2
public AddPrivateRegistryRequest.Builder password(String password)
The password that is used to log on to the image repository.
This parameter is required.
example:public AddPrivateRegistryRequest.Builder port(Integer port)
The port number.
example:80
public AddPrivateRegistryRequest.Builder protocolType(Long protocolType)
The type of the protocol. Valid values:
This parameter is required.
example:2
public AddPrivateRegistryRequest.Builder registryHostIp(String registryHostIp)
The IP address of the image repository.
This parameter is required.
example:114.55.**.**
public AddPrivateRegistryRequest.Builder registryRegionId(String registryRegionId)
The region ID.
You can call the ListImageRegistryRegion operation to query the IDs of supported regions.
This parameter is required.
example:cn-hangzhou
public AddPrivateRegistryRequest.Builder registryType(String registryType)
The type of the private image repository. Valid values:
This parameter is required.
example:harbor
public AddPrivateRegistryRequest.Builder registryVersion(String registryVersion)
The version of the image repository. Valid values:
This parameter is required.
example:V2
public AddPrivateRegistryRequest.Builder transPerHour(Integer transPerHour)
The number of images that are scanned per hour.
example:10
public AddPrivateRegistryRequest.Builder userName(String userName)
The username that is used to log on to the image repository.
This parameter is required.
example:xxxxx
public AddPrivateRegistryRequest.Builder vpcId(String vpcId)
The ID of the VPC.
example:vpc-wz9hs3e5*******908kd
public AddPrivateRegistryRequest build()
Copyright © 2026. All rights reserved.