com.aliyun.sdk.service.cloudapi20160714.models.SetAppsAuthoritiesRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-cloudapi20160714 Show documentation
// 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 SetAppsAuthoritiesRequest} extends {@link RequestModel}
*
* SetAppsAuthoritiesRequest
*/
public class SetAppsAuthoritiesRequest extends Request {
@Query
@NameInMap("ApiId")
@Validation(required = true)
private String apiId;
@Query
@NameInMap("AppIds")
@Validation(required = true)
private String appIds;
@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 SetAppsAuthoritiesRequest(Builder builder) {
super(builder);
this.apiId = builder.apiId;
this.appIds = builder.appIds;
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 SetAppsAuthoritiesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return apiId
*/
public String getApiId() {
return this.apiId;
}
/**
* @return appIds
*/
public String getAppIds() {
return this.appIds;
}
/**
* @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 apiId;
private String appIds;
private String authValidTime;
private String description;
private String groupId;
private String securityToken;
private String stageName;
private Builder() {
super();
}
private Builder(SetAppsAuthoritiesRequest request) {
super(request);
this.apiId = request.apiId;
this.appIds = request.appIds;
this.authValidTime = request.authValidTime;
this.description = request.description;
this.groupId = request.groupId;
this.securityToken = request.securityToken;
this.stageName = request.stageName;
}
/**
* The API ID for the specified operation. Separate multiple API IDs with commas (,). A maximum of 100 API IDs can be entered.
*/
public Builder apiId(String apiId) {
this.putQueryParameter("ApiId", apiId);
this.apiId = apiId;
return this;
}
/**
* Queries weather based on the region name
*/
public Builder appIds(String appIds) {
this.putQueryParameter("AppIds", appIds);
this.appIds = appIds;
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 SetAppsAuthoritiesRequest build() {
return new SetAppsAuthoritiesRequest(this);
}
}
}