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

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

SetApisAuthoritiesRequest

*/ public class SetApisAuthoritiesRequest extends Request { @Query @NameInMap("ApiIds") private String apiIds; @Query @NameInMap("AppId") @Validation(required = true) private Long appId; @Query @NameInMap("AuthValidTime") private String authValidTime; @Query @NameInMap("Description") private String description; @Query @NameInMap("GroupId") private String groupId; @Query @NameInMap("SecurityToken") private String securityToken; @Query @NameInMap("StageName") @Validation(required = true) private String stageName; private SetApisAuthoritiesRequest(Builder builder) { super(builder); this.apiIds = builder.apiIds; this.appId = builder.appId; this.authValidTime = builder.authValidTime; this.description = builder.description; this.groupId = builder.groupId; this.securityToken = builder.securityToken; this.stageName = builder.stageName; } public static Builder builder() { return new Builder(); } public static SetApisAuthoritiesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return apiIds */ public String getApiIds() { return this.apiIds; } /** * @return appId */ public Long getAppId() { return this.appId; } /** * @return authValidTime */ public String getAuthValidTime() { return this.authValidTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return groupId */ public String getGroupId() { return this.groupId; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } /** * @return stageName */ public String getStageName() { return this.stageName; } public static final class Builder extends Request.Builder { private String apiIds; private Long appId; private String authValidTime; private String description; private String groupId; private String securityToken; private String stageName; private Builder() { super(); } private Builder(SetApisAuthoritiesRequest request) { super(request); this.apiIds = request.apiIds; this.appId = request.appId; this.authValidTime = request.authValidTime; this.description = request.description; this.groupId = request.groupId; this.securityToken = request.securityToken; this.stageName = request.stageName; } /** * Queries weather based on the region name */ public Builder apiIds(String apiIds) { this.putQueryParameter("ApiIds", apiIds); this.apiIds = apiIds; return this; } /** * The API ID for the specified operation. Separate multiple API IDs with commas (,). A maximum of 100 API IDs can be entered. */ public Builder appId(Long appId) { this.putQueryParameter("AppId", appId); this.appId = appId; return this; } /** * * This operation is intended for API providers and callers. *

* * API providers can authorize any apps to call their APIs. * * API callers can authorize their own apps to call the APIs that they have purchased. */ public Builder authValidTime(String authValidTime) { this.putQueryParameter("AuthValidTime", authValidTime); this.authValidTime = authValidTime; return this; } /** * The time (UTC) when the authorization expires. If this parameter is empty, the authorization does not expire. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * The name of the runtime environment. Valid values: *

* * * **RELEASE** * * **TEST** */ public Builder groupId(String groupId) { this.putQueryParameter("GroupId", groupId); this.groupId = groupId; return this; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putQueryParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } /** * The description of the authorization. */ public Builder stageName(String stageName) { this.putQueryParameter("StageName", stageName); this.stageName = stageName; return this; } @Override public SetApisAuthoritiesRequest build() { return new SetApisAuthoritiesRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy