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

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

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

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

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

ImportOASRequest

*/ public class ImportOASRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AuthType") private String authType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackendName") private String backendName; @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("GroupId") @com.aliyun.core.annotation.Validation(required = true) private String groupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IgnoreWarning") private Boolean ignoreWarning; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OASVersion") private String OASVersion; @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("RequestMode") private String requestMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityToken") private String securityToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SkipDryRun") private Boolean skipDryRun; private ImportOASRequest(Builder builder) { super(builder); this.authType = builder.authType; this.backendName = builder.backendName; this.data = builder.data; this.groupId = builder.groupId; this.ignoreWarning = builder.ignoreWarning; this.OASVersion = builder.OASVersion; this.overwrite = builder.overwrite; this.requestMode = builder.requestMode; this.securityToken = builder.securityToken; this.skipDryRun = builder.skipDryRun; } public static Builder builder() { return new Builder(); } public static ImportOASRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return authType */ public String getAuthType() { return this.authType; } /** * @return backendName */ public String getBackendName() { return this.backendName; } /** * @return data */ public String getData() { return this.data; } /** * @return groupId */ public String getGroupId() { return this.groupId; } /** * @return ignoreWarning */ public Boolean getIgnoreWarning() { return this.ignoreWarning; } /** * @return OASVersion */ public String getOASVersion() { return this.OASVersion; } /** * @return overwrite */ public Boolean getOverwrite() { return this.overwrite; } /** * @return requestMode */ public String getRequestMode() { return this.requestMode; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } /** * @return skipDryRun */ public Boolean getSkipDryRun() { return this.skipDryRun; } public static final class Builder extends Request.Builder { private String authType; private String backendName; private String data; private String groupId; private Boolean ignoreWarning; private String OASVersion; private Boolean overwrite; private String requestMode; private String securityToken; private Boolean skipDryRun; private Builder() { super(); } private Builder(ImportOASRequest request) { super(request); this.authType = request.authType; this.backendName = request.backendName; this.data = request.data; this.groupId = request.groupId; this.ignoreWarning = request.ignoreWarning; this.OASVersion = request.OASVersion; this.overwrite = request.overwrite; this.requestMode = request.requestMode; this.securityToken = request.securityToken; this.skipDryRun = request.skipDryRun; } /** * The security authentication method of the API. Valid values: *

* * * **APP: Only authorized applications can call the API.** * * * **ANONYMOUS: The API can be anonymously called. In this mode, you must take note of the following rules:** * * * All users who have obtained the API service information can call this API. API Gateway does not authenticate callers and cannot set user-specific throttling policies. If you make this API public, set API-specific throttling policies. */ public Builder authType(String authType) { this.putQueryParameter("AuthType", authType); this.authType = authType; return this; } /** * The name of the backend service. */ public Builder backendName(String backendName) { this.putQueryParameter("BackendName", backendName); this.backendName = backendName; return this; } /** * The OAS-compliant text file or OSS object URL. */ public Builder data(String data) { this.putBodyParameter("Data", data); this.data = data; return this; } /** * The ID of the API group. */ public Builder groupId(String groupId) { this.putQueryParameter("GroupId", groupId); this.groupId = groupId; return this; } /** * Specifies whether to ignore alerts. */ public Builder ignoreWarning(Boolean ignoreWarning) { this.putQueryParameter("IgnoreWarning", ignoreWarning); this.ignoreWarning = ignoreWarning; return this; } /** * The OAS version. */ public Builder OASVersion(String OASVersion) { this.putQueryParameter("OASVersion", OASVersion); this.OASVersion = OASVersion; return this; } /** * Specifies whether to overwrite an existing API. *

* * If an existing API has the same HTTP request type and backend request path as the API to be imported, the existing API is overwritten. */ public Builder overwrite(Boolean overwrite) { this.putQueryParameter("Overwrite", overwrite); this.overwrite = overwrite; return this; } /** * The request mode. Valid values: *

* * * MAPPING: Parameters are mapped. Unknown parameters are filtered out. * * PASSTHROUGH: Parameters are passed through. */ public Builder requestMode(String requestMode) { this.putQueryParameter("RequestMode", requestMode); this.requestMode = requestMode; return this; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putQueryParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } /** * Specifies whether to directly import the API without performing a precheck. */ public Builder skipDryRun(Boolean skipDryRun) { this.putQueryParameter("SkipDryRun", skipDryRun); this.skipDryRun = skipDryRun; return this; } @Override public ImportOASRequest build() { return new ImportOASRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy