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

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

// 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 AttachApiProductRequest} extends {@link RequestModel}
 *
 * 

AttachApiProductRequest

*/ public class AttachApiProductRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApiProductId") @com.aliyun.core.annotation.Validation(required = true) private String apiProductId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Apis") @com.aliyun.core.annotation.Validation(required = true) private java.util.List < Apis> apis; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityToken") private String securityToken; private AttachApiProductRequest(Builder builder) { super(builder); this.apiProductId = builder.apiProductId; this.apis = builder.apis; this.securityToken = builder.securityToken; } public static Builder builder() { return new Builder(); } public static AttachApiProductRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return apiProductId */ public String getApiProductId() { return this.apiProductId; } /** * @return apis */ public java.util.List < Apis> getApis() { return this.apis; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } public static final class Builder extends Request.Builder { private String apiProductId; private java.util.List < Apis> apis; private String securityToken; private Builder() { super(); } private Builder(AttachApiProductRequest request) { super(request); this.apiProductId = request.apiProductId; this.apis = request.apis; this.securityToken = request.securityToken; } /** * The ID of the API product. */ public Builder apiProductId(String apiProductId) { this.putQueryParameter("ApiProductId", apiProductId); this.apiProductId = apiProductId; return this; } /** * The APIs to be attached. */ public Builder apis(java.util.List < Apis> apis) { this.putQueryParameter("Apis", apis); this.apis = apis; return this; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putQueryParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } @Override public AttachApiProductRequest build() { return new AttachApiProductRequest(this); } } public static class Apis extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiId") @com.aliyun.core.annotation.Validation(required = true) private String apiId; @com.aliyun.core.annotation.NameInMap("StageName") @com.aliyun.core.annotation.Validation(required = true) private String stageName; private Apis(Builder builder) { this.apiId = builder.apiId; this.stageName = builder.stageName; } public static Builder builder() { return new Builder(); } public static Apis create() { return builder().build(); } /** * @return apiId */ public String getApiId() { return this.apiId; } /** * @return stageName */ public String getStageName() { return this.stageName; } public static final class Builder { private String apiId; private String stageName; /** * The API ID. */ public Builder apiId(String apiId) { this.apiId = apiId; return this; } /** * The environment. Valid values: *

* * * **RELEASE**: the production environment * * **PRE**: the staging environment * * **TEST**: the test environment */ public Builder stageName(String stageName) { this.stageName = stageName; return this; } public Apis build() { return new Apis(this); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy