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

com.aliyun.sdk.service.cs20151215.models.CreateEdgeMachineRequest Maven / Gradle / Ivy

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

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

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

CreateEdgeMachineRequest

*/ public class CreateEdgeMachineRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("hostname") @com.aliyun.core.annotation.Validation(required = true) private String hostname; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("model") @com.aliyun.core.annotation.Validation(required = true) private String model; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("sn") @com.aliyun.core.annotation.Validation(required = true) private String sn; private CreateEdgeMachineRequest(Builder builder) { super(builder); this.hostname = builder.hostname; this.model = builder.model; this.sn = builder.sn; } public static Builder builder() { return new Builder(); } public static CreateEdgeMachineRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hostname */ public String getHostname() { return this.hostname; } /** * @return model */ public String getModel() { return this.model; } /** * @return sn */ public String getSn() { return this.sn; } public static final class Builder extends Request.Builder { private String hostname; private String model; private String sn; private Builder() { super(); } private Builder(CreateEdgeMachineRequest request) { super(request); this.hostname = request.hostname; this.model = request.model; this.sn = request.sn; } /** * The `hostname` of the cloud-native box. *

* * > After the cloud-native box is activated, the `hostname` is automatically modified. The `hostname` is prefixed with the model and the prefix is followed by a random string. */ public Builder hostname(String hostname) { this.putBodyParameter("hostname", hostname); this.hostname = hostname; return this; } /** * The model of the cloud-native box. */ public Builder model(String model) { this.putBodyParameter("model", model); this.model = model; return this; } /** * The serial number of the cloud-native box. */ public Builder sn(String sn) { this.putBodyParameter("sn", sn); this.sn = sn; return this; } @Override public CreateEdgeMachineRequest build() { return new CreateEdgeMachineRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy