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

com.aliyun.sdk.service.cloudapi20160714.models.DetachApiProductRequest 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 DetachApiProductRequest} extends {@link RequestModel}
 *
 * 

DetachApiProductRequest

*/ public class DetachApiProductRequest 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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityToken") private String securityToken; private DetachApiProductRequest(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 DetachApiProductRequest 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 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; private String securityToken; private Builder() { super(); } private Builder(DetachApiProductRequest request) { super(request); this.apiProductId = request.apiProductId; this.apis = request.apis; this.securityToken = request.securityToken; } /** *

The ID of the API product.

*

This parameter is required.

* * example: *

117b7a64a8b3f064eaa4a47ac62aac5e

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

The APIs that you want to detach from the API product.

*

This parameter is required.

*/ public Builder apis(java.util.List 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 DetachApiProductRequest build() { return new DetachApiProductRequest(this); } } /** * * {@link DetachApiProductRequest} extends {@link TeaModel} * *

DetachApiProductRequest

*/ 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.

*

This parameter is required.

* * example: *

ba84c55eca46488598da17c0609f3ead

*/ public Builder apiId(String apiId) { this.apiId = apiId; return this; } /** *

The environment to which the API is published. Valid values:

*
    *
  • RELEASE: the production environment
  • *
  • PRE: the pre-release environment
  • *
  • TEST: the test environment
  • *
*

This parameter is required.

* * example: *

RELEASE

*/ public Builder stageName(String stageName) { this.stageName = stageName; return this; } public Apis build() { return new Apis(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy