idx int64 0 41.2k | question stringlengths 74 4.21k | target stringlengths 5 888 |
|---|---|---|
31,100 | public static String getActivationKey ( String gatewayAddress , Region activationRegion ) throws AmazonClientException { return getActivationKey ( gatewayAddress , activationRegion == null ? null : activationRegion . getName ( ) ) ; } | Sends a request to the AWS Storage Gateway server running at the specified address and returns the activation key for that server . |
31,101 | public static String getActivationKey ( String gatewayAddress , String activationRegionName ) throws AmazonClientException { try { HttpParams httpClientParams = new BasicHttpParams ( ) ; httpClientParams . setBooleanParameter ( ClientPNames . HANDLE_REDIRECTS , false ) ; DefaultHttpClient client = new DefaultHttpClient ( httpClientParams ) ; String url = "http://" + gatewayAddress ; if ( activationRegionName != null ) { url += "/?activationRegion=" + activationRegionName ; } HttpGet method = new HttpGet ( url ) ; HttpResponse response = client . execute ( method ) ; int statusCode = response . getStatusLine ( ) . getStatusCode ( ) ; if ( statusCode != 302 ) throw new AmazonClientException ( "Could not fetch activation key. HTTP status code: " + statusCode ) ; Header [ ] headers = response . getHeaders ( "Location" ) ; if ( headers . length < 1 ) throw new AmazonClientException ( "Could not fetch activation key, no location header found" ) ; String activationUrl = headers [ 0 ] . getValue ( ) ; String [ ] parts = activationUrl . split ( "activationKey=" ) ; if ( parts . length < 2 || null == parts [ 1 ] ) throw new AmazonClientException ( "Unable to get activation key from : " + activationUrl ) ; return parts [ 1 ] ; } catch ( IOException ioe ) { throw new AmazonClientException ( "Unable to get activation key" , ioe ) ; } } | Sends a request to the AWS Storage Gateway server running at the specified address and activation region and returns the activation key for that server . |
31,102 | public static boolean doesSecurityGroupExist ( AmazonEC2 ec2 , String securityGroupName ) throws AmazonClientException , AmazonServiceException { DescribeSecurityGroupsRequest securityGroupsRequest = new DescribeSecurityGroupsRequest ( ) . withGroupNames ( securityGroupName ) ; try { ec2 . describeSecurityGroups ( securityGroupsRequest ) ; return true ; } catch ( AmazonServiceException ase ) { if ( INVALID_GROUP_NOT_FOUND . equals ( ase . getErrorCode ( ) ) ) { return false ; } throw ase ; } } | Provides a quick answer to whether a security group exists . |
31,103 | public void setHistory ( java . util . Collection < ConfigurationId > history ) { if ( history == null ) { this . history = null ; return ; } this . history = new java . util . ArrayList < ConfigurationId > ( history ) ; } | The history of configurations applied to the broker . |
31,104 | private static void initializeVersion ( ) { InputStream inputStream = ClassLoaderHelper . getResourceAsStream ( VERSION_INFO_FILE , true , VersionInfoUtils . class ) ; Properties versionInfoProperties = new Properties ( ) ; try { if ( inputStream == null ) throw new Exception ( VERSION_INFO_FILE + " not found on classpath" ) ; versionInfoProperties . load ( inputStream ) ; version = versionInfoProperties . getProperty ( "version" ) ; platform = versionInfoProperties . getProperty ( "platform" ) ; } catch ( Exception e ) { log . info ( "Unable to load version information for the running SDK: " + e . getMessage ( ) ) ; version = "unknown-version" ; platform = "java" ; } finally { closeQuietly ( inputStream , log ) ; } } | Loads the versionInfo . properties file from the AWS Java SDK and stores the information so that the file doesn t have to be read the next time the data is needed . |
31,105 | private static String languageVersion ( String language , String className , String methodOrFieldName , boolean isMethod ) { StringBuilder sb = new StringBuilder ( ) ; try { Class < ? > clz = Class . forName ( className ) ; sb . append ( language ) ; String version = isMethod ? ( String ) clz . getMethod ( methodOrFieldName ) . invoke ( null ) : ( String ) clz . getField ( methodOrFieldName ) . get ( null ) ; concat ( sb , version , "/" ) ; } catch ( ClassNotFoundException e ) { } catch ( Exception e ) { if ( log . isTraceEnabled ( ) ) { log . trace ( "Exception attempting to get " + language + " version." , e ) ; } } return sb . toString ( ) ; } | Attempt to determine if this language exists on the classpath and what it s version is |
31,106 | public static String join ( String joiner , String ... parts ) { StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < parts . length ; i ++ ) { builder . append ( parts [ i ] ) ; if ( i < parts . length - 1 ) { builder . append ( joiner ) ; } } return builder . toString ( ) ; } | Joins the strings in parts with joiner between each string |
31,107 | public static String lowerCase ( String str ) { if ( isNullOrEmpty ( str ) ) { return str ; } return str . toLowerCase ( LOCALE_ENGLISH ) ; } | Converts a given String to lower case with Locale . ENGLISH |
31,108 | public static String upperCase ( String str ) { if ( isNullOrEmpty ( str ) ) { return str ; } return str . toUpperCase ( LOCALE_ENGLISH ) ; } | Converts a given String to upper case with Locale . ENGLISH |
31,109 | private static boolean isWhiteSpace ( final char ch ) { if ( ch == CHAR_SPACE ) return true ; if ( ch == CHAR_TAB ) return true ; if ( ch == CHAR_NEW_LINE ) return true ; if ( ch == CHAR_VERTICAL_TAB ) return true ; if ( ch == CHAR_CARRIAGE_RETURN ) return true ; if ( ch == CHAR_FORM_FEED ) return true ; return false ; } | Tests a char to see if is it whitespace . This method considers the same characters to be white space as the Pattern class does when matching \ s |
31,110 | public static void appendCompactedString ( final StringBuilder destination , final String source ) { boolean previousIsWhiteSpace = false ; int length = source . length ( ) ; for ( int i = 0 ; i < length ; i ++ ) { char ch = source . charAt ( i ) ; if ( isWhiteSpace ( ch ) ) { if ( previousIsWhiteSpace ) { continue ; } destination . append ( CHAR_SPACE ) ; previousIsWhiteSpace = true ; } else { destination . append ( ch ) ; previousIsWhiteSpace = false ; } } } | This method appends a string to a string builder and collapses contiguous white space is a single space . |
31,111 | public static boolean beginsWithIgnoreCase ( final String data , final String seq ) { return data . regionMatches ( true , 0 , seq , 0 , seq . length ( ) ) ; } | Performs a case insensitive comparison and returns true if the data begins with the given sequence . |
31,112 | private List < GeneratorTask > createWaiterOpFunctionClassTasks ( ) throws IOException { List < GeneratorTask > generatorTasks = new ArrayList < > ( ) ; List < String > generatedOperations = new ArrayList < > ( ) ; for ( Map . Entry < String , WaiterDefinitionModel > entry : model . getWaiters ( ) . entrySet ( ) ) { final WaiterDefinitionModel waiterModel = entry . getValue ( ) ; if ( ! generatedOperations . contains ( waiterModel . getOperationName ( ) ) ) { generatedOperations . add ( waiterModel . getOperationName ( ) ) ; Map < String , Object > dataModel = ImmutableMapParameter . of ( "fileHeader" , model . getFileHeader ( ) , "waiter" , waiterModel , "operation" , model . getOperation ( waiterModel . getOperationName ( ) ) , "metadata" , model . getMetadata ( ) ) ; final String className = waiterModel . getOperationModel ( ) . getOperationName ( ) + "Function" ; generatorTasks . add ( new FreemarkerGeneratorTask ( waiterClassDir , className , freemarker . getWaiterSDKFunctionTemplate ( ) , dataModel ) ) ; } } return generatorTasks ; } | Constructs the data model and submits tasks for every generating SDKFunction for every unique operation in the waiter intermediate model |
31,113 | private List < GeneratorTask > createWaiterAcceptorClassTasks ( ) throws IOException { List < GeneratorTask > generatorTasks = new ArrayList < > ( ) ; for ( Map . Entry < String , WaiterDefinitionModel > entry : model . getWaiters ( ) . entrySet ( ) ) { if ( containsAllStatusMatchers ( entry ) ) { continue ; } final String waiterName = entry . getKey ( ) ; final WaiterDefinitionModel waiterModel = entry . getValue ( ) ; Map < String , Object > dataModel = ImmutableMapParameter . of ( "fileHeader" , model . getFileHeader ( ) , "waiter" , waiterModel , "operation" , model . getOperation ( waiterModel . getOperationName ( ) ) , "metadata" , model . getMetadata ( ) ) ; generatorTasks . add ( new FreemarkerGeneratorTask ( waiterClassDir , waiterName , freemarker . getWaiterAcceptorTemplate ( ) , dataModel ) ) ; } return generatorTasks ; } | Constructs the data model and submits tasks for every generating Acceptor for each waiter definition in the intermediate model |
31,114 | private List < GeneratorTask > createWaiterClassTasks ( ) throws IOException { Metadata metadata = model . getMetadata ( ) ; final String className = metadata . getSyncInterface ( ) + "Waiters" ; Map < String , Object > dataModel = ImmutableMapParameter . of ( "fileHeader" , model . getFileHeader ( ) , "className" , className , "waiters" , model . getWaiters ( ) , "operation" , model . getOperations ( ) , "metadata" , metadata ) ; return Collections . singletonList ( new FreemarkerGeneratorTask ( waiterClassDir , className , freemarker . getWaiterTemplate ( ) , dataModel ) ) ; } | Constructs the data model and submits tasks for every generating synchronous waiter and asynchronous waiter for each waiter in the intermediate model . |
31,115 | public static ParenthesizedCondition getInstance ( Condition condition ) { return condition instanceof ParenthesizedCondition ? ( ParenthesizedCondition ) condition : new ParenthesizedCondition ( condition ) ; } | Returns a parenthesized condition for the given condition if the given condition is not already a parenthesized condition ; or the original condition otherwise . |
31,116 | public void setQueues ( java . util . Collection < Queue > queues ) { if ( queues == null ) { this . queues = null ; return ; } this . queues = new java . util . ArrayList < Queue > ( queues ) ; } | List of queues . |
31,117 | private boolean needsNewSession ( ) { if ( sessionCredentials == null ) return true ; long timeRemaining = sessionCredentialsExpiration . getTime ( ) - System . currentTimeMillis ( ) ; return timeRemaining < ( this . refreshThreshold * 1000 ) ; } | Returns true if a new STS session needs to be started . A new STS session is needed when no session has been started yet or if the last session is within the configured refresh threshold . |
31,118 | public void setItem ( java . util . Collection < CampaignResponse > item ) { if ( item == null ) { this . item = null ; return ; } this . item = new java . util . ArrayList < CampaignResponse > ( item ) ; } | A list of campaigns . |
31,119 | public static UploadMonitor create ( TransferManager manager , UploadImpl transfer , ExecutorService threadPool , UploadCallable multipartUploadCallable , PutObjectRequest putObjectRequest , ProgressListenerChain progressListenerChain ) { UploadMonitor uploadMonitor = new UploadMonitor ( manager , transfer , threadPool , multipartUploadCallable , putObjectRequest , progressListenerChain ) ; Future < UploadResult > thisFuture = threadPool . submit ( uploadMonitor ) ; uploadMonitor . futureReference . compareAndSet ( null , thisFuture ) ; return uploadMonitor ; } | Constructs a new upload watcher and then immediately submits it to the thread pool . |
31,120 | PauseResult < PersistableUpload > pause ( boolean forceCancel ) { PersistableUpload persistableUpload = multipartUploadCallable . getPersistableUpload ( ) ; if ( persistableUpload == null ) { PauseStatus pauseStatus = TransferManagerUtils . determinePauseStatus ( transfer . getState ( ) , forceCancel ) ; if ( forceCancel ) { cancelFutures ( ) ; multipartUploadCallable . performAbortMultipartUpload ( ) ; } return new PauseResult < PersistableUpload > ( pauseStatus ) ; } cancelFutures ( ) ; return new PauseResult < PersistableUpload > ( PauseStatus . SUCCESS , persistableUpload ) ; } | Cancels the futures in the following cases - If the user has requested for forcefully aborting the transfers . - If the upload is a multi part parellel upload . - If the upload operation hasn t started . Cancels all the in flight transfers of the upload if applicable . Returns the multi - part upload Id in case of the parallel multi - part uploads . Returns null otherwise . |
31,121 | private void cancelFutures ( ) { cancelFuture ( ) ; for ( Future < PartETag > f : futures ) { f . cancel ( true ) ; } multipartUploadCallable . getFutures ( ) . clear ( ) ; futures . clear ( ) ; } | Cancels the inflight transfers if they are not completed . |
31,122 | protected String getDefaultTimeFormatIfNull ( Member c2jMemberDefinition , Map < String , Shape > allC2jShapes , String protocolString , Shape parentShape ) { String timestampFormat = c2jMemberDefinition . getTimestampFormat ( ) ; if ( ! StringUtils . isNullOrEmpty ( timestampFormat ) ) { failIfInCollection ( c2jMemberDefinition , parentShape ) ; return TimestampFormat . fromValue ( timestampFormat ) . getFormat ( ) ; } String shapeName = c2jMemberDefinition . getShape ( ) ; Shape shape = allC2jShapes . get ( shapeName ) ; if ( ! StringUtils . isNullOrEmpty ( shape . getTimestampFormat ( ) ) ) { failIfInCollection ( c2jMemberDefinition , parentShape ) ; return TimestampFormat . fromValue ( shape . getTimestampFormat ( ) ) . getFormat ( ) ; } String location = c2jMemberDefinition . getLocation ( ) ; if ( Location . HEADER . toString ( ) . equals ( location ) ) { return defaultHeaderTimestamp ( ) ; } if ( Location . QUERY_STRING . toString ( ) . equals ( location ) ) { return TimestampFormat . ISO_8601 . getFormat ( ) ; } Protocol protocol = Protocol . fromValue ( protocolString ) ; switch ( protocol ) { case REST_XML : case QUERY : case EC2 : case API_GATEWAY : return TimestampFormat . ISO_8601 . getFormat ( ) ; case ION : case REST_JSON : case AWS_JSON : return TimestampFormat . UNIX_TIMESTAMP . getFormat ( ) ; case CBOR : return TimestampFormat . UNIX_TIMESTAMP_IN_MILLIS . getFormat ( ) ; } throw new RuntimeException ( "Cannot determine timestamp format for protocol " + protocol ) ; } | Get default timestamp format if the provided timestamp format is null or empty . |
31,123 | private String findRequestUri ( Shape parentShape , Map < String , Shape > allC2jShapes ) { return builder . getService ( ) . getOperations ( ) . values ( ) . stream ( ) . filter ( o -> o . getInput ( ) != null ) . filter ( o -> allC2jShapes . get ( o . getInput ( ) . getShape ( ) ) . equals ( parentShape ) ) . map ( o -> o . getHttp ( ) . getRequestUri ( ) ) . findFirst ( ) . orElseThrow ( ( ) -> new RuntimeException ( "Could not find request URI for input shape" ) ) ; } | Given an input shape finds the Request URI for the operation that input is referenced from . |
31,124 | public < T > Unmarshaller < T , JsonUnmarshallerContext > getUnmarshaller ( Class < T > type , UnmarshallerType unmarshallerType ) { return null ; } | Returns the JsonUnmarshaller for requested custom unmarshaller type . Returns null by default . |
31,125 | public CreateCampaignResult createCampaign ( CreateCampaignRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateCampaign ( request ) ; } | Creates or updates a campaign . |
31,126 | public CreateExportJobResult createExportJob ( CreateExportJobRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateExportJob ( request ) ; } | Creates an export job . |
31,127 | public CreateImportJobResult createImportJob ( CreateImportJobRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateImportJob ( request ) ; } | Creates or updates an import job . |
31,128 | public CreateSegmentResult createSegment ( CreateSegmentRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateSegment ( request ) ; } | Used to create or update a segment . |
31,129 | public DeleteAdmChannelResult deleteAdmChannel ( DeleteAdmChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteAdmChannel ( request ) ; } | Delete an ADM channel . |
31,130 | public DeleteApnsChannelResult deleteApnsChannel ( DeleteApnsChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteApnsChannel ( request ) ; } | Deletes the APNs channel for an app . |
31,131 | public DeleteApnsSandboxChannelResult deleteApnsSandboxChannel ( DeleteApnsSandboxChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteApnsSandboxChannel ( request ) ; } | Delete an APNS sandbox channel . |
31,132 | public DeleteApnsVoipChannelResult deleteApnsVoipChannel ( DeleteApnsVoipChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteApnsVoipChannel ( request ) ; } | Delete an APNS VoIP channel |
31,133 | public DeleteApnsVoipSandboxChannelResult deleteApnsVoipSandboxChannel ( DeleteApnsVoipSandboxChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteApnsVoipSandboxChannel ( request ) ; } | Delete an APNS VoIP sandbox channel |
31,134 | public DeleteBaiduChannelResult deleteBaiduChannel ( DeleteBaiduChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteBaiduChannel ( request ) ; } | Delete a BAIDU GCM channel |
31,135 | public DeleteCampaignResult deleteCampaign ( DeleteCampaignRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteCampaign ( request ) ; } | Deletes a campaign . |
31,136 | public DeleteEmailChannelResult deleteEmailChannel ( DeleteEmailChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteEmailChannel ( request ) ; } | Delete an email channel . |
31,137 | public DeleteEventStreamResult deleteEventStream ( DeleteEventStreamRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteEventStream ( request ) ; } | Deletes the event stream for an app . |
31,138 | public DeleteGcmChannelResult deleteGcmChannel ( DeleteGcmChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteGcmChannel ( request ) ; } | Deletes the GCM channel for an app . |
31,139 | public DeleteSegmentResult deleteSegment ( DeleteSegmentRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteSegment ( request ) ; } | Deletes a segment . |
31,140 | public DeleteSmsChannelResult deleteSmsChannel ( DeleteSmsChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteSmsChannel ( request ) ; } | Delete an SMS channel . |
31,141 | public DeleteUserEndpointsResult deleteUserEndpoints ( DeleteUserEndpointsRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteUserEndpoints ( request ) ; } | Deletes endpoints that are associated with a User ID . |
31,142 | public DeleteVoiceChannelResult deleteVoiceChannel ( DeleteVoiceChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteVoiceChannel ( request ) ; } | Delete an Voice channel |
31,143 | public GetAdmChannelResult getAdmChannel ( GetAdmChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetAdmChannel ( request ) ; } | Get an ADM channel . |
31,144 | public GetApnsChannelResult getApnsChannel ( GetApnsChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetApnsChannel ( request ) ; } | Returns information about the APNs channel for an app . |
31,145 | public GetApnsSandboxChannelResult getApnsSandboxChannel ( GetApnsSandboxChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetApnsSandboxChannel ( request ) ; } | Get an APNS sandbox channel . |
31,146 | public GetApnsVoipChannelResult getApnsVoipChannel ( GetApnsVoipChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetApnsVoipChannel ( request ) ; } | Get an APNS VoIP channel |
31,147 | public GetApnsVoipSandboxChannelResult getApnsVoipSandboxChannel ( GetApnsVoipSandboxChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetApnsVoipSandboxChannel ( request ) ; } | Get an APNS VoIPSandbox channel |
31,148 | public GetApplicationSettingsResult getApplicationSettings ( GetApplicationSettingsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetApplicationSettings ( request ) ; } | Used to request the settings for an app . |
31,149 | public GetAppsResult getApps ( GetAppsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetApps ( request ) ; } | Returns information about your apps . |
31,150 | public GetBaiduChannelResult getBaiduChannel ( GetBaiduChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetBaiduChannel ( request ) ; } | Get a BAIDU GCM channel |
31,151 | public GetCampaignResult getCampaign ( GetCampaignRequest request ) { request = beforeClientExecution ( request ) ; return executeGetCampaign ( request ) ; } | Returns information about a campaign . |
31,152 | public GetCampaignActivitiesResult getCampaignActivities ( GetCampaignActivitiesRequest request ) { request = beforeClientExecution ( request ) ; return executeGetCampaignActivities ( request ) ; } | Returns information about the activity performed by a campaign . |
31,153 | public GetCampaignVersionResult getCampaignVersion ( GetCampaignVersionRequest request ) { request = beforeClientExecution ( request ) ; return executeGetCampaignVersion ( request ) ; } | Returns information about a specific version of a campaign . |
31,154 | public GetCampaignVersionsResult getCampaignVersions ( GetCampaignVersionsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetCampaignVersions ( request ) ; } | Returns information about your campaign versions . |
31,155 | public GetCampaignsResult getCampaigns ( GetCampaignsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetCampaigns ( request ) ; } | Returns information about your campaigns . |
31,156 | public GetChannelsResult getChannels ( GetChannelsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetChannels ( request ) ; } | Get all channels . |
31,157 | public GetEmailChannelResult getEmailChannel ( GetEmailChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetEmailChannel ( request ) ; } | Get an email channel . |
31,158 | public GetEndpointResult getEndpoint ( GetEndpointRequest request ) { request = beforeClientExecution ( request ) ; return executeGetEndpoint ( request ) ; } | Returns information about an endpoint . |
31,159 | public GetEventStreamResult getEventStream ( GetEventStreamRequest request ) { request = beforeClientExecution ( request ) ; return executeGetEventStream ( request ) ; } | Returns the event stream for an app . |
31,160 | public GetExportJobResult getExportJob ( GetExportJobRequest request ) { request = beforeClientExecution ( request ) ; return executeGetExportJob ( request ) ; } | Returns information about an export job . |
31,161 | public GetExportJobsResult getExportJobs ( GetExportJobsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetExportJobs ( request ) ; } | Returns information about your export jobs . |
31,162 | public GetGcmChannelResult getGcmChannel ( GetGcmChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetGcmChannel ( request ) ; } | Returns information about the GCM channel for an app . |
31,163 | public GetImportJobResult getImportJob ( GetImportJobRequest request ) { request = beforeClientExecution ( request ) ; return executeGetImportJob ( request ) ; } | Returns information about an import job . |
31,164 | public GetImportJobsResult getImportJobs ( GetImportJobsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetImportJobs ( request ) ; } | Returns information about your import jobs . |
31,165 | public GetSegmentResult getSegment ( GetSegmentRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSegment ( request ) ; } | Returns information about a segment . |
31,166 | public GetSegmentExportJobsResult getSegmentExportJobs ( GetSegmentExportJobsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSegmentExportJobs ( request ) ; } | Returns a list of export jobs for a specific segment . |
31,167 | public GetSegmentImportJobsResult getSegmentImportJobs ( GetSegmentImportJobsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSegmentImportJobs ( request ) ; } | Returns a list of import jobs for a specific segment . |
31,168 | public GetSegmentVersionResult getSegmentVersion ( GetSegmentVersionRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSegmentVersion ( request ) ; } | Returns information about a segment version . |
31,169 | public GetSegmentVersionsResult getSegmentVersions ( GetSegmentVersionsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSegmentVersions ( request ) ; } | Returns information about your segment versions . |
31,170 | public GetSegmentsResult getSegments ( GetSegmentsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSegments ( request ) ; } | Used to get information about your segments . |
31,171 | public GetSmsChannelResult getSmsChannel ( GetSmsChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSmsChannel ( request ) ; } | Get an SMS channel . |
31,172 | public GetUserEndpointsResult getUserEndpoints ( GetUserEndpointsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetUserEndpoints ( request ) ; } | Returns information about the endpoints that are associated with a User ID . |
31,173 | public GetVoiceChannelResult getVoiceChannel ( GetVoiceChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetVoiceChannel ( request ) ; } | Get a Voice Channel |
31,174 | public PhoneNumberValidateResult phoneNumberValidate ( PhoneNumberValidateRequest request ) { request = beforeClientExecution ( request ) ; return executePhoneNumberValidate ( request ) ; } | Returns information about the specified phone number . |
31,175 | public PutEventStreamResult putEventStream ( PutEventStreamRequest request ) { request = beforeClientExecution ( request ) ; return executePutEventStream ( request ) ; } | Use to create or update the event stream for an app . |
31,176 | public RemoveAttributesResult removeAttributes ( RemoveAttributesRequest request ) { request = beforeClientExecution ( request ) ; return executeRemoveAttributes ( request ) ; } | Used to remove the attributes for an app |
31,177 | public SendMessagesResult sendMessages ( SendMessagesRequest request ) { request = beforeClientExecution ( request ) ; return executeSendMessages ( request ) ; } | Used to send a direct message . |
31,178 | public SendUsersMessagesResult sendUsersMessages ( SendUsersMessagesRequest request ) { request = beforeClientExecution ( request ) ; return executeSendUsersMessages ( request ) ; } | Used to send a message to a list of users . |
31,179 | public UpdateAdmChannelResult updateAdmChannel ( UpdateAdmChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateAdmChannel ( request ) ; } | Update an ADM channel . |
31,180 | public UpdateApnsChannelResult updateApnsChannel ( UpdateApnsChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateApnsChannel ( request ) ; } | Use to update the APNs channel for an app . |
31,181 | public UpdateApnsSandboxChannelResult updateApnsSandboxChannel ( UpdateApnsSandboxChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateApnsSandboxChannel ( request ) ; } | Update an APNS sandbox channel . |
31,182 | public UpdateApnsVoipChannelResult updateApnsVoipChannel ( UpdateApnsVoipChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateApnsVoipChannel ( request ) ; } | Update an APNS VoIP channel |
31,183 | public UpdateApnsVoipSandboxChannelResult updateApnsVoipSandboxChannel ( UpdateApnsVoipSandboxChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateApnsVoipSandboxChannel ( request ) ; } | Update an APNS VoIP sandbox channel |
31,184 | public UpdateApplicationSettingsResult updateApplicationSettings ( UpdateApplicationSettingsRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateApplicationSettings ( request ) ; } | Used to update the settings for an app . |
31,185 | public UpdateBaiduChannelResult updateBaiduChannel ( UpdateBaiduChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateBaiduChannel ( request ) ; } | Update a BAIDU GCM channel |
31,186 | public UpdateCampaignResult updateCampaign ( UpdateCampaignRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateCampaign ( request ) ; } | Use to update a campaign . |
31,187 | public UpdateEmailChannelResult updateEmailChannel ( UpdateEmailChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateEmailChannel ( request ) ; } | Update an email channel . |
31,188 | public UpdateEndpointsBatchResult updateEndpointsBatch ( UpdateEndpointsBatchRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateEndpointsBatch ( request ) ; } | Use to update a batch of endpoints . |
31,189 | public UpdateGcmChannelResult updateGcmChannel ( UpdateGcmChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateGcmChannel ( request ) ; } | Use to update the GCM channel for an app . |
31,190 | public UpdateSegmentResult updateSegment ( UpdateSegmentRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateSegment ( request ) ; } | Used to update a segment . |
31,191 | public UpdateSmsChannelResult updateSmsChannel ( UpdateSmsChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateSmsChannel ( request ) ; } | Update an SMS channel . |
31,192 | public UpdateVoiceChannelResult updateVoiceChannel ( UpdateVoiceChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateVoiceChannel ( request ) ; } | Update an Voice channel |
31,193 | public ValueList appendStringSet ( String ... val ) { super . append ( new LinkedHashSet < String > ( Arrays . asList ( val ) ) ) ; return this ; } | Appends the given values to this list as a string set . |
31,194 | public ValueList appendNumberSet ( BigDecimal ... val ) { super . append ( new LinkedHashSet < BigDecimal > ( Arrays . asList ( val ) ) ) ; return this ; } | Appends the given value to this list as a set of BigDecimals . |
31,195 | public ValueList appendList ( Object ... vals ) { super . append ( new ArrayList < Object > ( Arrays . asList ( vals ) ) ) ; return this ; } | Appends the given values to this list as a list . |
31,196 | public static Endpoint merge ( Endpoint defaults , Endpoint override ) { if ( defaults == null ) { defaults = new Endpoint ( ) ; } if ( override == null ) { override = new Endpoint ( ) ; } final Endpoint merged = new Endpoint ( ) ; merged . setCredentialScope ( override . getCredentialScope ( ) != null ? override . getCredentialScope ( ) : defaults . getCredentialScope ( ) ) ; merged . setHostName ( override . getHostName ( ) != null ? override . getHostName ( ) : defaults . getHostName ( ) ) ; merged . setSslCommonName ( override . getSslCommonName ( ) != null ? override . getSslCommonName ( ) : defaults . getSslCommonName ( ) ) ; merged . setProtocols ( override . getProtocols ( ) != null ? override . getProtocols ( ) : defaults . getProtocols ( ) ) ; merged . setSignatureVersions ( override . getSignatureVersions ( ) != null ? override . getSignatureVersions ( ) : defaults . getSignatureVersions ( ) ) ; return merged ; } | Merges the given endpoints and returns the merged one . |
31,197 | private boolean existsIn ( String element , String [ ] a ) { for ( String s : a ) { if ( element . equals ( s ) ) { return true ; } } return false ; } | Returns true if the given element exists in the given array ; false otherwise . |
31,198 | public RequestSignerRegistry register ( RequestSigner requestSigner , Class < ? extends RequestSigner > signerType ) { Map < Class < ? extends RequestSigner > , RequestSigner > registeredSigners = new HashMap < > ( ) ; registeredSigners . putAll ( signerForType ) ; registeredSigners . put ( signerType , requestSigner ) ; return new RequestSignerRegistry ( registeredSigners ) ; } | Register an requestSigner |
31,199 | public Waiter < DescribeSigningJobRequest > successfulSigningJob ( ) { return new WaiterBuilder < DescribeSigningJobRequest , DescribeSigningJobResult > ( ) . withSdkFunction ( new DescribeSigningJobFunction ( client ) ) . withAcceptors ( new SuccessfulSigningJob . IsSucceededMatcher ( ) , new SuccessfulSigningJob . IsFailedMatcher ( ) , new SuccessfulSigningJob . IsResourceNotFoundExceptionMatcher ( ) ) . withDefaultPollingStrategy ( new PollingStrategy ( new MaxAttemptsRetryStrategy ( 25 ) , new FixedDelayStrategy ( 20 ) ) ) . withExecutorService ( executorService ) . build ( ) ; } | Builds a SuccessfulSigningJob waiter by using custom parameters waiterParameters and other parameters defined in the waiters specification and then polls until it determines whether the resource entered the desired state or not where polling criteria is bound by either default polling strategy or custom polling strategy . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.