public static final class DescribeInstanceHistoryEventsRequest.Builder extends Object
public DescribeInstanceHistoryEventsRequest.Builder eventPublishTime(DescribeInstanceHistoryEventsRequest.EventPublishTime eventPublishTime)
public DescribeInstanceHistoryEventsRequest.Builder notBefore(DescribeInstanceHistoryEventsRequest.NotBefore notBefore)
public DescribeInstanceHistoryEventsRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeInstanceHistoryEventsRequest.Builder eventCycleStatus(String eventCycleStatus)
* Scheduled * Avoided * Executing * Executed * Canceled * Failed * Inquiring
public DescribeInstanceHistoryEventsRequest.Builder eventId(List<String> eventId)
public DescribeInstanceHistoryEventsRequest.Builder eventType(String eventType)
* SystemMaintenance.Reboot: The instance is restarted due to system maintenance. * SystemMaintenance.Redeploy: The instance is redeployed due to system maintenance. * SystemFailure.Reboot: The instance is restarted due to a system failure. * SystemFailure.Redeploy: The instance is redeployed due to a system failure. * SystemFailure.Delete: The instance is released due to an instance creation failure. * InstanceFailure.Reboot: The instance is restarted due to an instance failure. * InstanceExpiration.Stop: The instance is stopped due to subscription expiration. * InstanceExpiration.Delete: The instance is released due to subscription expiration. * AccountUnbalanced.Stop: The pay-as-you-go instance is stopped due to an overdue payment. * AccountUnbalanced.Delete: The pay-as-you-go instance is released due to an overdue payment. > For more information, see [Overview](~~66574~~). The values of this parameter are applicable only to instance system events, but not to disk system events.
public DescribeInstanceHistoryEventsRequest.Builder impactLevel(String impactLevel)
public DescribeInstanceHistoryEventsRequest.Builder instanceEventCycleStatus(List<String> instanceEventCycleStatus)
* Scheduled * Avoided * Executing * Executed * Canceled * Failed * Inquiring
public DescribeInstanceHistoryEventsRequest.Builder instanceEventType(List<String> instanceEventType)
* SystemMaintenance.Reboot: The instance is restarted due to system maintenance. * SystemMaintenance.Redeploy: The instance is redeployed due to system maintenance. * SystemFailure.Reboot: The instance is restarted due to a system failure. * SystemFailure.Redeploy: The instance is redeployed due to a system failure. * SystemFailure.Delete: The instance is released due to an instance creation failure. * InstanceFailure.Reboot: The instance is restarted due to an instance failure. * InstanceExpiration.Stop: The instance is stopped due to subscription expiration. * InstanceExpiration.Delete: The instance is released due to subscription expiration. * AccountUnbalanced.Stop: The pay-as-you-go instance is stopped due to an overdue payment. * AccountUnbalanced.Delete: The pay-as-you-go instance is released due to an overdue payment. > For more information, see [Overview](~~66574~~). The values of this parameter are applicable only to instance system events, but not to disk system events.
public DescribeInstanceHistoryEventsRequest.Builder instanceId(String instanceId)
public DescribeInstanceHistoryEventsRequest.Builder ownerAccount(String ownerAccount)
public DescribeInstanceHistoryEventsRequest.Builder ownerId(Long ownerId)
public DescribeInstanceHistoryEventsRequest.Builder pageNumber(Integer pageNumber)
Default value: 1.
public DescribeInstanceHistoryEventsRequest.Builder pageSize(Integer pageSize)
Default value: 10.
public DescribeInstanceHistoryEventsRequest.Builder regionId(String regionId)
public DescribeInstanceHistoryEventsRequest.Builder resourceGroupId(String resourceGroupId)
public DescribeInstanceHistoryEventsRequest.Builder resourceId(List<String> resourceId)
* When the `ResourceType` parameter is set to instance, the ResourceId.N parameter specifies the ID of instance N. * When the `ResourceType` parameter is set to ddh, the ResourceId.N parameter specifies the ID of dedicated host N. * When the `ResourceType` parameter is set to managedhost, the ResourceId.N parameter specifies the ID of physical machine N in a smart hosting pool. If this parameter is not specified, the system events of all resources of the resource type specified by `ResourceType` within the region specified by `RegionId` are queried. > We recommend that you use the `ResourceId.N` parameter to specify one or more resource IDs. If you specify both the ` ResourceId.N `and `InstanceId` parameters, the `ResourceId.N` parameter takes precedence by default.
public DescribeInstanceHistoryEventsRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeInstanceHistoryEventsRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeInstanceHistoryEventsRequest.Builder resourceType(String resourceType)
* instance: Elastic Compute Service (ECS) instance * ddh: dedicated host * managehost: physical machine in a smart hosting pool Default value: instance.
public DescribeInstanceHistoryEventsRequest.Builder tag(List<DescribeInstanceHistoryEventsRequest.Tag> tag)
public DescribeInstanceHistoryEventsRequest build()
Copyright © 2023. All rights reserved.