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

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

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

import com.aliyun.core.annotation.*;
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 { @Body @NameInMap("Data") @Validation(required = true) private String data; @Query @NameInMap("DataFormat") @Validation(required = true) private String dataFormat; @Query @NameInMap("DryRun") private Boolean dryRun; @Query @NameInMap("GlobalCondition") private java.util.Map < String, ? > globalCondition; @Query @NameInMap("GroupId") @Validation(required = true) private String groupId; @Query @NameInMap("Overwrite") @Validation(required = true) private Boolean overwrite; @Query @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 < String, ? > 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 < String, ? > 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; } /** * Data. */ public Builder data(String data) { this.putBodyParameter("Data", data); this.data = data; return this; } /** * 382271 */ public Builder dataFormat(String dataFormat) { this.putQueryParameter("DataFormat", dataFormat); this.dataFormat = dataFormat; return this; } /** * DryRun. */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * Creates an API by importing Swagger-compliant data. */ public Builder globalCondition(java.util.Map < String, ? > globalCondition) { String globalConditionShrink = shrink(globalCondition, "GlobalCondition", "json"); this.putQueryParameter("GlobalCondition", globalConditionShrink); this.globalCondition = globalCondition; return this; } /** * GroupId. */ public Builder groupId(String groupId) { this.putQueryParameter("GroupId", groupId); this.groupId = groupId; return this; } /** * 8e274ec61cf6468e83b68371956831cb */ 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 - 2024 Weber Informatics LLC | Privacy Policy