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

com.aliyun.sdk.service.cloudapi20160714.models.ImportSwaggerRequest Maven / Gradle / Ivy

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

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

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

ImportSwaggerRequest

*/ public class ImportSwaggerRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Data") @com.aliyun.core.annotation.Validation(required = true) private String data; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DataFormat") @com.aliyun.core.annotation.Validation(required = true) private String dataFormat; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GlobalCondition") private java.util.Map globalCondition; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupId") @com.aliyun.core.annotation.Validation(required = true) private String groupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Overwrite") @com.aliyun.core.annotation.Validation(required = true) private Boolean overwrite; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityToken") private String securityToken; private ImportSwaggerRequest(Builder builder) { super(builder); this.data = builder.data; this.dataFormat = builder.dataFormat; this.dryRun = builder.dryRun; this.globalCondition = builder.globalCondition; this.groupId = builder.groupId; this.overwrite = builder.overwrite; this.securityToken = builder.securityToken; } public static Builder builder() { return new Builder(); } public static ImportSwaggerRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return data */ public String getData() { return this.data; } /** * @return dataFormat */ public String getDataFormat() { return this.dataFormat; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return globalCondition */ public java.util.Map getGlobalCondition() { return this.globalCondition; } /** * @return groupId */ public String getGroupId() { return this.groupId; } /** * @return overwrite */ public Boolean getOverwrite() { return this.overwrite; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } public static final class Builder extends Request.Builder { private String data; private String dataFormat; private Boolean dryRun; private java.util.Map globalCondition; private String groupId; private Boolean overwrite; private String securityToken; private Builder() { super(); } private Builder(ImportSwaggerRequest request) { super(request); this.data = request.data; this.dataFormat = request.dataFormat; this.dryRun = request.dryRun; this.globalCondition = request.globalCondition; this.groupId = request.groupId; this.overwrite = request.overwrite; this.securityToken = request.securityToken; } /** *

The Swagger text content.

*

This parameter is required.

* * example: *

"A Swagger API definition in YAML"

*/ public Builder data(String data) { this.putBodyParameter("Data", data); this.data = data; return this; } /** *

The Swagger text format:

*
    *
  • json
  • *
  • yaml
  • *
*

This parameter is required.

* * example: *

yaml

*/ public Builder dataFormat(String dataFormat) { this.putQueryParameter("DataFormat", dataFormat); this.dataFormat = dataFormat; return this; } /** *

The pre-inspection.

* * example: *

true

*/ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** *

The global conditions.

* * example: *

{}

*/ public Builder globalCondition(java.util.Map globalCondition) { String globalConditionShrink = shrink(globalCondition, "GlobalCondition", "json"); this.putQueryParameter("GlobalCondition", globalConditionShrink); this.globalCondition = globalCondition; return this; } /** *

The ID of the API group to which the Swagger is imported.

*

This parameter is required.

* * example: *

0009db9c828549768a200320714b8930

*/ public Builder groupId(String groupId) { this.putQueryParameter("GroupId", groupId); this.groupId = groupId; return this; } /** *

Specifies whether to overwrite the existing API.

*

APIs with the same HTTP request type and backend request path are considered the same.

*

This parameter is required.

* * example: *

true

*/ public Builder overwrite(Boolean overwrite) { this.putQueryParameter("Overwrite", overwrite); this.overwrite = overwrite; return this; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putQueryParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } @Override public ImportSwaggerRequest build() { return new ImportSwaggerRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy