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 ( ) ) ) { internalRequest . addParameter ( "marker" , request . getMarker ( ) ) ; } if ( request . getMaxKeys ( ) > 0 ) { internalRequest . addParameter ( "maxKeys" , String . valueOf ( request . getMaxKeys ( ) ) ) ; } if ( ! Strings . isNullOrEmpty ( request . getVolumeId ( ) ) ) { internalRequest . addParameter ( "volumeId" , request . getVolumeId ( ) ) ; } return invokeHttpClient ( internalRequest , ListSnapshotsResponse . class ) ; }
Listing snapshots owned by the authenticated user .