com.softlayer.api.service.account.personaldata.RemoveRequestReview Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.account.personaldata;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Account;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.container.account.PersonalInformation;
import java.util.List;
import java.util.concurrent.Future;
/**
* @see SoftLayer_Account_PersonalData_RemoveRequestReview
*/
@ApiType("SoftLayer_Account_PersonalData_RemoveRequestReview")
public class RemoveRequestReview extends Entity {
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
@ApiProperty
protected RemoveRequestReview approvedFlag;
public RemoveRequestReview getApprovedFlag() {
return approvedFlag;
}
public void setApprovedFlag(RemoveRequestReview approvedFlag) {
this.approvedFlag = approvedFlag;
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
/**
* @see SoftLayer_Account_PersonalData_RemoveRequestReview
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Account_PersonalData_RemoveRequestReview")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Approve a personal information removal request.
*
* @see SoftLayer_Account_PersonalData_RemoveRequestReview::approveRequest
*/
@ApiMethod
public Void approveRequest(Long requestId, String accessToken);
/**
* Gets the redirect URL for GDPR removal review.
*
* @see SoftLayer_Account_PersonalData_RemoveRequestReview::getAuthorizationUrl
*/
@ApiMethod
public String getAuthorizationUrl();
/**
* @see SoftLayer_Account_PersonalData_RemoveRequestReview::getObject
*/
@ApiMethod(instanceRequired = true)
public RemoveRequestReview getObject();
/**
* Gets information removal requests to review.
*
* @see SoftLayer_Account_PersonalData_RemoveRequestReview::getPendingRequests
*/
@ApiMethod
public List getPendingRequests(String accessToken);
/**
* Retrieves an access token.
*
* @see SoftLayer_Account_PersonalData_RemoveRequestReview::getReviewerAccessToken
*/
@ApiMethod
public String getReviewerAccessToken(String code);
/**
* Finds a reviewer's email using the access token
*
* @see SoftLayer_Account_PersonalData_RemoveRequestReview::getReviewerEmailFromAccessToken
*/
@ApiMethod
public String getReviewerEmailFromAccessToken(String accessToken);
/**
* @see SoftLayer_Account_PersonalData_RemoveRequestReview::getTotalPendingRequests
*/
@ApiMethod
public Long getTotalPendingRequests();
/**
* @see SoftLayer_Account_PersonalData_RemoveRequestReview::getAccount
*/
@ApiMethod(instanceRequired = true)
public Account getAccount();
/**
* @see SoftLayer_Account_PersonalData_RemoveRequestReview::getApprovedFlag
*/
@ApiMethod(instanceRequired = true)
public RemoveRequestReview getApprovedFlag();
}
public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#approveRequest}
*/
public Future approveRequest(Long requestId, String accessToken);
public Future> approveRequest(Long requestId, String accessToken, ResponseHandler callback);
/**
* Async version of {@link Service#getAuthorizationUrl}
*/
public Future getAuthorizationUrl();
public Future> getAuthorizationUrl(ResponseHandler callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#getPendingRequests}
*/
public Future> getPendingRequests(String accessToken);
public Future> getPendingRequests(String accessToken, ResponseHandler> callback);
/**
* Async version of {@link Service#getReviewerAccessToken}
*/
public Future getReviewerAccessToken(String code);
public Future> getReviewerAccessToken(String code, ResponseHandler callback);
/**
* Async version of {@link Service#getReviewerEmailFromAccessToken}
*/
public Future getReviewerEmailFromAccessToken(String accessToken);
public Future> getReviewerEmailFromAccessToken(String accessToken, ResponseHandler callback);
/**
* Async version of {@link Service#getTotalPendingRequests}
*/
public Future getTotalPendingRequests();
public Future> getTotalPendingRequests(ResponseHandler callback);
/**
* Async version of {@link Service#getAccount}
*/
public Future getAccount();
/**
* Async callback version of {@link Service#getAccount}
*/
public Future> getAccount(ResponseHandler callback);
/**
* Async version of {@link Service#getApprovedFlag}
*/
public Future getApprovedFlag();
/**
* Async callback version of {@link Service#getApprovedFlag}
*/
public Future> getApprovedFlag(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Account.Mask account() {
return withSubMask("account", com.softlayer.api.service.Account.Mask.class);
}
public RemoveRequestReview.Mask approvedFlag() {
return withSubMask("approvedFlag", RemoveRequestReview.Mask.class);
}
}
}