All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ess20220222.models.SetInstanceHealthRequest Maven / Gradle / Ivy

There is a newer version: 1.0.25
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ess20220222.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link SetInstanceHealthRequest} extends {@link RequestModel}
 *
 * 

SetInstanceHealthRequest

*/ public class SetInstanceHealthRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthStatus") @com.aliyun.core.annotation.Validation(required = true) private String healthStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; private SetInstanceHealthRequest(Builder builder) { super(builder); this.healthStatus = builder.healthStatus; this.instanceId = builder.instanceId; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; } public static Builder builder() { return new Builder(); } public static SetInstanceHealthRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return healthStatus */ public String getHealthStatus() { return this.healthStatus; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public static final class Builder extends Request.Builder { private String healthStatus; private String instanceId; private Long ownerId; private String resourceOwnerAccount; private Builder() { super(); } private Builder(SetInstanceHealthRequest request) { super(request); this.healthStatus = request.healthStatus; this.instanceId = request.instanceId; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; } /** * The health status of the instance. Valid values: *

* * * Healthy: sets the instance as healthy. * * Unhealthy: sets the instance as unhealthy. */ public Builder healthStatus(String healthStatus) { this.putQueryParameter("HealthStatus", healthStatus); this.healthStatus = healthStatus; return this; } /** * The ID of the instance. */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } @Override public SetInstanceHealthRequest build() { return new SetInstanceHealthRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy