code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public R setDescription(String description) {
mBodyMap.put(BoxItem.FIELD_DESCRIPTION, description);
return (R) this;
} | java |
public BoxSharedLink getSharedLink() {
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)) :
null;
} | java |
public R setSharedLink(BoxSharedLink sharedLink) {
mBodyMap.put(BoxItem.FIELD_SHARED_LINK, sharedLink);
return (R) this;
} | java |
public List<String> getTags() {
return mBodyMap.containsKey(BoxItem.FIELD_TAGS) ?
(List<String>) mBodyMap.get(BoxItem.FIELD_TAGS) :
null;
} | java |
public R setTags(List<String> tags) {
JsonArray jsonArray = new JsonArray();
for (String s : tags) {
jsonArray.add(s);
}
mBodyMap.put(BoxItem.FIELD_TAGS, jsonArray);
return (R) this;
} | java |
public BoxRequestsComment.GetCommentInfo getInfoRequest(String id) {
BoxRequestsComment.GetCommentInfo request = new BoxRequestsComment.GetCommentInfo(id, getCommentInfoUrl(id), mSession);
return request;
} | java |
public BoxRequestsComment.AddReplyComment getAddCommentReplyRequest(String commentId, String message) {
BoxRequestsComment.AddReplyComment request = new BoxRequestsComment.AddReplyComment(commentId, message, getCommentsUrl(), mSession);
return request;
} | java |
public BoxRequestsComment.UpdateComment getUpdateRequest(String id, String newMessage) {
BoxRequestsComment.UpdateComment request = new BoxRequestsComment.UpdateComment(id, newMessage, getCommentInfoUrl(id), mSession);
return request;
} | java |
public BoxRequestsComment.DeleteComment getDeleteRequest(String id) {
BoxRequestsComment.DeleteComment request = new BoxRequestsComment.DeleteComment(id, getCommentInfoUrl(id), mSession);
return request;
} | java |
public String getType() {
String type = getPropertyAsString(FIELD_TYPE);
if (type == null){
return getPropertyAsString(FIELD_ITEM_TYPE);
}
return type;
} | java |
public static ChooseAuthenticationFragment createChooseAuthenticationFragment(final Context context, final ArrayList<BoxAuthentication.BoxAuthenticationInfo> listOfAuthInfo){
ChooseAuthenticationFragment fragment = createAuthenticationActivity(context);
Bundle b = fragment.getArguments();
if (b ... | java |
BoxRefreshAuthRequest refreshOAuth(String refreshToken, String clientId, String clientSecret) {
BoxRefreshAuthRequest request = new BoxRefreshAuthRequest(mSession, getTokenUrl(), refreshToken, clientId, clientSecret);
return request;
} | java |
BoxCreateAuthRequest createOAuth(String code, String clientId, String clientSecret) {
BoxCreateAuthRequest request = new BoxCreateAuthRequest(mSession, getTokenUrl(), code, clientId, clientSecret);
return request;
} | java |
public BoxRequestsShare.GetSharedLink getSharedLinkRequest(String sharedLink, String password) {
BoxSharedLinkSession session = null;
if (mSession instanceof BoxSharedLinkSession) {
session = (BoxSharedLinkSession)mSession;
} else {
session = new BoxSharedLinkSession(mSes... | java |
protected void cleanOutOldAvatars(File directory, int maxLifeInDays){
if (directory != null){
if (mCleanedDirectories.contains(directory.getAbsolutePath())){
return;
}
long oldestTimeAllowed = System.currentTimeMillis() - maxLifeInDays * TimeUnit.DAYS.toMillis... | java |
public BoxSharedLink.Access getAccess() {
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getAccess() :
null;
} | java |
public R setAccess(BoxSharedLink.Access access) {
JsonObject jsonObject = getSharedLinkJsonObject();
jsonObject.add(BoxSharedLink.FIELD_ACCESS, SdkUtils.getAsStringSafely(access));
BoxSharedLink sharedLink = new BoxSharedLink(jsonObject);
mBodyMap.put(BoxItem.FIELD_SHARED_LINK, sharedLin... | java |
public Date getUnsharedAt() {
if(mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK)) {
return ((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getUnsharedDate();
}
return null;
} | java |
public String getPassword(){
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getPassword() :
null;
} | java |
public R setPassword(final String password){
JsonObject jsonObject = getSharedLinkJsonObject();
jsonObject.add(BoxSharedLink.FIELD_PASSWORD, password);
BoxSharedLink sharedLink = new BoxSharedLink(jsonObject);
mBodyMap.put(BoxItem.FIELD_SHARED_LINK, sharedLink);
return (R) this;
... | java |
protected Boolean getCanDownload() {
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getPermissions().getCanDownload() :
null;
} | java |
protected R setCanDownload(boolean canDownload) {
JsonObject jsonPermissionsObject = getPermissionsJsonObject();
jsonPermissionsObject.add(BoxSharedLink.Permissions.FIELD_CAN_DOWNLOAD, canDownload);
BoxSharedLink.Permissions permissions = new BoxSharedLink.Permissions(jsonPermissionsObject);
... | java |
public R setFields(String... fields) {
if (fields.length == 1 && fields[0] == null){
mQueryMap.remove(QUERY_FIELDS);
return (R) this;
}
if (fields.length > 0) {
StringBuilder sb = new StringBuilder();
sb.append(fields[0]);
for (int i = ... | java |
public R addRepresentationHintGroup(String... hints) {
if(hints != null) {
mHintHeader.append("[");
mHintHeader.append(TextUtils.join(",", hints));
mHintHeader.append("]");
}
return (R) this;
} | java |
public void onReceivedAuthCode(String code, String baseDomain) {
if (authType == AUTH_TYPE_WEBVIEW) {
oauthView.setVisibility(View.INVISIBLE);
}
startMakingOAuthAPICall(code, baseDomain);
} | java |
public boolean onAuthFailure(AuthFailure failure) {
if (failure.type == OAuthWebView.AuthFailure.TYPE_WEB_ERROR){
if (failure.mWebException.getErrorCode() == WebViewClient.ERROR_CONNECT || failure.mWebException.getErrorCode() == WebViewClient.ERROR_HOST_LOOKUP || failure.mWebException.getErrorCode()... | java |
protected void startMakingOAuthAPICall(final String code, final String baseDomain) {
if (apiCallStarted.getAndSet(true)) {
return;
}
showSpinner();
if (baseDomain != null) {
mSession.getAuthInfo().setBaseDomain(baseDomain);
BoxLogUtils.nonFatalE("setti... | java |
protected Dialog showDialogWhileWaitingForAuthenticationAPICall() {
return ProgressDialog.show(this, getText(R.string.boxsdk_Authenticating), getText(R.string.boxsdk_Please_wait));
} | java |
public static Intent createOAuthActivityIntent(final Context context, BoxSession session, boolean loginViaBoxApp){
Intent intent = createOAuthActivityIntent(context, session.getClientId(), session.getClientSecret(), session.getRedirectUrl(), loginViaBoxApp);
intent.putExtra(EXTRA_SESSION, session);
... | java |
private OAuthWebView.AuthFailure getAuthFailure(Exception e) {
String error = getString(R.string.boxsdk_Authentication_fail);
if (e != null) {
// Get the proper exception
Throwable ex = e instanceof ExecutionException ?
((ExecutionException) e).getCause() :
... | java |
public BoxRequestsSearch.Search getSearchRequest(String query) {
BoxRequestsSearch.Search request = new BoxRequestsSearch.Search(query, getSearchUrl(), mSession);
return request;
} | java |
protected void importRequestContentMapsFrom(BoxRequest source) {
this.mQueryMap = new HashMap<String, String>(source.mQueryMap);
this.mBodyMap = new LinkedHashMap<String, Object>(source.mBodyMap);
} | java |
public final T send() throws BoxException {
Exception ex = null;
T result = null;
try {
result = onSend();
} catch (Exception e){
ex = e;
}
// We catch the exception so that onSendCompleted can be called in case additional actions need to be taken... | java |
public String getStringBody() throws UnsupportedEncodingException {
if (mStringBody != null)
return mStringBody;
if (mContentType != null) {
switch (mContentType) {
case JSON:
JsonObject jsonBody = new JsonObject();
for (Ma... | java |
protected <R extends BoxRequest & BoxCacheableRequest> BoxFutureTask<T> handleToTaskForCachedResult() throws BoxException {
BoxCache cache = BoxConfig.getCache();
if (cache == null) {
throw new BoxException.CacheImplementationNotFound();
}
return new BoxCacheFutureTask<T, R>... | java |
protected void handleUpdateCache(BoxResponse<T> response) throws BoxException {
BoxCache cache = BoxConfig.getCache();
if (cache != null) {
cache.put(response);
}
} | java |
protected Socket getSocket(){
if (mSocketFactoryRef != null && mSocketFactoryRef.get() != null) {
return ((SSLSocketFactoryWrapper)mSocketFactoryRef.get()).getSocket();
}
return null;
} | java |
public BoxAuthenticationInfo getAuthInfo(String userId, Context context) {
return userId == null ? null : getAuthInfoMap(context).get(userId);
} | java |
public void onAuthenticated(BoxAuthenticationInfo infoOriginal, Context context) {
BoxAuthenticationInfo info = BoxAuthenticationInfo.unmodifiableObject(infoOriginal);
if (!SdkUtils.isBlank(info.accessToken()) && (info.getUser() == null || SdkUtils.isBlank(info.getUser().getId()))){
// insuf... | java |
public void onAuthenticationFailure(BoxAuthenticationInfo infoOriginal, Exception ex) {
String msg = "failure:";
if (getAuthStorage() != null) {
msg += "auth storage :" + getAuthStorage().toString();
}
BoxAuthenticationInfo info = BoxAuthenticationInfo.unmodifiableObject(info... | java |
public void onLoggedOut(BoxAuthenticationInfo infoOriginal, Exception ex) {
BoxAuthenticationInfo info = BoxAuthenticationInfo.unmodifiableObject(infoOriginal);
Set<AuthListener> listeners = getListeners();
for (AuthListener listener : listeners) {
listener.onLoggedOut(info, ex);
... | java |
public synchronized void logout(final BoxSession session) {
BoxUser user = session.getUser();
if (user == null) {
return;
}
session.clearCache();
Context context = session.getApplicationContext();
String userId = user.getId();
getAuthInfoMap(session.... | java |
public synchronized void logoutAllUsers(Context context) {
getAuthInfoMap(context);
for (String userId : mCurrentAccessInfo.keySet()) {
BoxSession session = new BoxSession(context, userId);
logout(session);
}
authStorage.clearAuthInfoMap(context);
} | java |
public synchronized FutureTask<BoxAuthenticationInfo> create(BoxSession session, final String code) {
FutureTask<BoxAuthenticationInfo> task = doCreate(session,code);
BoxAuthentication.AUTH_EXECUTOR.submit(task);
return task;
} | java |
public synchronized FutureTask<BoxAuthenticationInfo> refresh(BoxSession session) {
BoxUser user = session.getUser();
if (user == null) {
return doRefresh(session, session.getAuthInfo());
}
// Fetch auth info map from storage if not present.
getAuthInfoMap(session.get... | java |
public synchronized void addListener(AuthListener listener) {
if (getListeners().contains(listener)){
return;
}
mListeners.add(new WeakReference<>(listener));
} | java |
private synchronized void startAuthenticateUI(BoxSession session) {
Context context = session.getApplicationContext();
Intent intent = OAuthActivity.createOAuthActivityIntent(context, session, BoxAuthentication.isBoxAuthAppAvailable(context) && session.isEnabledBoxAppAuthentication());
intent.ad... | java |
public static boolean isBoxAuthAppAvailable(final Context context) {
Intent intent = new Intent(BoxConstants.REQUEST_BOX_APP_FOR_AUTH_INTENT_ACTION);
List<ResolveInfo> infos = context.getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_RESOLVED_FILTER... | java |
public boolean removeHeaderView(View v) {
if (mHeaderViewInfos.size() > 0) {
boolean result = false;
ListAdapter adapter = getAdapter();
if (adapter != null && ((HeaderViewGridAdapter) adapter).removeHeader(v)) {
result = true;
}
remove... | java |
public ListJobsResponse listJobs(String marker, int maxKeys) {
return listJobs(new ListJobsRequest().withMaxKeys(maxKeys).withMarker(marker));
} | java |
public CreateJobResponse createJob(CreateJobRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getName(), "The name should not be null or empty string.");
checkStringNotEmpty(request.getVmType(), "The vmType should not be null or empty string.");... | java |
public void cancelJob(CancelJobRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getJobId(), "The parameter jobId should not be null or empty string.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodNa... | java |
private InternalRequest createRequest(
AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables) {
List<String> path = new ArrayList<String>();
path.add(VERSION);
if (pathVariables != null) {
for (String pathVariable : pathVariables) {
... | java |
public ListRuleResponse listRules(ListRuleRequest request) {
InternalRequest internalRequest =
createRequest(request, HttpMethodName.GET, RULES);
if (request.getPageNo() > 0) {
internalRequest.addParameter("pageNo", String.valueOf(request.getPageNo()));
}
if (... | java |
private InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod,
String... pathVariables) {
List<String> path = new ArrayList<String>();
path.add(VERSION);
if (pathVariables != null) {
for (String pathVariable : pathVariables) {
... | java |
private void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest) {
if (internalRequest.getHttpMethod() == HttpMethodName.POST
|| internalRequest.getHttpMethod() == HttpMethodName.PUT) {
String strJson = JsonUtils.toJsonString(bceRequest);
byte[] re... | java |
private String aes128WithFirst16Char(String content, String privateKey) throws GeneralSecurityException {
byte[] crypted = null;
SecretKeySpec skey = new SecretKeySpec(privateKey.substring(0, 16).getBytes(), "AES");
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
cipher.init(... | java |
public ListInstancesResponse listInstances(ListInstancesRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, INSTANCE_PREFIX);
if (request.getMarker() != null) {
internalRequest.addP... | java |
public GetInstanceResponse getInstance(GetInstanceRequest request) {
checkNotNull(request, "request should not be null.");
checkNotNull(request.getInstanceId(), "request instanceId should not be null.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodNam... | java |
public void startInstance(StartInstanceRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodName.P... | java |
public void modifyInstanceAttributes(ModifyInstanceAttributesRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
checkStringNotEmpty(request.getName(), "request name should not be empty.... | java |
public void rebuildInstance(String instanceId, String imageId, String adminPass) throws BceClientException {
this.rebuildInstance(new RebuildInstanceRequest().withInstanceId(instanceId)
.withImageId(imageId).withAdminPass(adminPass));
} | java |
public void releaseInstance(ReleaseInstanceRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodNa... | java |
public void resizeInstance(ResizeInstanceRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
checkStringNotEmpty(request.getInstanceId(), "request... | java |
public GetInstanceVncResponse getInstanceVnc(GetInstanceVncRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
InternalRequest internalRequest = this.createRequest(
reque... | java |
public void purchaseReservedInstance(PurchaseReservedInstanceRequeset request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
if (null == request.getBilling()... | java |
public CreateVolumeResponse createVolume(CreateVolumeRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
if (null == request.getBilling()) {
... | java |
public ListVolumesResponse listVolumes(ListVolumesRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, VOLUME_PREFIX);
if (request.getMarker() != null) {
internalRequest.addParameter("marker", request.getMarker());
}
if (request... | java |
public GetVolumeResponse getVolume(GetVolumeRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getVolumeId(), "request volumeId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.G... | java |
public void releaseVolume(ReleaseVolumeRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getVolumeId(), "request volumeId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.DELETE... | java |
public CreateImageResponse createImageFromInstance(String imageName, String instanceId) {
return createImage(new CreateImageRequest()
.withImageName(imageName).withInstanceId(instanceId));
} | java |
public CreateImageResponse createImageFromSnapshot(String imageName, String snapshotId) {
return createImage(new CreateImageRequest()
.withImageName(imageName).withSnapshotId(snapshotId));
} | java |
public CreateImageResponse createImage(CreateImageRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
checkStringNotEmpty(request.getImageName(), ... | java |
public ListImagesResponse listImages(ListImagesRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, IMAGE_PREFIX);
if (!Strings.isNullOrEmpty(request.getMarker())) {
internalRequest.... | java |
public GetImageResponse getImage(GetImageRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getImageId(), "request imageId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.GET, I... | java |
public void deleteImage(DeleteImageRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getImageId(), "request imageId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.DELETE, IMAG... | java |
public ListSnapshotsResponse listSnapshots(ListSnapshotsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SNAPSHOT_PREFIX);
if (!Strings.isNullOrEmpty(request.getMarker())) {
inte... | java |
public GetSnapshotResponse getSnapshot(GetSnapshotRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSnapshotId(), "request snapshotId should no be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMet... | java |
public void deleteSnapshot(DeleteSnapshotRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSnapshotId(), "request snapshotId should no be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.D... | java |
public ListSecurityGroupsResponse listSecurityGroups(ListSecurityGroupsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SECURITYGROUP_PREFIX);
if (!Strings.isNullOrEmpty(request.getMarker())... | java |
public CreateSecurityGroupResponse createSecurityGroup(CreateSecurityGroupRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
checkStringNotEmpty(... | java |
public void authorizeSecurityGroupRule(SecurityGroupRuleOperateRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSecurityGroupId(), "securityGroupId should not be empty.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
re... | java |
public void deleteSecurityGroup(DeleteSecurityGroupRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSecurityGroupId(), "request securityGroupId should not be empty.");
InternalRequest internalRequest =
this.createRequest(requ... | java |
public String getUserMetaDataOf(String key) {
return this.userMetadata == null ? null : this.userMetadata.get(key);
} | java |
public ListMediaResourceResponse listMediaResources(
int pageNo,
int pageSize,
String status,
Date begin,
Date end,
String title) {
ListMediaResourceRequest request =
new ListMediaResourceRequest()
.w... | java |
public ListMediaResourceByMarkerResponse listMediaResourcesByMarker(
String marker,
int maxSize,
String status,
Date begin,
Date end,
String title) {
ListMediaResourceByMarkerRequest request =
new ListMediaResourceByMarkerRe... | java |
public GetMediaSourceDownloadResponse getMediaSourceDownload(String mediaId, long expiredInSeconds) {
GetMediaSourceDownloadRequest request = new GetMediaSourceDownloadRequest()
.withMediaId(mediaId)
.withExpiredInSeconds(expiredInSeconds);
return getMediaSourceDownload(r... | java |
public Datapoint addLongValue(long time, long value) {
initialValues();
checkType(TsdbConstants.TYPE_LONG);
values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new LongNode(value)));
return this;
} | java |
public Datapoint addDoubleValue(long time, double value) {
initialValues();
checkType(TsdbConstants.TYPE_DOUBLE);
values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new DoubleNode(value)));
return this;
} | java |
public Datapoint addStringValue(long time, String value) {
initialValues();
checkType(TsdbConstants.TYPE_STRING);
values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new TextNode(value)));
return this;
} | java |
public Datapoint addTag(String tagKey, String tagValue) {
initialTags();
tags.put(tagKey, tagValue);
return this;
} | java |
public static String hmacSha256(String input, String secretKey) {
if (input == null) {
throw new NullPointerException("input");
} else if (secretKey == null) {
throw new NullPointerException("secretKey");
}
return hmacSha256(input.getBytes(CHARSET_UTF8), secretKey... | java |
public String getEndpoint() {
String url = this.endpoint;
// if the set endpoint does not contain a protocol, append protocol to head of it
if (this.endpoint != null && this.endpoint.length() > 0
&& endpoint.indexOf("://") < 0) {
url = protocol.toString().toLowerCase(... | java |
@Override
public void sign(InternalRequest request, BceCredentials credentials, SignOptions options) {
checkNotNull(request, "request should not be null.");
if (credentials == null) {
return;
}
if (options == null) {
if (request.getSignOptions() != null) {
... | java |
public void deleteRouteRule(DeleteRouteRequest deleteRouteRequest) {
checkNotNull(deleteRouteRequest, "request should not be null.");
checkNotNull(deleteRouteRequest.getRouteRuleId(), "request routeRuleId should not be null.");
if (Strings.isNullOrEmpty(deleteRouteRequest.getClientToken())) {
... | java |
public void setResponses(Map<String, List<Map<String, AttributeValue>>> responses) {
this.responses = responses;
} | java |
public CreateTranscodingJobResponse createTranscodingJob(
String pipelineName, String sourceKey, String targetKey, String presetName,
String watermarkId, DelogoArea delogoArea) {
CreateTranscodingJobRequest request = new CreateTranscodingJobRequest();
request.setPipelineName(pipe... | java |
public ListPipelinesResponse listPipelines(ListPipelinesRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, PIPELINE);
return invokeHttpClient(internalRequest, ListPipelinesResponse.cl... | java |
public void deletePipeline(DeletePipelineRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getPipelineName(),
"The parameter pipelineName should NOT be null or empty string.");
InternalRequest internalRequest =
... | java |
public CreatePresetResponse createPreset(String presetName, String container) {
return createPreset(presetName, null, container, true, null, null, null, null, null);
} | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.