com.aliyun.ess20220222.models.SetInstanceHealthRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ess20220222 Show documentation
Show all versions of ess20220222 Show documentation
Alibaba Cloud Auto Scaling (20220222) SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ess20220222.models;
import com.aliyun.tea.*;
public class SetInstanceHealthRequest extends TeaModel {
/**
* The health status of the instance. Valid values:
*
* - Healthy: sets the instance as healthy.
* - Unhealthy: sets the instance as unhealthy.
*
* This parameter is required.
*
* example:
* Healthy
*/
@NameInMap("HealthStatus")
public String healthStatus;
/**
* The ID of the instance.
* This parameter is required.
*
* example:
* i-bp1ap6bro51a7fsa****
*/
@NameInMap("InstanceId")
public String instanceId;
@NameInMap("OwnerId")
public Long ownerId;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
public static SetInstanceHealthRequest build(java.util.Map map) throws Exception {
SetInstanceHealthRequest self = new SetInstanceHealthRequest();
return TeaModel.build(map, self);
}
public SetInstanceHealthRequest setHealthStatus(String healthStatus) {
this.healthStatus = healthStatus;
return this;
}
public String getHealthStatus() {
return this.healthStatus;
}
public SetInstanceHealthRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public SetInstanceHealthRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public SetInstanceHealthRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
}