public static final class ModifyDBClusterPrimaryZoneRequest.Builder extends Object
public ModifyDBClusterPrimaryZoneRequest.Builder DBClusterId(String DBClusterId)
> You can call the [DescribeDBClusters](~~173433~~) operation to query information about all clusters that are deployed in a specified region, such as the cluster ID.
public ModifyDBClusterPrimaryZoneRequest.Builder fromTimeService(Boolean fromTimeService)
* false: scheduled task * true: immediate task
public ModifyDBClusterPrimaryZoneRequest.Builder isSwitchOverForDisaster(String isSwitchOverForDisaster)
public ModifyDBClusterPrimaryZoneRequest.Builder ownerAccount(String ownerAccount)
public ModifyDBClusterPrimaryZoneRequest.Builder ownerId(Long ownerId)
public ModifyDBClusterPrimaryZoneRequest.Builder plannedEndTime(String plannedEndTime)
> * The latest start time must be at least 30 minutes later than the earliest start time. * If you specify the `PlannedStartTime` parameter but do not specify the PlannedEndTime parameter, the latest start time of the task is set to a value that is calculated by `the value of the PlannedEndTime parameter + 30 minutes` by default. For example, if you set the `PlannedStartTime` parameter to `2021-01-14T09:00:00Z` and you do not specify the PlannedEndTime parameter, the latest start time of the task is set to `2021-01-14T09:30:00Z`.
public ModifyDBClusterPrimaryZoneRequest.Builder plannedStartTime(String plannedStartTime)
> * The earliest start time of the task can be a point in time within the next 24 hours. For example, if the current time is `2021-01-14T09:00:00Z`, you can specify a point in time that ranges from `2021-01-14T09:00:00Z` to `2021-01-15T09:00:00Z`. * If you left this parameter empty, the primary zone is immediately switched.
public ModifyDBClusterPrimaryZoneRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyDBClusterPrimaryZoneRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyDBClusterPrimaryZoneRequest.Builder VPCId(String VPCId)
public ModifyDBClusterPrimaryZoneRequest.Builder vSwitchId(String vSwitchId)
> * For a PolarDB for Oracle or PolarDB for PostgreSQL cluster, this parameter is required. * For a PolarDB for MySQL cluster: - This parameter is optional if no vSwitches have been created in the destination zone. The default vSwitch is used. - This parameter is required if a vSwitch has been created in the destination zone.
public ModifyDBClusterPrimaryZoneRequest.Builder zoneId(String zoneId)
> You can call the [DescribeRegions](~~98041~~) operation to query available zones.
public ModifyDBClusterPrimaryZoneRequest.Builder zoneType(String zoneType)
public ModifyDBClusterPrimaryZoneRequest build()
Copyright © 2024. All rights reserved.