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

com.aliyun.sdk.service.ververica20220718.models.CreateDeploymentRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ververica20220718.models;

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

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

CreateDeploymentRequest

*/ public class CreateDeploymentRequest extends Request { @com.aliyun.core.annotation.Path @com.aliyun.core.annotation.NameInMap("namespace") @com.aliyun.core.annotation.Validation(required = true) private String namespace; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("body") @com.aliyun.core.annotation.Validation(required = true) private Deployment body; @com.aliyun.core.annotation.Header @com.aliyun.core.annotation.NameInMap("workspace") @com.aliyun.core.annotation.Validation(required = true) private String workspace; private CreateDeploymentRequest(Builder builder) { super(builder); this.namespace = builder.namespace; this.body = builder.body; this.workspace = builder.workspace; } public static Builder builder() { return new Builder(); } public static CreateDeploymentRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return namespace */ public String getNamespace() { return this.namespace; } /** * @return body */ public Deployment getBody() { return this.body; } /** * @return workspace */ public String getWorkspace() { return this.workspace; } public static final class Builder extends Request.Builder { private String namespace; private Deployment body; private String workspace; private Builder() { super(); } private Builder(CreateDeploymentRequest request) { super(request); this.namespace = request.namespace; this.body = request.body; this.workspace = request.workspace; } /** * The name of the namespace. */ public Builder namespace(String namespace) { this.putPathParameter("namespace", namespace); this.namespace = namespace; return this; } /** * The content of the deployment. */ public Builder body(Deployment body) { this.putBodyParameter("body", body); this.body = body; return this; } /** * The workspace ID. */ public Builder workspace(String workspace) { this.putHeaderParameter("workspace", workspace); this.workspace = workspace; return this; } @Override public CreateDeploymentRequest build() { return new CreateDeploymentRequest(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy