
com.aliyun.sdk.service.serverless20210924.models.UpdateApplicationRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.serverless20210924.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link UpdateApplicationRequest} extends {@link RequestModel}
*
* UpdateApplicationRequest
*/
public class UpdateApplicationRequest extends Request {
@Path
@NameInMap("name")
@Validation(required = true)
private String name;
@Body
@NameInMap("body")
private Application body;
private UpdateApplicationRequest(Builder builder) {
super(builder);
this.name = builder.name;
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static UpdateApplicationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return body
*/
public Application getBody() {
return this.body;
}
public static final class Builder extends Request.Builder {
private String name;
private Application body;
private Builder() {
super();
}
private Builder(UpdateApplicationRequest request) {
super(request);
this.name = request.name;
this.body = request.body;
}
/**
* 应用名称
*/
public Builder name(String name) {
this.putPathParameter("name", name);
this.name = name;
return this;
}
/**
* body.
*/
public Builder body(Application body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
@Override
public UpdateApplicationRequest build() {
return new UpdateApplicationRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy